diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2015-04-08 12:50:22 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2015-04-08 12:50:22 +0000 |
commit | c57348e0ee6ff04348ddbd8f5d9dc97a255a448e (patch) | |
tree | 35c842a1ace69f3b73a86a91b3f957303aea1dff /sys/net/pf.c | |
parent | f948b97a7c9e14e9354485155f7aebac5b939da1 (diff) |
Destination table needs it's own negation flag passed to the pfr_update_stats.
Spotted by Alexandr Nedvedicky <alexandr ! nedvedicky at oracle ! com>,
thanks a lot! Ok florian
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r-- | sys/net/pf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 8e180b0f0e8..e6a395ab188 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.909 2015/03/18 12:23:15 dlg Exp $ */ +/* $OpenBSD: pf.c,v 1.910 2015/04/08 12:50:21 mikeb Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -6277,7 +6277,7 @@ pf_counters_inc(int action, struct pf_pdesc *pd, struct pf_state *s, pfr_update_stats(ri->r->dst.addr.p.tbl, &s->key[(s->direction == PF_IN)]-> addr[(s->direction == PF_IN)], - pd, ri->r->action, ri->r->src.neg); + pd, ri->r->action, ri->r->dst.neg); } } if (r->src.addr.type == PF_ADDR_TABLE) |