diff options
author | 2006-10-06 16:42:03 +0000 | |
---|---|---|
committer | 2006-10-06 16:42:03 +0000 | |
commit | 4262533a6480ec67deab03148907a44c24397915 (patch) | |
tree | f37cf0fcbebb1f5027c2d66d1e094f17a04fe425 | |
parent | Print out 'no state' when the rule is not stateful. (diff) | |
download | wireguard-openbsd-4262533a6480ec67deab03148907a44c24397915.tar.xz wireguard-openbsd-4262533a6480ec67deab03148907a44c24397915.zip |
'no state' should only be printed on pass rules, though.
-rw-r--r-- | sbin/pfctl/pfctl_parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c index 0ef6d90d25b..7e8d4e2844a 100644 --- a/sbin/pfctl/pfctl_parser.c +++ b/sbin/pfctl/pfctl_parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_parser.c,v 1.228 2006/10/06 16:27:49 mcbride Exp $ */ +/* $OpenBSD: pfctl_parser.c,v 1.229 2006/10/06 16:42:03 mcbride Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -818,7 +818,7 @@ print_rule(struct pf_rule *r, const char *anchor_call, int verbose) } if (r->tos) printf(" tos 0x%2.2x", r->tos); - if (!r->keep_state) + if (!r->keep_state && r->action == PF_PASS) printf(" no state"); else if (r->keep_state == PF_STATE_NORMAL) printf(" keep state"); |