diff options
author | Mike Frantzen <frantzen@cvs.openbsd.org> | 2003-05-14 05:02:13 +0000 |
---|---|---|
committer | Mike Frantzen <frantzen@cvs.openbsd.org> | 2003-05-14 05:02:13 +0000 |
commit | 59cd748a52b594531ff4efc77544f54d005f1304 (patch) | |
tree | e42b22b860cced1b1f3a679c682581fcf3472023 | |
parent | 855ea8d8313d131ce3066c08debc8ffd0588ec9e (diff) |
allow SCRUB rules to specify protocol again. broken sometime in the past.
okie dhartmei@, yay pb@
-rw-r--r-- | sbin/pfctl/parse.y | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index e5d9b225306..199072470ca 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.377 2003/05/14 04:53:04 henning Exp $ */ +/* $OpenBSD: parse.y,v 1.378 2003/05/14 05:02:12 frantzen Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -633,7 +633,7 @@ loadrule : LOAD ANCHOR string FROM string { free($5); }; -scrubrule : SCRUB dir logquick interface af fromto scrub_opts +scrubrule : SCRUB dir logquick interface af proto fromto scrub_opts { struct pf_rule r; @@ -659,19 +659,19 @@ scrubrule : SCRUB dir logquick interface af fromto scrub_opts } } r.af = $5; - if ($7.nodf) + if ($8.nodf) r.rule_flag |= PFRULE_NODF; - if ($7.randomid) + if ($8.randomid) r.rule_flag |= PFRULE_RANDOMID; - if ($7.minttl) - r.min_ttl = $7.minttl; - if ($7.maxmss) - r.max_mss = $7.maxmss; - if ($7.fragcache) - r.rule_flag |= $7.fragcache; - - expand_rule(&r, $4, NULL, NULL, - $6.src.host, $6.src.port, $6.dst.host, $6.dst.port, + if ($8.minttl) + r.min_ttl = $8.minttl; + if ($8.maxmss) + r.max_mss = $8.maxmss; + if ($8.fragcache) + r.rule_flag |= $8.fragcache; + + expand_rule(&r, $4, NULL, $6, + $7.src.host, $7.src.port, $7.dst.host, $7.dst.port, NULL, NULL, NULL); } ; |