Searched refs:ctlv (Results 1 - 10 of 10) sorted by relevance

/freebsd-13-stable/sys/netpfil/ipfw/nat64/
H A Dnat64clat_control.c424 ipfw_obj_ctlv *ctlv; local
446 ctlv = (ipfw_obj_ctlv *)(oh + 1);
447 memset(ctlv, 0, sizeof(*ctlv));
448 ctlv->head.type = IPFW_TLV_COUNTERS;
449 ctlv->head.length = sz - sizeof(ipfw_obj_header);
450 ctlv->count = sizeof(stats) / sizeof(uint64_t);
451 ctlv->objsize = sizeof(uint64_t);
452 ctlv->version = IPFW_NAT64_VERSION;
453 memcpy(ctlv
[all...]
H A Dnat64stl_control.c429 ipfw_obj_ctlv *ctlv; local
451 ctlv = (ipfw_obj_ctlv *)(oh + 1);
452 memset(ctlv, 0, sizeof(*ctlv));
453 ctlv->head.type = IPFW_TLV_COUNTERS;
454 ctlv->head.length = sz - sizeof(ipfw_obj_header);
455 ctlv->count = sizeof(stats) / sizeof(uint64_t);
456 ctlv->objsize = sizeof(uint64_t);
457 ctlv->version = IPFW_NAT64_VERSION;
458 memcpy(ctlv
[all...]
H A Dnat64lsn_control.c480 ipfw_obj_ctlv *ctlv; local
503 ctlv = (ipfw_obj_ctlv *)(oh + 1);
504 memset(ctlv, 0, sizeof(*ctlv));
505 ctlv->head.type = IPFW_TLV_COUNTERS;
506 ctlv->head.length = sz - sizeof(ipfw_obj_header);
507 ctlv->count = sizeof(stats) / sizeof(uint64_t);
508 ctlv->objsize = sizeof(uint64_t);
509 ctlv->version = IPFW_NAT64_VERSION;
510 memcpy(ctlv
[all...]
/freebsd-13-stable/sys/netpfil/ipfw/
H A Dip_fw_sockopt.c2283 ipfw_obj_ctlv *ctlv; local
2288 ctlv = (ipfw_obj_ctlv *)ipfw_get_sopt_space(sd, sizeof(*ctlv));
2289 if (ctlv == NULL)
2291 ctlv->head.type = IPFW_TLV_TBLNAME_LIST;
2292 ctlv->head.length = da->tcount * sizeof(ipfw_obj_ntlv) +
2293 sizeof(*ctlv);
2294 ctlv->count = da->tcount;
2295 ctlv->objsize = sizeof(ipfw_obj_ntlv);
2315 ipfw_obj_ctlv *ctlv; local
2916 ipfw_obj_ctlv *ctlv, *rtlv, *tstate; local
[all...]
H A Dip_fw_table.c969 ipfw_obj_ctlv *ctlv; local
976 if (sd->valsize < (sizeof(*oh) + sizeof(*ctlv)))
991 ctlv = (ipfw_obj_ctlv *)(oh + 1);
992 if (ctlv->head.length + read != sd->valsize)
995 read += sizeof(*ctlv);
996 tent = (ipfw_obj_tentry *)(ctlv + 1);
997 if (ctlv->count * sizeof(*tent) + read != sd->valsize)
1000 if (ctlv->count == 0)
1013 for (i = 0; i < ctlv->count; i++, ptent++) {
1026 if (ctlv
[all...]
H A Dip_fw_dynamic.c3078 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 Dip_fw_private.h485 ipfw_obj_ctlv *ctlv; /* name TLV containter */ member in struct:rule_check_info
/freebsd-13-stable/sbin/ipfw/
H A Dipfw2.c409 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 Dtables.c899 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-13-stable/sys/netpfil/ipfw/nptv6/
H A Dnptv6.c840 ipfw_obj_ctlv *ctlv; local
865 ctlv = (ipfw_obj_ctlv *)(oh + 1);
866 memset(ctlv, 0, sizeof(*ctlv));
867 ctlv->head.type = IPFW_TLV_COUNTERS;
868 ctlv->head.length = sz - sizeof(ipfw_obj_header);
869 ctlv->count = sizeof(stats) / sizeof(uint64_t);
870 ctlv->objsize = sizeof(uint64_t);
871 ctlv->version = 1;
872 memcpy(ctlv
[all...]

Completed in 202 milliseconds