diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2012-07-10 09:39:27 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2012-07-10 09:39:27 +0000 |
commit | 4002041a3851c90f39e2583f12e2caca85d95677 (patch) | |
tree | 907f04ea534baa3e36892f31878adda715240b63 /sbin | |
parent | 7b63b3750c6af65f1fca9fdfd8c8fc9384d2502e (diff) |
use PFSTATE_SCRUBMASK
whenever you see (flags >= ONE_OF_THE_FLAGS), run. that must break sooner
or later.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pfctl/pfctl_parser.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c index d492ffbc1f1..e247b62eded 100644 --- a/sbin/pfctl/pfctl_parser.c +++ b/sbin/pfctl/pfctl_parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_parser.c,v 1.288 2012/07/10 09:23:56 henning Exp $ */ +/* $OpenBSD: pfctl_parser.c,v 1.289 2012/07/10 09:39:26 henning Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -998,9 +998,7 @@ print_rule(struct pf_rule *r, const char *anchor_call, int opts) if (r->rule_flag & PFRULE_FRAGMENT) printf(" fragment"); - /* XXX the scrub_flags mess needs to be cleaned up */ - if ((r->scrub_flags & ~PFSTATE_SETTOS) >= PFSTATE_NODF || - r->min_ttl || r->max_mss) { + if (r->scrub_flags & PFSTATE_SCRUBMASK || r->min_ttl || r->max_mss) { printf(" scrub ("); ropts = 1; if (r->scrub_flags & PFSTATE_NODF) { |