Lines Matching refs:olh
194 ipfw_obj_lheader *olh;
200 olh = (ipfw_obj_lheader *)buf;
201 cfg = (ipfw_nptv6_cfg *)(olh + 1);
273 olh->count = 1;
274 olh->objsize = sizeof(*cfg);
275 olh->size = sizeof(buf);
277 if (do_set3(IP_FW_NPTV6_CREATE, &olh->opheader, sizeof(buf)) != 0)
419 ipfw_obj_lheader *olh;
426 sz = sizeof(*olh) + 16 * sizeof(*cfg);
428 if ((olh = calloc(1, sz)) == NULL)
431 olh->size = sz;
432 if (do_get3(IP_FW_NPTV6_LIST, &olh->opheader, &sz) != 0) {
433 sz = olh->size;
434 free(olh);
441 qsort(olh + 1, olh->count, olh->objsize, nptv6name_cmp);
443 cfg = (ipfw_nptv6_cfg *)(olh + 1);
444 for (i = 0; i < olh->count; i++) {
446 cfg = (ipfw_nptv6_cfg *)((caddr_t)cfg + olh->objsize);
448 free(olh);