netfilter: nf_conntrack: account packets drop by tcp_packet()
[safe/jmp/linux-2.6] / net / netfilter / nf_conntrack_core.c
index 2235432..ebc2756 100644 (file)
@@ -734,6 +734,8 @@ nf_conntrack_in(struct net *net, u_int8_t pf, unsigned int hooknum,
                nf_conntrack_put(skb->nfct);
                skb->nfct = NULL;
                NF_CT_STAT_INC_ATOMIC(net, invalid);
+               if (ret == -NF_DROP)
+                       NF_CT_STAT_INC_ATOMIC(net, drop);
                return -ret;
        }