Searched refs:ctlv (Results 1 – 10 of 10) sorted by relevance
| /freebsd-12-stable/sys/netpfil/ipfw/ |
| D | ip_fw_sockopt.c | 2296 ipfw_obj_ctlv *ctlv; in dump_named_objects() local 2301 ctlv = (ipfw_obj_ctlv *)ipfw_get_sopt_space(sd, sizeof(*ctlv)); in dump_named_objects() 2302 if (ctlv == NULL) in dump_named_objects() 2304 ctlv->head.type = IPFW_TLV_TBLNAME_LIST; in dump_named_objects() 2305 ctlv->head.length = da->tcount * sizeof(ipfw_obj_ntlv) + in dump_named_objects() 2306 sizeof(*ctlv); in dump_named_objects() 2307 ctlv->count = da->tcount; in dump_named_objects() 2308 ctlv->objsize = sizeof(ipfw_obj_ntlv); in dump_named_objects() 2328 ipfw_obj_ctlv *ctlv; in dump_static_rules() local 2334 ctlv = (ipfw_obj_ctlv *)ipfw_get_sopt_space(sd, sizeof(*ctlv)); in dump_static_rules() [all …]
|
| D | ip_fw_table.c | 967 ipfw_obj_ctlv *ctlv; in manage_table_ent_v1() local 974 if (sd->valsize < (sizeof(*oh) + sizeof(*ctlv))) in manage_table_ent_v1() 989 ctlv = (ipfw_obj_ctlv *)(oh + 1); in manage_table_ent_v1() 990 if (ctlv->head.length + read != sd->valsize) in manage_table_ent_v1() 993 read += sizeof(*ctlv); in manage_table_ent_v1() 994 tent = (ipfw_obj_tentry *)(ctlv + 1); in manage_table_ent_v1() 995 if (ctlv->count * sizeof(*tent) + read != sd->valsize) in manage_table_ent_v1() 998 if (ctlv->count == 0) in manage_table_ent_v1() 1011 for (i = 0; i < ctlv->count; i++, ptent++) { in manage_table_ent_v1() 1024 if (ctlv->count == 1) { in manage_table_ent_v1() [all …]
|
| D | ip_fw_dynamic.c | 3078 ipfw_obj_ctlv *ctlv; in ipfw_dump_states() local 3091 ctlv = (ipfw_obj_ctlv *)ipfw_get_sopt_space(sd, sizeof(*ctlv)); in ipfw_dump_states() 3092 if (ctlv == NULL) in ipfw_dump_states() 3094 ctlv->head.type = IPFW_TLV_DYNSTATE_LIST; in ipfw_dump_states() 3095 ctlv->objsize = sizeof(ipfw_obj_dyntlv); in ipfw_dump_states()
|
| D | ip_fw_private.h | 506 ipfw_obj_ctlv *ctlv; /* name TLV containter */ member
|
| /freebsd-12-stable/sys/netpfil/ipfw/nat64/ |
| D | nat64clat_control.c | 425 ipfw_obj_ctlv *ctlv; in nat64clat_stats() local 447 ctlv = (ipfw_obj_ctlv *)(oh + 1); in nat64clat_stats() 448 memset(ctlv, 0, sizeof(*ctlv)); in nat64clat_stats() 449 ctlv->head.type = IPFW_TLV_COUNTERS; in nat64clat_stats() 450 ctlv->head.length = sz - sizeof(ipfw_obj_header); in nat64clat_stats() 451 ctlv->count = sizeof(stats) / sizeof(uint64_t); in nat64clat_stats() 452 ctlv->objsize = sizeof(uint64_t); in nat64clat_stats() 453 ctlv->version = IPFW_NAT64_VERSION; in nat64clat_stats() 454 memcpy(ctlv + 1, &stats, sizeof(stats)); in nat64clat_stats()
|
| D | nat64stl_control.c | 430 ipfw_obj_ctlv *ctlv; in nat64stl_stats() local 452 ctlv = (ipfw_obj_ctlv *)(oh + 1); in nat64stl_stats() 453 memset(ctlv, 0, sizeof(*ctlv)); in nat64stl_stats() 454 ctlv->head.type = IPFW_TLV_COUNTERS; in nat64stl_stats() 455 ctlv->head.length = sz - sizeof(ipfw_obj_header); in nat64stl_stats() 456 ctlv->count = sizeof(stats) / sizeof(uint64_t); in nat64stl_stats() 457 ctlv->objsize = sizeof(uint64_t); in nat64stl_stats() 458 ctlv->version = IPFW_NAT64_VERSION; in nat64stl_stats() 459 memcpy(ctlv + 1, &stats, sizeof(stats)); in nat64stl_stats()
|
| D | nat64lsn_control.c | 481 ipfw_obj_ctlv *ctlv; in nat64lsn_stats() local 504 ctlv = (ipfw_obj_ctlv *)(oh + 1); in nat64lsn_stats() 505 memset(ctlv, 0, sizeof(*ctlv)); in nat64lsn_stats() 506 ctlv->head.type = IPFW_TLV_COUNTERS; in nat64lsn_stats() 507 ctlv->head.length = sz - sizeof(ipfw_obj_header); in nat64lsn_stats() 508 ctlv->count = sizeof(stats) / sizeof(uint64_t); in nat64lsn_stats() 509 ctlv->objsize = sizeof(uint64_t); in nat64lsn_stats() 510 ctlv->version = IPFW_NAT64_VERSION; in nat64lsn_stats() 511 memcpy(ctlv + 1, &stats, sizeof(stats)); in nat64lsn_stats()
|
| /freebsd-12-stable/sbin/ipfw/ |
| D | ipfw2.c | 409 static char *table_search_ctlv(ipfw_obj_ctlv *ctlv, uint16_t idx); 410 static void object_sort_ctlv(ipfw_obj_ctlv *ctlv); 411 static char *object_search_ctlv(ipfw_obj_ctlv *ctlv, uint16_t idx, 2574 ipfw_obj_ctlv *ctlv; in foreach_state() local 2580 ctlv = (ipfw_obj_ctlv *)base; in foreach_state() 2581 switch (ctlv->head.type) { in foreach_state() 2583 base += sizeof(*ctlv); in foreach_state() 2584 sz -= sizeof(*ctlv); in foreach_state() 2791 ipfw_obj_ctlv *ctlv, *tstate; in ipfw_show_config() local 2806 ctlv = (ipfw_obj_ctlv *)(cfg + 1); in ipfw_show_config() [all …]
|
| D | tables.c | 899 ipfw_obj_ctlv *ctlv; in table_do_modify_record() local 906 sz = sizeof(*ctlv) + sizeof(*tent) * count; in table_do_modify_record() 919 ctlv = (ipfw_obj_ctlv *)(oh + 1); in table_do_modify_record() 920 ctlv->count = count; in table_do_modify_record() 921 ctlv->head.length = sz; in table_do_modify_record() 923 ctlv->flags |= IPFW_CTF_ATOMIC; in table_do_modify_record() 926 memcpy(ctlv + 1, tent, sizeof(*tent) * count); in table_do_modify_record() 927 tent = (ipfw_obj_tentry *)(ctlv + 1); in table_do_modify_record() 937 tent = (ipfw_obj_tentry *)(ctlv + 1); in table_do_modify_record() 939 memcpy(tent_base, ctlv + 1, sizeof(*tent) * count); in table_do_modify_record()
|
| /freebsd-12-stable/sys/netpfil/ipfw/nptv6/ |
| D | nptv6.c | 839 ipfw_obj_ctlv *ctlv; in nptv6_stats() local 864 ctlv = (ipfw_obj_ctlv *)(oh + 1); in nptv6_stats() 865 memset(ctlv, 0, sizeof(*ctlv)); in nptv6_stats() 866 ctlv->head.type = IPFW_TLV_COUNTERS; in nptv6_stats() 867 ctlv->head.length = sz - sizeof(ipfw_obj_header); in nptv6_stats() 868 ctlv->count = sizeof(stats) / sizeof(uint64_t); in nptv6_stats() 869 ctlv->objsize = sizeof(uint64_t); in nptv6_stats() 870 ctlv->version = 1; in nptv6_stats() 871 memcpy(ctlv + 1, &stats, sizeof(stats)); in nptv6_stats()
|