| /f-stack/tools/ipfw/ |
| H A D | nptv6.c | 199 ipfw_obj_lheader *olh; in nptv6_create() local 205 olh = (ipfw_obj_lheader *)buf; in nptv6_create() 278 olh->count = 1; in nptv6_create() 279 olh->objsize = sizeof(*cfg); in nptv6_create() 280 olh->size = sizeof(buf); in nptv6_create() 424 ipfw_obj_lheader *olh; in nptv6_foreach() local 436 olh->size = sz; in nptv6_foreach() 438 sz = olh->size; in nptv6_foreach() 439 free(olh); in nptv6_foreach() 446 qsort(olh + 1, olh->count, olh->objsize, nptv6name_cmp); in nptv6_foreach() [all …]
|
| H A D | nat64clat.c | 190 ipfw_obj_lheader *olh; in nat64clat_create() local 259 olh->count = 1; in nat64clat_create() 260 olh->objsize = sizeof(*cfg); in nat64clat_create() 261 olh->size = sizeof(buf); in nat64clat_create() 510 ipfw_obj_lheader *olh; in nat64clat_foreach() local 522 olh->size = sz; in nat64clat_foreach() 524 sz = olh->size; in nat64clat_foreach() 525 free(olh); in nat64clat_foreach() 532 qsort(olh + 1, olh->count, olh->objsize, in nat64clat_foreach() 539 olh->objsize); in nat64clat_foreach() [all …]
|
| H A D | nat64stl.c | 224 ipfw_obj_lheader *olh; in nat64stl_create() local 295 olh->count = 1; in nat64stl_create() 296 olh->objsize = sizeof(*cfg); in nat64stl_create() 297 olh->size = sizeof(buf); in nat64stl_create() 526 ipfw_obj_lheader *olh; in nat64stl_foreach() local 538 olh->size = sz; in nat64stl_foreach() 540 sz = olh->size; in nat64stl_foreach() 541 free(olh); in nat64stl_foreach() 548 qsort(olh + 1, olh->count, olh->objsize, in nat64stl_foreach() 555 olh->objsize); in nat64stl_foreach() [all …]
|
| H A D | nat64lsn.c | 410 ipfw_obj_lheader *olh; in nat64lsn_create() local 533 olh->count = 1; in nat64lsn_create() 534 olh->objsize = sizeof(*cfg); in nat64lsn_create() 535 olh->size = sizeof(buf); in nat64lsn_create() 858 ipfw_obj_lheader *olh; in nat64lsn_foreach() local 871 olh->size = sz; in nat64lsn_foreach() 873 sz = olh->size; in nat64lsn_foreach() 874 free(olh); in nat64lsn_foreach() 881 qsort(olh + 1, olh->count, olh->objsize, in nat64lsn_foreach() 888 olh->objsize); in nat64lsn_foreach() [all …]
|
| H A D | tables.c | 1692 olh->size = sz; 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() 1712 free(olh); in tables_foreach() 1956 olh->size = sz; in table_do_get_stdlist() 1958 free(olh); in table_do_get_stdlist() 1962 *polh = olh; in table_do_get_stdlist() 2003 free(olh); in ipfw_list_ta() 2061 qsort(v, olh->count, olh->objsize, compare_values); in ipfw_list_values() [all …]
|
| H A D | nat.c | 1043 ipfw_obj_lheader *olh; in nat_foreach() local 1050 sz = sizeof(*olh) + 16 * sizeof(struct nat44_cfg_nat); in nat_foreach() 1053 if ((olh = calloc(1, sz)) == NULL) in nat_foreach() 1056 olh->size = sz; in nat_foreach() 1058 sz = olh->size; in nat_foreach() 1059 free(olh); in nat_foreach() 1066 qsort(olh + 1, olh->count, olh->objsize, natname_cmp); in nat_foreach() 1068 cfg = (struct nat44_cfg_nat*)(olh + 1); in nat_foreach() 1069 for (i = 0; i < olh->count; i++) { in nat_foreach() 1072 olh->objsize); in nat_foreach() [all …]
|
| H A D | ipfw2.c | 5540 ipfw_obj_lheader req, *olh; in ipfw_list_objects() local 5556 olh->size = sz; in ipfw_list_objects() 5558 free(olh); in ipfw_list_objects() 5562 if (olh->count > 0) in ipfw_list_objects() 5571 (ipfw_obj_ntlv *)(olh + 1), olh->count, in ipfw_list_objects() 5581 free(olh); in ipfw_list_objects() 5629 olh->size = sz; in ipfw_get_tracked_ifaces() 5631 free(olh); in ipfw_get_tracked_ifaces() 5635 *polh = olh; in ipfw_get_tracked_ifaces() 5666 qsort(olh + 1, olh->count, olh->objsize, ifinfo_cmp); in ipfw_list_tifaces() [all …]
|
| /f-stack/freebsd/netpfil/ipfw/ |
| H A D | ip_fw_iface.c | 500 struct _ipfw_obj_lheader *olh; in list_ifaces() local 504 olh = (struct _ipfw_obj_lheader *)ipfw_get_sopt_header(sd,sizeof(*olh)); in list_ifaces() 505 if (olh == NULL) in list_ifaces() 507 if (sd->valsize < olh->size) in list_ifaces() 519 olh->count = count; in list_ifaces() 520 olh->objsize = sizeof(ipfw_iface_info); in list_ifaces() 522 if (size > olh->size) { in list_ifaces() 523 olh->size = size; in list_ifaces() 527 olh->size = size; in list_ifaces()
|
| H A D | ip_fw_table_value.c | 724 struct _ipfw_obj_lheader *olh; in list_table_values() local 729 olh = (struct _ipfw_obj_lheader *)ipfw_get_sopt_header(sd,sizeof(*olh)); in list_table_values() 730 if (olh == NULL) in list_table_values() 732 if (sd->valsize < olh->size) in list_table_values() 742 olh->count = count; in list_table_values() 743 olh->objsize = sizeof(ipfw_table_value); in list_table_values() 745 if (size > olh->size) { in list_table_values() 746 olh->size = size; in list_table_values() 750 olh->size = size; in list_table_values()
|
| H A D | ip_fw_table.c | 1704 olh = (struct _ipfw_obj_lheader *)ipfw_get_sopt_header(sd,sizeof(*olh)); in list_tables() 1705 if (olh == NULL) in list_tables() 2139 olh->count = count; in export_tables() 2142 if (size > olh->size) { in export_tables() 2143 olh->size = size; in export_tables() 2147 olh->size = size; in export_tables() 2704 olh = (struct _ipfw_obj_lheader *)ipfw_get_sopt_header(sd,sizeof(*olh)); in list_table_algo() 2705 if (olh == NULL) in list_table_algo() 2716 olh->count = count; in list_table_algo() 2720 olh->size = size; in list_table_algo() [all …]
|
| H A D | ip_fw_nat.c | 772 ipfw_obj_lheader *olh; in nat44_list_nat() local 781 olh = (ipfw_obj_lheader *)ipfw_get_sopt_header(sd, sizeof(*olh)); in nat44_list_nat() 787 olh->count = nat_count; in nat44_list_nat() 788 olh->objsize = sizeof(struct nat44_cfg_nat); in nat44_list_nat() 789 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nat44_list_nat() 791 if (sd->valsize < olh->size) { in nat44_list_nat()
|
| H A D | ip_fw_sockopt.c | 3099 struct _ipfw_obj_lheader *olh; in dump_soptcodes() local 3104 olh = (struct _ipfw_obj_lheader *)ipfw_get_sopt_header(sd,sizeof(*olh)); in dump_soptcodes() 3105 if (olh == NULL) in dump_soptcodes() 3107 if (sd->valsize < olh->size) in dump_soptcodes() 3115 olh->count = count; in dump_soptcodes() 3116 olh->objsize = sizeof(ipfw_sopt_info); in dump_soptcodes() 3118 if (size > olh->size) { in dump_soptcodes() 3119 olh->size = size; in dump_soptcodes() 3123 olh->size = size; in dump_soptcodes()
|
| /f-stack/freebsd/netpfil/ipfw/nat64/ |
| H A D | nat64stl_control.c | 178 ipfw_obj_lheader *olh; in nat64stl_create() local 184 if (sd->valsize != sizeof(*olh) + sizeof(*uc)) in nat64stl_create() 187 olh = (ipfw_obj_lheader *)sd->kbuf; in nat64stl_create() 188 uc = (ipfw_nat64stl_cfg *)(olh + 1); in nat64stl_create() 366 ipfw_obj_lheader *olh; in nat64stl_list() local 373 olh = (ipfw_obj_lheader *)ipfw_get_sopt_header(sd, sizeof(*olh)); in nat64stl_list() 376 olh->count = ipfw_objhash_count_type(CHAIN_TO_SRV(ch), in nat64stl_list() 378 olh->objsize = sizeof(ipfw_nat64stl_cfg); in nat64stl_list() 379 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nat64stl_list() 381 if (sd->valsize < olh->size) { in nat64stl_list()
|
| H A D | nat64clat_control.c | 147 ipfw_obj_lheader *olh; in nat64clat_create() local 152 if (sd->valsize != sizeof(*olh) + sizeof(*uc)) in nat64clat_create() 155 olh = (ipfw_obj_lheader *)sd->kbuf; in nat64clat_create() 156 uc = (ipfw_nat64clat_cfg *)(olh + 1); in nat64clat_create() 361 ipfw_obj_lheader *olh; in nat64clat_list() local 368 olh = (ipfw_obj_lheader *)ipfw_get_sopt_header(sd, sizeof(*olh)); in nat64clat_list() 371 olh->count = ipfw_objhash_count_type(CHAIN_TO_SRV(ch), in nat64clat_list() 373 olh->objsize = sizeof(ipfw_nat64clat_cfg); in nat64clat_list() 374 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nat64clat_list() 376 if (sd->valsize < olh->size) { in nat64clat_list()
|
| H A D | nat64lsn_control.c | 116 ipfw_obj_lheader *olh; in nat64lsn_create() local 122 if (sd->valsize != sizeof(*olh) + sizeof(*uc)) in nat64lsn_create() 125 olh = (ipfw_obj_lheader *)sd->kbuf; in nat64lsn_create() 126 uc = (ipfw_nat64lsn_cfg *)(olh + 1); in nat64lsn_create() 363 ipfw_obj_lheader *olh; in nat64lsn_list() local 370 olh = (ipfw_obj_lheader *)ipfw_get_sopt_header(sd, sizeof(*olh)); in nat64lsn_list() 373 olh->count = ipfw_objhash_count_type(CHAIN_TO_SRV(ch), in nat64lsn_list() 375 olh->objsize = sizeof(ipfw_nat64lsn_cfg); in nat64lsn_list() 376 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nat64lsn_list() 378 if (sd->valsize < olh->size) { in nat64lsn_list()
|
| /f-stack/freebsd/netpfil/ipfw/nptv6/ |
| H A D | nptv6.c | 654 ipfw_obj_lheader *olh; in nptv6_create() local 659 if (sd->valsize != sizeof(*olh) + sizeof(*uc)) in nptv6_create() 662 olh = (ipfw_obj_lheader *)sd->kbuf; in nptv6_create() 663 uc = (ipfw_nptv6_cfg *)(olh + 1); in nptv6_create() 784 ipfw_obj_lheader *olh; in nptv6_list() local 791 olh = (ipfw_obj_lheader *)ipfw_get_sopt_header(sd, sizeof(*olh)); in nptv6_list() 794 olh->count = ipfw_objhash_count_type(CHAIN_TO_SRV(ch), in nptv6_list() 796 olh->objsize = sizeof(ipfw_nptv6_cfg); in nptv6_list() 797 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nptv6_list() 799 if (sd->valsize < olh->size) { in nptv6_list()
|