aboutsummaryrefslogtreecommitdiff
path: root/sbin/pfctl
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2022-03-29 12:28:37 +0000
committerKristof Provost <kp@FreeBSD.org>2022-03-30 08:28:19 +0000
commitd27c9f5bc38eda519145092c13bca2823a9998d8 (patch)
tree35a2c72ea3c59a74be30c10e0e28f7ae79e29bed /sbin/pfctl
parent81cac0d2f6035e02430fcdfa0ac8a081a9343f8d (diff)
downloadsrc-d27c9f5bc38eda519145092c13bca2823a9998d8.tar.gz
src-d27c9f5bc38eda519145092c13bca2823a9998d8.zip
pf: fixup match rules
Ensure that we can set and print match rules in ethernet rules. Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'sbin/pfctl')
-rw-r--r--sbin/pfctl/pfctl_parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index b6d1ebc127e1..1bd95b076ce6 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -744,7 +744,8 @@ void
print_eth_rule(struct pfctl_eth_rule *r, const char *anchor_call,
int rule_numbers)
{
- static const char *actiontypes[] = { "pass", "block" };
+ static const char *actiontypes[] = { "pass", "block", "", "", "", "",
+ "", "", "", "", "", "", "match" };
if (rule_numbers)
printf("@%u ", r->nr);