Searched refs:olh (Results 1 - 16 of 16) sorted by relevance

/freebsd-11-stable/sbin/ipfw/
H A Dnptv6.c193 ipfw_obj_lheader *olh; local
199 olh = (ipfw_obj_lheader *)buf;
200 cfg = (ipfw_nptv6_cfg *)(olh + 1);
256 olh->count = 1;
257 olh->objsize = sizeof(*cfg);
258 olh->size = sizeof(buf);
260 if (do_set3(IP_FW_NPTV6_CREATE, &olh->opheader, sizeof(buf)) != 0)
397 ipfw_obj_lheader *olh; local
403 sz = sizeof(*olh) + 16 * sizeof(*cfg);
405 if ((olh
[all...]
H A Dnat64stl.c218 ipfw_obj_lheader *olh; local
223 olh = (ipfw_obj_lheader *)buf;
224 cfg = (ipfw_nat64stl_cfg *)(olh + 1);
289 olh->count = 1;
290 olh->objsize = sizeof(*cfg);
291 olh->size = sizeof(buf);
293 if (do_set3(IP_FW_NAT64STL_CREATE, &olh->opheader, sizeof(buf)) != 0)
519 ipfw_obj_lheader *olh; local
525 sz = sizeof(*olh) + 16 * sizeof(*cfg);
527 if ((olh
[all...]
H A Dnat64clat.c184 ipfw_obj_lheader *olh; local
191 olh = (ipfw_obj_lheader *)buf;
192 cfg = (ipfw_nat64clat_cfg *)(olh + 1);
253 olh->count = 1;
254 olh->objsize = sizeof(*cfg);
255 olh->size = sizeof(buf);
257 if (do_set3(IP_FW_NAT64CLAT_CREATE, &olh->opheader, sizeof(buf)) != 0)
503 ipfw_obj_lheader *olh; local
509 sz = sizeof(*olh) + 16 * sizeof(*cfg);
511 if ((olh
[all...]
H A Dnat64lsn.c399 ipfw_obj_lheader *olh; local
404 olh = (ipfw_obj_lheader *)buf;
405 cfg = (ipfw_nat64lsn_cfg *)(olh + 1);
541 olh->count = 1;
542 olh->objsize = sizeof(*cfg);
543 olh->size = sizeof(buf);
545 if (do_set3(IP_FW_NAT64LSN_CREATE, &olh->opheader, sizeof(buf)) != 0)
866 ipfw_obj_lheader *olh; local
872 sz = sizeof(*olh) + 16 * sizeof(ipfw_nat64lsn_cfg);
875 if ((olh
[all...]
H A Dtables.c1681 ipfw_obj_lheader *olh; local
1687 sz = sizeof(*olh) + 16 * sizeof(ipfw_xtable_info);
1690 if ((olh = calloc(1, sz)) == NULL)
1693 olh->size = sz;
1694 if (do_get3(IP_FW_TABLES_XLIST, &olh->opheader, &sz) != 0) {
1695 sz = olh->size;
1696 free(olh);
1703 qsort(olh + 1, olh->count, olh
1938 ipfw_obj_lheader req, *olh; local
1979 ipfw_obj_lheader *olh; local
2041 ipfw_obj_lheader *olh; local
[all...]
H A Dnat.c1031 ipfw_obj_lheader *olh; local
1037 sz = sizeof(*olh) + 16 * sizeof(struct nat44_cfg_nat);
1040 if ((olh = calloc(1, sz)) == NULL)
1043 olh->size = sz;
1044 if (do_get3(IP_FW_NAT44_LIST_NAT, &olh->opheader, &sz) != 0) {
1045 sz = olh->size;
1046 free(olh);
1053 qsort(olh + 1, olh->count, olh
[all...]
H A Dipfw2.c5470 ipfw_obj_lheader req, *olh; local
5483 if ((olh = calloc(1, sz)) == NULL)
5486 olh->size = sz;
5487 if (do_get3(IP_FW_DUMP_SRVOBJECTS, &olh->opheader, &sz) != 0) {
5488 free(olh);
5492 if (olh->count > 0)
5496 ntlv = (ipfw_obj_ntlv *)(olh + 1);
5497 for (i = 0; i < olh->count; i++) {
5501 (ipfw_obj_ntlv *)(olh + 1), olh
5544 ipfw_obj_lheader req, *olh; local
5588 ipfw_obj_lheader *olh; local
[all...]
/freebsd-11-stable/sys/netpfil/ipfw/
H A Dip_fw_iface.c502 struct _ipfw_obj_lheader *olh; local
506 olh = (struct _ipfw_obj_lheader *)ipfw_get_sopt_header(sd,sizeof(*olh));
507 if (olh == NULL)
509 if (sd->valsize < olh->size)
521 olh->count = count;
522 olh->objsize = sizeof(ipfw_iface_info);
524 if (size > olh->size) {
525 olh->size = size;
529 olh
[all...]
H A Dip_fw_table_value.c731 struct _ipfw_obj_lheader *olh; local
736 olh = (struct _ipfw_obj_lheader *)ipfw_get_sopt_header(sd,sizeof(*olh));
737 if (olh == NULL)
739 if (sd->valsize < olh->size)
749 olh->count = count;
750 olh->objsize = sizeof(ipfw_table_value);
752 if (size > olh->size) {
753 olh->size = size;
757 olh
[all...]
H A Dip_fw_table.c109 static int export_tables(struct ip_fw_chain *ch, ipfw_obj_lheader *olh,
1698 struct _ipfw_obj_lheader *olh; local
1701 olh = (struct _ipfw_obj_lheader *)ipfw_get_sopt_header(sd,sizeof(*olh));
1702 if (olh == NULL)
1704 if (sd->valsize < olh->size)
1708 error = export_tables(ch, olh, sd);
2126 export_tables(struct ip_fw_chain *ch, ipfw_obj_lheader *olh, argument
2137 olh->count = count;
2138 olh
2698 struct _ipfw_obj_lheader *olh; local
[all...]
H A Dip_fw_nat.c770 ipfw_obj_lheader *olh; local
779 olh = (ipfw_obj_lheader *)ipfw_get_sopt_header(sd, sizeof(*olh));
785 olh->count = nat_count;
786 olh->objsize = sizeof(struct nat44_cfg_nat);
787 olh->size = sizeof(*olh) + olh->count * olh->objsize;
789 if (sd->valsize < olh
[all...]
H A Dip_fw_sockopt.c3113 struct _ipfw_obj_lheader *olh; local
3118 olh = (struct _ipfw_obj_lheader *)ipfw_get_sopt_header(sd,sizeof(*olh));
3119 if (olh == NULL)
3121 if (sd->valsize < olh->size)
3129 olh->count = count;
3130 olh->objsize = sizeof(ipfw_sopt_info);
3132 if (size > olh->size) {
3133 olh->size = size;
3137 olh
[all...]
/freebsd-11-stable/sys/netpfil/ipfw/nat64/
H A Dnat64clat_control.c148 ipfw_obj_lheader *olh; local
153 if (sd->valsize != sizeof(*olh) + sizeof(*uc))
156 olh = (ipfw_obj_lheader *)sd->kbuf;
157 uc = (ipfw_nat64clat_cfg *)(olh + 1);
362 ipfw_obj_lheader *olh; local
369 olh = (ipfw_obj_lheader *)ipfw_get_sopt_header(sd, sizeof(*olh));
372 olh->count = ipfw_objhash_count_type(CHAIN_TO_SRV(ch),
374 olh->objsize = sizeof(ipfw_nat64clat_cfg);
375 olh
[all...]
H A Dnat64stl_control.c179 ipfw_obj_lheader *olh; local
185 if (sd->valsize != sizeof(*olh) + sizeof(*uc))
188 olh = (ipfw_obj_lheader *)sd->kbuf;
189 uc = (ipfw_nat64stl_cfg *)(olh + 1);
367 ipfw_obj_lheader *olh; local
374 olh = (ipfw_obj_lheader *)ipfw_get_sopt_header(sd, sizeof(*olh));
377 olh->count = ipfw_objhash_count_type(CHAIN_TO_SRV(ch),
379 olh->objsize = sizeof(ipfw_nat64stl_cfg);
380 olh
[all...]
H A Dnat64lsn_control.c115 ipfw_obj_lheader *olh; local
121 if (sd->valsize != sizeof(*olh) + sizeof(*uc))
124 olh = (ipfw_obj_lheader *)sd->kbuf;
125 uc = (ipfw_nat64lsn_cfg *)(olh + 1);
365 ipfw_obj_lheader *olh; local
372 olh = (ipfw_obj_lheader *)ipfw_get_sopt_header(sd, sizeof(*olh));
375 olh->count = ipfw_objhash_count_type(CHAIN_TO_SRV(ch),
377 olh->objsize = sizeof(ipfw_nat64lsn_cfg);
378 olh
[all...]
/freebsd-11-stable/sys/netpfil/ipfw/nptv6/
H A Dnptv6.c512 ipfw_obj_lheader *olh; local
517 if (sd->valsize != sizeof(*olh) + sizeof(*uc))
520 olh = (ipfw_obj_lheader *)sd->kbuf;
521 uc = (ipfw_nptv6_cfg *)(olh + 1);
634 ipfw_obj_lheader *olh; local
641 olh = (ipfw_obj_lheader *)ipfw_get_sopt_header(sd, sizeof(*olh));
644 olh->count = ipfw_objhash_count_type(CHAIN_TO_SRV(ch),
646 olh->objsize = sizeof(ipfw_nptv6_cfg);
647 olh
[all...]

Completed in 148 milliseconds