summaryrefslogtreecommitdiff
path: root/lib/libpfctl
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2021-09-27 12:50:30 +0000
committerKristof Provost <kp@FreeBSD.org>2022-03-02 16:00:06 +0000
commitfb330f3931a2df0cebd2c8726f9d5362cceb0f2a (patch)
treeabb16b53615d146b4b38c467d40576a1382e4777 /lib/libpfctl
parentab2886f0885c15046c1ee17a30951b7e8cf1be51 (diff)
Diffstat (limited to 'lib/libpfctl')
-rw-r--r--lib/libpfctl/libpfctl.c6
-rw-r--r--lib/libpfctl/libpfctl.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/libpfctl/libpfctl.c b/lib/libpfctl/libpfctl.c
index 7255d18410a8..fd7dd7a474a0 100644
--- a/lib/libpfctl/libpfctl.c
+++ b/lib/libpfctl/libpfctl.c
@@ -603,6 +603,9 @@ pfctl_nveth_rule_to_eth_rule(const nvlist_t *nvl, struct pfctl_eth_rule *rule)
strlcpy(rule->tagname, nvlist_get_string(nvl, "tagname"),
PF_TAG_NAME_SIZE);
+ rule->dnpipe = nvlist_get_number(nvl, "dnpipe");
+ rule->dnflags = nvlist_get_number(nvl, "dnflags");
+
rule->action = nvlist_get_number(nvl, "action");
}
@@ -709,6 +712,9 @@ pfctl_add_eth_rule(int dev, const struct pfctl_eth_rule *r, uint32_t ticket)
nvlist_add_string(nvl, "qname", r->qname);
nvlist_add_string(nvl, "tagname", r->tagname);
+ nvlist_add_number(nvl, "dnpipe", r->dnpipe);
+ nvlist_add_number(nvl, "dnflags", r->dnflags);
+
nvlist_add_number(nvl, "action", r->action);
packed = nvlist_pack(nvl, &size);
diff --git a/lib/libpfctl/libpfctl.h b/lib/libpfctl/libpfctl.h
index b44200e00ad9..6c3dbfc5d0df 100644
--- a/lib/libpfctl/libpfctl.h
+++ b/lib/libpfctl/libpfctl.h
@@ -96,6 +96,8 @@ struct pfctl_eth_rule {
/* Action */
char qname[PF_QNAME_SIZE];
char tagname[PF_TAG_NAME_SIZE];
+ uint16_t dnpipe;
+ uint32_t dnflags;
uint8_t action;
TAILQ_ENTRY(pfctl_eth_rule) entries;