diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2013-01-16 09:18:35 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2013-01-16 09:18:35 +0000 |
commit | e2ba017ceb6544af31cd5b07a045ab2c2f13561f (patch) | |
tree | d1ac02ffbf2bf7595c5581503fe17b2da1299de3 /sys/net/pf_table.c | |
parent | a949c7b283274af3faed7a98d771d87f804ca0e2 (diff) |
Unbreak the negation toggle code when re-loading pf tables. Otherwise
negating existing entries on re-load does not work (e.g. changing
192.168.6.0/24 to !192.168.6.0/24 in table was ignoed).
ok mikeb@, henning@ mpf@, bluhm@,
Diffstat (limited to 'sys/net/pf_table.c')
-rw-r--r-- | sys/net/pf_table.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf_table.c b/sys/net/pf_table.c index 2b8145fcf1e..21d9fb2ec73 100644 --- a/sys/net/pf_table.c +++ b/sys/net/pf_table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_table.c,v 1.95 2012/12/29 14:53:05 markus Exp $ */ +/* $OpenBSD: pf_table.c,v 1.96 2013/01/16 09:18:34 markus Exp $ */ /* * Copyright (c) 2002 Cedric Berger @@ -982,7 +982,7 @@ pfr_clstats_kentries(struct pfr_kentryworkq *workq, long tzero, int negchange) SLIST_FOREACH(p, workq, pfrke_workq) { s = splsoftnet(); if (negchange) - p->pfrke_flags ^= p->pfrke_flags & PFRKE_FLAG_NOT; + p->pfrke_flags ^= PFRKE_FLAG_NOT; if (p->pfrke_counters) { pool_put(&pfr_kcounters_pl, p->pfrke_counters); p->pfrke_counters = NULL; |