diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-02-24 08:48:01 -0500 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2009-02-24 08:48:01 -0500 |
commit | 7d1e04598e5e92527840b6889fb75b4b30fdd33b (patch) | |
tree | 3f51683922f948ff96ba81c95b0cad53f1d7b52c | |
parent | 08361aa807ae5e5007cd226ca9e34287512de737 (diff) |
netfilter: nf_conntrack: account packets drop by tcp_packet()
Since tcp_packet() may return -NF_DROP in two situations, the
packet-drop stats must be increased.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
-rw-r--r-- | net/netfilter/nf_conntrack_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c index 2235432c59d..ebc27560012 100644 --- a/net/netfilter/nf_conntrack_core.c +++ b/net/netfilter/nf_conntrack_core.c | |||
@@ -734,6 +734,8 @@ nf_conntrack_in(struct net *net, u_int8_t pf, unsigned int hooknum, | |||
734 | nf_conntrack_put(skb->nfct); | 734 | nf_conntrack_put(skb->nfct); |
735 | skb->nfct = NULL; | 735 | skb->nfct = NULL; |
736 | NF_CT_STAT_INC_ATOMIC(net, invalid); | 736 | NF_CT_STAT_INC_ATOMIC(net, invalid); |
737 | if (ret == -NF_DROP) | ||
738 | NF_CT_STAT_INC_ATOMIC(net, drop); | ||
737 | return -ret; | 739 | return -ret; |
738 | } | 740 | } |
739 | 741 | ||