| /f-stack/freebsd/netpfil/ipfw/nat64/ |
| H A D | nat64stl_control.c | 429 ipfw_obj_ctlv *ctlv; in nat64stl_stats() local 451 ctlv = (ipfw_obj_ctlv *)(oh + 1); in nat64stl_stats() 452 memset(ctlv, 0, sizeof(*ctlv)); in nat64stl_stats() 453 ctlv->head.type = IPFW_TLV_COUNTERS; in nat64stl_stats() 454 ctlv->head.length = sz - sizeof(ipfw_obj_header); in nat64stl_stats() 455 ctlv->count = sizeof(stats) / sizeof(uint64_t); in nat64stl_stats() 456 ctlv->objsize = sizeof(uint64_t); in nat64stl_stats() 457 ctlv->version = IPFW_NAT64_VERSION; in nat64stl_stats() 458 memcpy(ctlv + 1, &stats, sizeof(stats)); in nat64stl_stats()
|
| H A D | nat64clat_control.c | 424 ipfw_obj_ctlv *ctlv; in nat64clat_stats() local 446 ctlv = (ipfw_obj_ctlv *)(oh + 1); in nat64clat_stats() 447 memset(ctlv, 0, sizeof(*ctlv)); in nat64clat_stats() 448 ctlv->head.type = IPFW_TLV_COUNTERS; in nat64clat_stats() 449 ctlv->head.length = sz - sizeof(ipfw_obj_header); in nat64clat_stats() 450 ctlv->count = sizeof(stats) / sizeof(uint64_t); in nat64clat_stats() 451 ctlv->objsize = sizeof(uint64_t); in nat64clat_stats() 452 ctlv->version = IPFW_NAT64_VERSION; in nat64clat_stats() 453 memcpy(ctlv + 1, &stats, sizeof(stats)); in nat64clat_stats()
|
| H A D | nat64lsn_control.c | 480 ipfw_obj_ctlv *ctlv; in nat64lsn_stats() local 503 ctlv = (ipfw_obj_ctlv *)(oh + 1); in nat64lsn_stats() 504 memset(ctlv, 0, sizeof(*ctlv)); in nat64lsn_stats() 505 ctlv->head.type = IPFW_TLV_COUNTERS; in nat64lsn_stats() 506 ctlv->head.length = sz - sizeof(ipfw_obj_header); in nat64lsn_stats() 507 ctlv->count = sizeof(stats) / sizeof(uint64_t); in nat64lsn_stats() 508 ctlv->objsize = sizeof(uint64_t); in nat64lsn_stats() 509 ctlv->version = IPFW_NAT64_VERSION; in nat64lsn_stats() 510 memcpy(ctlv + 1, &stats, sizeof(stats)); in nat64lsn_stats()
|
| /f-stack/freebsd/netpfil/ipfw/ |
| H A D | ip_fw_sockopt.c | 2288 ctlv = (ipfw_obj_ctlv *)ipfw_get_sopt_space(sd, sizeof(*ctlv)); in dump_named_objects() 2289 if (ctlv == NULL) in dump_named_objects() 2321 ctlv = (ipfw_obj_ctlv *)ipfw_get_sopt_space(sd, sizeof(*ctlv)); in dump_static_rules() 2322 if (ctlv == NULL) in dump_static_rules() 2325 ctlv->head.length = da->rsize + sizeof(*ctlv); in dump_static_rules() 2948 count = (ctlv->head.length - sizeof(*ctlv)) / sizeof(*ntlv); in add_rules() 2949 if (ctlv->count != count || ctlv->objsize != sizeof(*ntlv)) in add_rules() 2975 tstate = ctlv; in add_rules() 2977 ctlv = (ipfw_obj_ctlv *)((caddr_t)ctlv + ctlv->head.length); in add_rules() 3054 rtlv = ctlv; in add_rules() [all …]
|
| H A D | ip_fw_table.c | 969 ipfw_obj_ctlv *ctlv; in manage_table_ent_v1() local 976 if (sd->valsize < (sizeof(*oh) + sizeof(*ctlv))) in manage_table_ent_v1() 991 ctlv = (ipfw_obj_ctlv *)(oh + 1); in manage_table_ent_v1() 992 if (ctlv->head.length + read != sd->valsize) in manage_table_ent_v1() 995 read += sizeof(*ctlv); in manage_table_ent_v1() 996 tent = (ipfw_obj_tentry *)(ctlv + 1); in manage_table_ent_v1() 1000 if (ctlv->count == 0) in manage_table_ent_v1() 1013 for (i = 0; i < ctlv->count; i++, ptent++) { in manage_table_ent_v1() 1026 if (ctlv->count == 1) { in manage_table_ent_v1() 1047 add_table_entry(ch, &ti, tei_buf, ctlv->flags, ctlv->count) : in manage_table_ent_v1() [all …]
|
| H A D | ip_fw_dynamic.c | 3044 ipfw_obj_ctlv *ctlv; in ipfw_dump_states() local 3057 ctlv = (ipfw_obj_ctlv *)ipfw_get_sopt_space(sd, sizeof(*ctlv)); in ipfw_dump_states() 3058 if (ctlv == NULL) in ipfw_dump_states() 3060 ctlv->head.type = IPFW_TLV_DYNSTATE_LIST; in ipfw_dump_states() 3061 ctlv->objsize = sizeof(ipfw_obj_dyntlv); in ipfw_dump_states()
|
| H A D | ip_fw_private.h | 485 ipfw_obj_ctlv *ctlv; /* name TLV containter */ member
|
| /f-stack/tools/ipfw/ |
| H A D | ipfw2.c | 2573 ipfw_obj_ctlv *ctlv; in foreach_state() local 2812 fo->tstate = ctlv; in ipfw_show_config() 2814 ctlv = (ipfw_obj_ctlv *)((caddr_t)ctlv + ctlv->head.length); in ipfw_show_config() 2823 ctlv = (ipfw_obj_ctlv *)((caddr_t)ctlv + in ipfw_show_config() 5229 qsort(ctlv + 1, ctlv->count, ctlv->objsize, compare_ntlv); in object_sort_ctlv() 5275 ntlv = bsearch(&key, (ctlv + 1), ctlv->count, ctlv->objsize, in object_search_ctlv() 5360 tstate = ctlv; in ipfw_add() 5362 ctlv = (ipfw_obj_ctlv *)((caddr_t)ctlv + ctlv->head.length); in ipfw_add() 5365 ctlv->count = 1; in ipfw_add() 5370 memset(ctlv, 0, sizeof(*ctlv)); in ipfw_add() [all …]
|
| H A D | tables.c | 893 ipfw_obj_ctlv *ctlv; in table_do_modify_record() local 900 sz = sizeof(*ctlv) + sizeof(*tent) * count; in table_do_modify_record() 913 ctlv = (ipfw_obj_ctlv *)(oh + 1); in table_do_modify_record() 914 ctlv->count = count; in table_do_modify_record() 915 ctlv->head.length = sz; in table_do_modify_record() 917 ctlv->flags |= IPFW_CTF_ATOMIC; in table_do_modify_record() 920 memcpy(ctlv + 1, tent, sizeof(*tent) * count); in table_do_modify_record() 921 tent = (ipfw_obj_tentry *)(ctlv + 1); in table_do_modify_record() 931 tent = (ipfw_obj_tentry *)(ctlv + 1); in table_do_modify_record() 933 memcpy(tent_base, ctlv + 1, sizeof(*tent) * count); in table_do_modify_record()
|
| /f-stack/freebsd/netpfil/ipfw/nptv6/ |
| H A D | nptv6.c | 840 ipfw_obj_ctlv *ctlv; in nptv6_stats() local 865 ctlv = (ipfw_obj_ctlv *)(oh + 1); in nptv6_stats() 866 memset(ctlv, 0, sizeof(*ctlv)); in nptv6_stats() 867 ctlv->head.type = IPFW_TLV_COUNTERS; in nptv6_stats() 868 ctlv->head.length = sz - sizeof(ipfw_obj_header); in nptv6_stats() 869 ctlv->count = sizeof(stats) / sizeof(uint64_t); in nptv6_stats() 870 ctlv->objsize = sizeof(uint64_t); in nptv6_stats() 871 ctlv->version = 1; in nptv6_stats() 872 memcpy(ctlv + 1, &stats, sizeof(stats)); in nptv6_stats()
|