/freebsd/sbin/ipfw/ |
H A D | nptv6.c | 191 ipfw_obj_lheader *olh; in nptv6_create() local 197 olh = (ipfw_obj_lheader *)buf; in nptv6_create() 270 olh->count = 1; in nptv6_create() 271 olh->objsize = sizeof(*cfg); in nptv6_create() 272 olh->size = sizeof(buf); in nptv6_create() 416 ipfw_obj_lheader *olh; in nptv6_foreach() local 427 olh->size = sz; in nptv6_foreach() 429 sz = olh->size; in nptv6_foreach() 430 free(olh); in nptv6_foreach() 437 qsort(olh + 1, olh->count, olh->objsize, nptv6name_cmp); in nptv6_foreach() [all …]
|
H A D | nat64clat.c | 181 ipfw_obj_lheader *olh; in nat64clat_create() local 250 olh->count = 1; in nat64clat_create() 251 olh->objsize = sizeof(*cfg); in nat64clat_create() 252 olh->size = sizeof(buf); in nat64clat_create() 501 ipfw_obj_lheader *olh; in nat64clat_foreach() local 512 olh->size = sz; in nat64clat_foreach() 514 sz = olh->size; in nat64clat_foreach() 515 free(olh); in nat64clat_foreach() 522 qsort(olh + 1, olh->count, olh->objsize, in nat64clat_foreach() 529 olh->objsize); in nat64clat_foreach() [all …]
|
H A D | nat64stl.c | 215 ipfw_obj_lheader *olh; in nat64stl_create() local 286 olh->count = 1; in nat64stl_create() 287 olh->objsize = sizeof(*cfg); in nat64stl_create() 288 olh->size = sizeof(buf); in nat64stl_create() 517 ipfw_obj_lheader *olh; in nat64stl_foreach() local 528 olh->size = sz; in nat64stl_foreach() 530 sz = olh->size; in nat64stl_foreach() 531 free(olh); in nat64stl_foreach() 538 qsort(olh + 1, olh->count, olh->objsize, in nat64stl_foreach() 545 olh->objsize); in nat64stl_foreach() [all …]
|
H A D | nat64lsn.c | 401 ipfw_obj_lheader *olh; in nat64lsn_create() local 524 olh->count = 1; in nat64lsn_create() 525 olh->objsize = sizeof(*cfg); in nat64lsn_create() 526 olh->size = sizeof(buf); in nat64lsn_create() 849 ipfw_obj_lheader *olh; in nat64lsn_foreach() local 861 olh->size = sz; in nat64lsn_foreach() 863 sz = olh->size; in nat64lsn_foreach() 864 free(olh); in nat64lsn_foreach() 871 qsort(olh + 1, olh->count, olh->objsize, in nat64lsn_foreach() 878 olh->objsize); in nat64lsn_foreach() [all …]
|
H A D | tables.c | 1721 olh->size = sz; in tables_foreach() 1723 sz = olh->size; in tables_foreach() 1724 free(olh); in tables_foreach() 1731 qsort(olh + 1, olh->count, olh->objsize, in tables_foreach() 1741 free(olh); in tables_foreach() 1992 olh->size = sz; in table_do_get_stdlist() 1994 free(olh); in table_do_get_stdlist() 1998 *polh = olh; in table_do_get_stdlist() 2039 free(olh); in ipfw_list_ta() 2077 qsort(v, olh->count, olh->objsize, compare_values); in ipfw_list_values() [all …]
|
H A D | nat.c | 1071 ipfw_obj_lheader *olh; in nat_foreach() local 1077 sz = sizeof(*olh) + 16 * sizeof(struct nat44_cfg_nat); in nat_foreach() 1080 if ((olh = calloc(1, sz)) == NULL) in nat_foreach() 1083 olh->size = sz; in nat_foreach() 1085 sz = olh->size; in nat_foreach() 1086 free(olh); in nat_foreach() 1093 qsort(olh + 1, olh->count, olh->objsize, natname_cmp); in nat_foreach() 1095 cfg = (struct nat44_cfg_nat*)(olh + 1); in nat_foreach() 1096 for (i = 0; i < olh->count; i++) { in nat_foreach() 1099 olh->objsize); in nat_foreach() [all …]
|
H A D | ipfw2.c | 5757 ipfw_obj_lheader req, *olh; in ipfw_list_objects() local 5773 olh->size = sz; in ipfw_list_objects() 5775 free(olh); in ipfw_list_objects() 5779 if (olh->count > 0) in ipfw_list_objects() 5788 (ipfw_obj_ntlv *)(olh + 1), olh->count, in ipfw_list_objects() 5798 free(olh); in ipfw_list_objects() 5846 olh->size = sz; in ipfw_get_tracked_ifaces() 5848 free(olh); in ipfw_get_tracked_ifaces() 5852 *polh = olh; in ipfw_get_tracked_ifaces() 5883 qsort(olh + 1, olh->count, olh->objsize, ifinfo_cmp); in ipfw_list_tifaces() [all …]
|
/freebsd/sys/netpfil/ipfw/ |
H A D | ip_fw_iface.c | 499 struct _ipfw_obj_lheader *olh; in list_ifaces() local 503 olh = (struct _ipfw_obj_lheader *)ipfw_get_sopt_header(sd,sizeof(*olh)); in list_ifaces() 504 if (olh == NULL) in list_ifaces() 506 if (sd->valsize < olh->size) in list_ifaces() 518 olh->count = count; in list_ifaces() 519 olh->objsize = sizeof(ipfw_iface_info); in list_ifaces() 521 if (size > olh->size) { in list_ifaces() 522 olh->size = size; in list_ifaces() 526 olh->size = size; in list_ifaces()
|
H A D | ip_fw_table_value.c | 726 struct _ipfw_obj_lheader *olh; in list_table_values() local 731 olh = (struct _ipfw_obj_lheader *)ipfw_get_sopt_header(sd,sizeof(*olh)); in list_table_values() 732 if (olh == NULL) in list_table_values() 734 if (sd->valsize < olh->size) in list_table_values() 744 olh->count = count; in list_table_values() 745 olh->objsize = sizeof(ipfw_table_value); in list_table_values() 747 if (size > olh->size) { in list_table_values() 748 olh->size = size; in list_table_values() 752 olh->size = size; in list_table_values()
|
H A D | ip_fw_table.c | 1701 olh = (struct _ipfw_obj_lheader *)ipfw_get_sopt_header(sd,sizeof(*olh)); in list_tables() 1702 if (olh == NULL) in list_tables() 2136 olh->count = count; in export_tables() 2139 if (size > olh->size) { in export_tables() 2140 olh->size = size; in export_tables() 2144 olh->size = size; in export_tables() 2701 olh = (struct _ipfw_obj_lheader *)ipfw_get_sopt_header(sd,sizeof(*olh)); in list_table_algo() 2702 if (olh == NULL) in list_table_algo() 2713 olh->count = count; in list_table_algo() 2717 olh->size = size; in list_table_algo() [all …]
|
H A D | ip_fw_nat.c | 778 ipfw_obj_lheader *olh; in nat44_list_nat() local 787 olh = (ipfw_obj_lheader *)ipfw_get_sopt_header(sd, sizeof(*olh)); in nat44_list_nat() 793 olh->count = nat_count; in nat44_list_nat() 794 olh->objsize = sizeof(struct nat44_cfg_nat); in nat44_list_nat() 795 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nat44_list_nat() 797 if (sd->valsize < olh->size) { in nat44_list_nat()
|
H A D | ip_fw_sockopt.c | 3111 struct _ipfw_obj_lheader *olh; in dump_soptcodes() local 3116 olh = (struct _ipfw_obj_lheader *)ipfw_get_sopt_header(sd,sizeof(*olh)); in dump_soptcodes() 3117 if (olh == NULL) in dump_soptcodes() 3119 if (sd->valsize < olh->size) in dump_soptcodes() 3127 olh->count = count; in dump_soptcodes() 3128 olh->objsize = sizeof(ipfw_sopt_info); in dump_soptcodes() 3130 if (size > olh->size) { in dump_soptcodes() 3131 olh->size = size; in dump_soptcodes() 3135 olh->size = size; in dump_soptcodes()
|
/freebsd/sys/netpfil/ipfw/nat64/ |
H A D | nat64clat_control.c | 144 ipfw_obj_lheader *olh; in nat64clat_create() local 149 if (sd->valsize != sizeof(*olh) + sizeof(*uc)) in nat64clat_create() 152 olh = (ipfw_obj_lheader *)sd->kbuf; in nat64clat_create() 153 uc = (ipfw_nat64clat_cfg *)(olh + 1); in nat64clat_create() 358 ipfw_obj_lheader *olh; in nat64clat_list() local 365 olh = (ipfw_obj_lheader *)ipfw_get_sopt_header(sd, sizeof(*olh)); in nat64clat_list() 368 olh->count = ipfw_objhash_count_type(CHAIN_TO_SRV(ch), in nat64clat_list() 370 olh->objsize = sizeof(ipfw_nat64clat_cfg); in nat64clat_list() 371 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nat64clat_list() 373 if (sd->valsize < olh->size) { in nat64clat_list()
|
H A D | nat64stl_control.c | 175 ipfw_obj_lheader *olh; in nat64stl_create() local 181 if (sd->valsize != sizeof(*olh) + sizeof(*uc)) in nat64stl_create() 184 olh = (ipfw_obj_lheader *)sd->kbuf; in nat64stl_create() 185 uc = (ipfw_nat64stl_cfg *)(olh + 1); in nat64stl_create() 363 ipfw_obj_lheader *olh; in nat64stl_list() local 370 olh = (ipfw_obj_lheader *)ipfw_get_sopt_header(sd, sizeof(*olh)); in nat64stl_list() 373 olh->count = ipfw_objhash_count_type(CHAIN_TO_SRV(ch), in nat64stl_list() 375 olh->objsize = sizeof(ipfw_nat64stl_cfg); in nat64stl_list() 376 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nat64stl_list() 378 if (sd->valsize < olh->size) { in nat64stl_list()
|
H A D | nat64lsn_control.c | 113 ipfw_obj_lheader *olh; in nat64lsn_create() local 119 if (sd->valsize != sizeof(*olh) + sizeof(*uc)) in nat64lsn_create() 122 olh = (ipfw_obj_lheader *)sd->kbuf; in nat64lsn_create() 123 uc = (ipfw_nat64lsn_cfg *)(olh + 1); in nat64lsn_create() 360 ipfw_obj_lheader *olh; in nat64lsn_list() local 367 olh = (ipfw_obj_lheader *)ipfw_get_sopt_header(sd, sizeof(*olh)); in nat64lsn_list() 370 olh->count = ipfw_objhash_count_type(CHAIN_TO_SRV(ch), in nat64lsn_list() 372 olh->objsize = sizeof(ipfw_nat64lsn_cfg); in nat64lsn_list() 373 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nat64lsn_list() 375 if (sd->valsize < olh->size) { in nat64lsn_list()
|
/freebsd/sys/netpfil/ipfw/nptv6/ |
H A D | nptv6.c | 652 ipfw_obj_lheader *olh; in nptv6_create() local 657 if (sd->valsize != sizeof(*olh) + sizeof(*uc)) in nptv6_create() 660 olh = (ipfw_obj_lheader *)sd->kbuf; in nptv6_create() 661 uc = (ipfw_nptv6_cfg *)(olh + 1); in nptv6_create() 782 ipfw_obj_lheader *olh; in nptv6_list() local 789 olh = (ipfw_obj_lheader *)ipfw_get_sopt_header(sd, sizeof(*olh)); in nptv6_list() 792 olh->count = ipfw_objhash_count_type(CHAIN_TO_SRV(ch), in nptv6_list() 794 olh->objsize = sizeof(ipfw_nptv6_cfg); in nptv6_list() 795 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nptv6_list() 797 if (sd->valsize < olh->size) { in nptv6_list()
|