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

/freebsd-11-stable/sys/netpfil/ipfw/nat64/
H A Dnat64clat_control.c425 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 Dnat64stl_control.c430 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 Dnat64lsn_control.c482 ipfw_obj_ctlv *ctlv; local
505 ctlv = (ipfw_obj_ctlv *)(oh + 1);
506 memset(ctlv, 0, sizeof(*ctlv));
507 ctlv->head.type = IPFW_TLV_COUNTERS;
508 ctlv->head.length = sz - sizeof(ipfw_obj_header);
509 ctlv->count = sizeof(stats) / sizeof(uint64_t);
510 ctlv->objsize = sizeof(uint64_t);
511 ctlv->version = IPFW_NAT64_VERSION;
512 memcpy(ctlv
[all...]
/freebsd-11-stable/sys/netpfil/ipfw/
H A Dip_fw_sockopt.c2294 ipfw_obj_ctlv *ctlv; local
2299 ctlv = (ipfw_obj_ctlv *)ipfw_get_sopt_space(sd, sizeof(*ctlv));
2300 if (ctlv == NULL)
2302 ctlv->head.type = IPFW_TLV_TBLNAME_LIST;
2303 ctlv->head.length = da->tcount * sizeof(ipfw_obj_ntlv) +
2304 sizeof(*ctlv);
2305 ctlv->count = da->tcount;
2306 ctlv->objsize = sizeof(ipfw_obj_ntlv);
2326 ipfw_obj_ctlv *ctlv; local
2930 ipfw_obj_ctlv *ctlv, *rtlv, *tstate; local
[all...]
H A Dip_fw_table.c965 ipfw_obj_ctlv *ctlv; local
972 if (sd->valsize < (sizeof(*oh) + sizeof(*ctlv)))
987 ctlv = (ipfw_obj_ctlv *)(oh + 1);
988 if (ctlv->head.length + read != sd->valsize)
991 read += sizeof(*ctlv);
992 tent = (ipfw_obj_tentry *)(ctlv + 1);
993 if (ctlv->count * sizeof(*tent) + read != sd->valsize)
996 if (ctlv->count == 0)
1009 for (i = 0; i < ctlv->count; i++, ptent++) {
1022 if (ctlv
[all...]
H A Dip_fw_dynamic.c3043 ipfw_obj_ctlv *ctlv; local
3056 ctlv = (ipfw_obj_ctlv *)ipfw_get_sopt_space(sd, sizeof(*ctlv));
3057 if (ctlv == NULL)
3059 ctlv->head.type = IPFW_TLV_DYNSTATE_LIST;
3060 ctlv->objsize = sizeof(ipfw_obj_dyntlv);
H A Dip_fw_private.h496 ipfw_obj_ctlv *ctlv; /* name TLV containter */ member in struct:rule_check_info
/freebsd-11-stable/sbin/ipfw/
H A Dipfw2.c401 static char *table_search_ctlv(ipfw_obj_ctlv *ctlv, uint16_t idx);
402 static void object_sort_ctlv(ipfw_obj_ctlv *ctlv);
403 static char *object_search_ctlv(ipfw_obj_ctlv *ctlv, uint16_t idx,
2551 ipfw_obj_ctlv *ctlv; local
2557 ctlv = (ipfw_obj_ctlv *)base;
2558 switch (ctlv->head.type) {
2560 base += sizeof(*ctlv);
2561 sz -= sizeof(*ctlv);
2768 ipfw_obj_ctlv *ctlv, *tstate; local
2783 ctlv
5160 object_sort_ctlv(ipfw_obj_ctlv *ctlv) argument
5201 object_search_ctlv(ipfw_obj_ctlv *ctlv, uint16_t idx, uint16_t type) argument
5219 table_search_ctlv(ipfw_obj_ctlv *ctlv, uint16_t idx) argument
5258 ipfw_obj_ctlv *ctlv, *tstate; local
[all...]
H A Dtables.c900 ipfw_obj_ctlv *ctlv; local
907 sz = sizeof(*ctlv) + sizeof(*tent) * count;
920 ctlv = (ipfw_obj_ctlv *)(oh + 1);
921 ctlv->count = count;
922 ctlv->head.length = sz;
924 ctlv->flags |= IPFW_CTF_ATOMIC;
927 memcpy(ctlv + 1, tent, sizeof(*tent) * count);
928 tent = (ipfw_obj_tentry *)(ctlv + 1);
938 tent = (ipfw_obj_tentry *)(ctlv + 1);
940 memcpy(tent_base, ctlv
[all...]
/freebsd-11-stable/sys/netpfil/ipfw/nptv6/
H A Dnptv6.c690 ipfw_obj_ctlv *ctlv; local
715 ctlv = (ipfw_obj_ctlv *)(oh + 1);
716 memset(ctlv, 0, sizeof(*ctlv));
717 ctlv->head.type = IPFW_TLV_COUNTERS;
718 ctlv->head.length = sz - sizeof(ipfw_obj_header);
719 ctlv->count = sizeof(stats) / sizeof(uint64_t);
720 ctlv->objsize = sizeof(uint64_t);
721 ctlv->version = 1;
722 memcpy(ctlv
[all...]

Completed in 120 milliseconds