diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2011-12-19 23:26:17 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2011-12-19 23:26:17 +0000 |
commit | 4a86400b3d5d59b6ba099f6365329bfbda6560c3 (patch) | |
tree | e229e8d7361c643caf72cdd28e025f5f39e734a8 /sbin/pfctl | |
parent | 7134bebd3a39e90a50f19c5a347feb38d92a9094 (diff) |
unbreak rule optimizer; ok henning, looks
Diffstat (limited to 'sbin/pfctl')
-rw-r--r-- | sbin/pfctl/parse.y | 4 | ||||
-rw-r--r-- | sbin/pfctl/pfctl_optimize.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index 2d814d6e857..6cc44795855 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.612 2011/12/12 21:30:27 mikeb Exp $ */ +/* $OpenBSD: parse.y,v 1.613 2011/12/19 23:26:16 mikeb Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -4890,7 +4890,7 @@ expand_rule(struct pf_rule *r, int keeprule, struct node_if *interfaces, LOOP_THROUGH(struct node_uid, uid, uids, LOOP_THROUGH(struct node_gid, gid, gids, - r->af = r->naf = af; + r->af = af; error += collapse_redirspec(&r->rdr, r, rdr, 0); error += collapse_redirspec(&r->nat, r, nat, 0); diff --git a/sbin/pfctl/pfctl_optimize.c b/sbin/pfctl/pfctl_optimize.c index 3bb5edf535c..79b94a5141c 100644 --- a/sbin/pfctl/pfctl_optimize.c +++ b/sbin/pfctl/pfctl_optimize.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_optimize.c,v 1.30 2011/11/23 10:24:37 henning Exp $ */ +/* $OpenBSD: pfctl_optimize.c,v 1.31 2011/12/19 23:26:16 mikeb Exp $ */ /* * Copyright (c) 2004 Mike Frantzen <frantzen@openbsd.org> @@ -175,6 +175,7 @@ struct pf_rule_field { PF_RULE_FIELD(dst.neg, NOMERGE), PF_RULE_FIELD(rtableid, NOMERGE), PF_RULE_FIELD(onrdomain, NOMERGE), + PF_RULE_FIELD(naf, NOMERGE), /* These fields can be merged */ PF_RULE_FIELD(src.addr, COMBINED), |