summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2020-03-24 12:34:33 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2020-03-27 18:32:36 +0100
commit8ac2bd357775b3abf838110833279ea1a3b035e4 (patch)
treeb60246d0d78216f92c1bb9f72fe8e5a54fdd6703 /include/net
parent73348fed35d023e998cbd303a28400f2c0ec30a3 (diff)
netfilter: conntrack: export nf_ct_acct_update()
This function allows you to update the conntrack counters. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/netfilter/nf_conntrack_acct.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_conntrack_acct.h b/include/net/netfilter/nf_conntrack_acct.h
index f7a060c6eb28..df198c51244a 100644
--- a/include/net/netfilter/nf_conntrack_acct.h
+++ b/include/net/netfilter/nf_conntrack_acct.h
@@ -65,6 +65,8 @@ static inline void nf_ct_set_acct(struct net *net, bool enable)
#endif
}
+void nf_ct_acct_update(struct nf_conn *ct, u32 dir, unsigned int bytes);
+
void nf_conntrack_acct_pernet_init(struct net *net);
int nf_conntrack_acct_init(void);