Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/pf/pf_nv.c
Show First 20 Lines • Show All 1,078 Lines • ▼ Show 20 Lines | nvlist_add_number(nvl, "bytes-out", | ||||
counter_u64_fetch(krule->bytes[1])); | counter_u64_fetch(krule->bytes[1])); | ||||
nvlist_add_string(nvl, "qname", krule->qname); | nvlist_add_string(nvl, "qname", krule->qname); | ||||
nvlist_add_string(nvl, "tagname", krule->tagname); | nvlist_add_string(nvl, "tagname", krule->tagname); | ||||
nvlist_add_number(nvl, "dnpipe", krule->dnpipe); | nvlist_add_number(nvl, "dnpipe", krule->dnpipe); | ||||
nvlist_add_number(nvl, "dnflags", krule->dnflags); | nvlist_add_number(nvl, "dnflags", krule->dnflags); | ||||
nvlist_add_number(nvl, "anchor_relative", krule->anchor_relative); | |||||
nvlist_add_number(nvl, "anchor_wildcard", krule->anchor_wildcard); | |||||
nvlist_add_number(nvl, "action", krule->action); | nvlist_add_number(nvl, "action", krule->action); | ||||
return (nvl); | return (nvl); | ||||
} | } | ||||
int | int | ||||
pf_nveth_rule_to_keth_rule(const nvlist_t *nvl, | pf_nveth_rule_to_keth_rule(const nvlist_t *nvl, | ||||
struct pf_keth_rule *krule) | struct pf_keth_rule *krule) | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |