Lines Matching refs:olh
1679 ipfw_obj_lheader *olh; in tables_foreach() local
1686 sz = sizeof(*olh) + 16 * sizeof(ipfw_xtable_info); in tables_foreach()
1689 if ((olh = calloc(1, sz)) == NULL) in tables_foreach()
1692 olh->size = sz; in tables_foreach()
1693 if (do_get3(IP_FW_TABLES_XLIST, &olh->opheader, &sz) != 0) { in tables_foreach()
1694 sz = olh->size; in tables_foreach()
1695 free(olh); in tables_foreach()
1702 qsort(olh + 1, olh->count, olh->objsize, in tables_foreach()
1705 info = (ipfw_xtable_info *)(olh + 1); in tables_foreach()
1706 for (i = 0; i < olh->count; i++) { in tables_foreach()
1710 olh->objsize); in tables_foreach()
1712 free(olh); in tables_foreach()
1942 ipfw_obj_lheader req, *olh; in table_do_get_stdlist() local
1953 if ((olh = calloc(1, sz)) == NULL) in table_do_get_stdlist()
1956 olh->size = sz; in table_do_get_stdlist()
1957 if (do_get3(opcode, &olh->opheader, &sz) != 0) { in table_do_get_stdlist()
1958 free(olh); in table_do_get_stdlist()
1962 *polh = olh; in table_do_get_stdlist()
1983 ipfw_obj_lheader *olh; in ipfw_list_ta() local
1989 error = table_do_get_algolist(&olh); in ipfw_list_ta()
1993 info = (ipfw_ta_info *)(olh + 1); in ipfw_list_ta()
1994 for (i = 0; i < olh->count; i++) { in ipfw_list_ta()
2000 info = (ipfw_ta_info *)((caddr_t)info + olh->objsize); in ipfw_list_ta()
2003 free(olh); in ipfw_list_ta()
2047 ipfw_obj_lheader *olh; in ipfw_list_values() local
2052 error = table_do_get_vlist(&olh); in ipfw_list_values()
2060 v = (struct _table_value *)(olh + 1); in ipfw_list_values()
2061 qsort(v, olh->count, olh->objsize, compare_values); in ipfw_list_values()
2062 for (i = 0; i < olh->count; i++) { in ipfw_list_values()
2066 v = (struct _table_value *)((caddr_t)v + olh->objsize); in ipfw_list_values()
2069 free(olh); in ipfw_list_values()