diff options
author | Kristof Provost <kp@FreeBSD.org> | 2022-03-29 12:28:37 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2022-03-30 08:28:19 +0000 |
commit | d27c9f5bc38eda519145092c13bca2823a9998d8 (patch) | |
tree | 35a2c72ea3c59a74be30c10e0e28f7ae79e29bed /sbin/pfctl | |
parent | 81cac0d2f6035e02430fcdfa0ac8a081a9343f8d (diff) | |
download | src-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.c | 3 |
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); |