netfilter: conntrack: introduce nf_ct_acct_update()
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 2 May 2016 19:28:57 +0000 (21:28 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 5 May 2016 14:39:49 +0000 (16:39 +0200)
commitba76738c032ec0af3acbecd85c429c6a5c9e5e5e
tree092c67b18fa5ff48ed3be0cf1248550da3abfefe
parent4b4ceb9dbf6a549682edff9fc5f04c204da50ab9
netfilter: conntrack: introduce nf_ct_acct_update()

Introduce a helper function to update conntrack counters.
__nf_ct_kill_acct() was unnecessarily subtracting skb_network_offset()
that is expected to be zero from the ipv4/ipv6 hooks.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_core.c