summaryrefslogtreecommitdiffstats
path: root/sbin/pfctl/pfctl_parser.c
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-08-17 13:53:06 -0300
committerRenato Botelho <renato@netgate.com>2015-08-17 13:53:06 -0300
commit2042629d2832f01aedf341b8cfdf333f39743595 (patch)
tree6e22eb34609a9bd0fc3a18ea508b3377cdef4b7c /sbin/pfctl/pfctl_parser.c
parentba3cfbc880a712304a0cbc8e48a8bc428a40ab50 (diff)
downloadFreeBSD-src-2042629d2832f01aedf341b8cfdf333f39743595.zip
FreeBSD-src-2042629d2832f01aedf341b8cfdf333f39743595.tar.gz
Importing pfSense patch pf_match.diff
Diffstat (limited to 'sbin/pfctl/pfctl_parser.c')
-rw-r--r--sbin/pfctl/pfctl_parser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index b4a6eb9..bf3fe8c 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -692,7 +692,9 @@ print_rule(struct pf_rule *r, const char *anchor_call, int verbose, int numeric)
if (verbose)
printf("@%d ", r->nr);
- if (r->action > PF_NORDR)
+ if (r->action == PF_MATCH)
+ printf("match");
+ else if (r->action > PF_NORDR)
printf("action(%d)", r->action);
else if (anchor_call[0]) {
if (anchor_call[0] == '_') {
OpenPOWER on IntegriCloud