Searched refs:ctlv (Results 1 - 10 of 10) sorted by relevance
/freebsd-12-stable/sys/netpfil/ipfw/nat64/ |
H A D | nat64clat_control.c | 425 ipfw_obj_ctlv *ctlv; local 447 ctlv = (ipfw_obj_ctlv *)(oh + 1); 448 memset(ctlv, 0, sizeof(*ctlv)); 449 ctlv->head.type = IPFW_TLV_COUNTERS; 450 ctlv->head.length = sz - sizeof(ipfw_obj_header); 451 ctlv->count = sizeof(stats) / sizeof(uint64_t); 452 ctlv->objsize = sizeof(uint64_t); 453 ctlv->version = IPFW_NAT64_VERSION; 454 memcpy(ctlv [all...] |
H A D | nat64stl_control.c | 430 ipfw_obj_ctlv *ctlv; local 452 ctlv = (ipfw_obj_ctlv *)(oh + 1); 453 memset(ctlv, 0, sizeof(*ctlv)); 454 ctlv->head.type = IPFW_TLV_COUNTERS; 455 ctlv->head.length = sz - sizeof(ipfw_obj_header); 456 ctlv->count = sizeof(stats) / sizeof(uint64_t); 457 ctlv->objsize = sizeof(uint64_t); 458 ctlv->version = IPFW_NAT64_VERSION; 459 memcpy(ctlv [all...] |
H A D | nat64lsn_control.c | 481 ipfw_obj_ctlv *ctlv; local 504 ctlv = (ipfw_obj_ctlv *)(oh + 1); 505 memset(ctlv, 0, sizeof(*ctlv)); 506 ctlv->head.type = IPFW_TLV_COUNTERS; 507 ctlv->head.length = sz - sizeof(ipfw_obj_header); 508 ctlv->count = sizeof(stats) / sizeof(uint64_t); 509 ctlv->objsize = sizeof(uint64_t); 510 ctlv->version = IPFW_NAT64_VERSION; 511 memcpy(ctlv [all...] |
/freebsd-12-stable/sys/netpfil/ipfw/ |
H A D | ip_fw_sockopt.c | 2296 ipfw_obj_ctlv *ctlv; local 2301 ctlv = (ipfw_obj_ctlv *)ipfw_get_sopt_space(sd, sizeof(*ctlv)); 2302 if (ctlv == NULL) 2304 ctlv->head.type = IPFW_TLV_TBLNAME_LIST; 2305 ctlv->head.length = da->tcount * sizeof(ipfw_obj_ntlv) + 2306 sizeof(*ctlv); 2307 ctlv->count = da->tcount; 2308 ctlv->objsize = sizeof(ipfw_obj_ntlv); 2328 ipfw_obj_ctlv *ctlv; local 2932 ipfw_obj_ctlv *ctlv, *rtlv, *tstate; local [all...] |
H A D | ip_fw_table.c | 967 ipfw_obj_ctlv *ctlv; local 974 if (sd->valsize < (sizeof(*oh) + sizeof(*ctlv))) 989 ctlv = (ipfw_obj_ctlv *)(oh + 1); 990 if (ctlv->head.length + read != sd->valsize) 993 read += sizeof(*ctlv); 994 tent = (ipfw_obj_tentry *)(ctlv + 1); 995 if (ctlv->count * sizeof(*tent) + read != sd->valsize) 998 if (ctlv->count == 0) 1011 for (i = 0; i < ctlv->count; i++, ptent++) { 1024 if (ctlv [all...] |
H A D | ip_fw_dynamic.c | 3078 ipfw_obj_ctlv *ctlv; local 3091 ctlv = (ipfw_obj_ctlv *)ipfw_get_sopt_space(sd, sizeof(*ctlv)); 3092 if (ctlv == NULL) 3094 ctlv->head.type = IPFW_TLV_DYNSTATE_LIST; 3095 ctlv->objsize = sizeof(ipfw_obj_dyntlv);
|
H A D | ip_fw_private.h | 498 ipfw_obj_ctlv *ctlv; /* name TLV containter */ member in struct:rule_check_info
|
/freebsd-12-stable/sbin/ipfw/ |
H A 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, 2568 ipfw_obj_ctlv *ctlv; local 2574 ctlv = (ipfw_obj_ctlv *)base; 2575 switch (ctlv->head.type) { 2577 base += sizeof(*ctlv); 2578 sz -= sizeof(*ctlv); 2785 ipfw_obj_ctlv *ctlv, *tstate; local 2800 ctlv 5203 object_sort_ctlv(ipfw_obj_ctlv *ctlv) argument 5244 object_search_ctlv(ipfw_obj_ctlv *ctlv, uint16_t idx, uint16_t type) argument 5262 table_search_ctlv(ipfw_obj_ctlv *ctlv, uint16_t idx) argument 5301 ipfw_obj_ctlv *ctlv, *tstate; local [all...] |
H A D | tables.c | 899 ipfw_obj_ctlv *ctlv; local 906 sz = sizeof(*ctlv) + sizeof(*tent) * count; 919 ctlv = (ipfw_obj_ctlv *)(oh + 1); 920 ctlv->count = count; 921 ctlv->head.length = sz; 923 ctlv->flags |= IPFW_CTF_ATOMIC; 926 memcpy(ctlv + 1, tent, sizeof(*tent) * count); 927 tent = (ipfw_obj_tentry *)(ctlv + 1); 937 tent = (ipfw_obj_tentry *)(ctlv + 1); 939 memcpy(tent_base, ctlv [all...] |
/freebsd-12-stable/sys/netpfil/ipfw/nptv6/ |
H A D | nptv6.c | 839 ipfw_obj_ctlv *ctlv; local 864 ctlv = (ipfw_obj_ctlv *)(oh + 1); 865 memset(ctlv, 0, sizeof(*ctlv)); 866 ctlv->head.type = IPFW_TLV_COUNTERS; 867 ctlv->head.length = sz - sizeof(ipfw_obj_header); 868 ctlv->count = sizeof(stats) / sizeof(uint64_t); 869 ctlv->objsize = sizeof(uint64_t); 870 ctlv->version = 1; 871 memcpy(ctlv [all...] |
Completed in 92 milliseconds