netfilter: ctnetlink: add new messages to obtain statistics
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 26 Jun 2012 18:27:09 +0000 (20:27 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 27 Jun 2012 15:28:03 +0000 (17:28 +0200)
commit392025f87a5105c640cf1b4b317c21c14c05a6f9
tree2d3a1dd345060bb9e8bf89bdde18fc215cbee2c3
parent93040ae5cc8dcc893eca4a4366dc8415af278edf
netfilter: ctnetlink: add new messages to obtain statistics

This patch adds the following messages to ctnetlink:

IPCTNL_MSG_CT_GET_STATS_CPU
IPCTNL_MSG_CT_GET_STATS
IPCTNL_MSG_EXP_GET_STATS_CPU

To display connection tracking system per-cpu and global statistics.

This provides a replacement for the following /proc interfaces:

/proc/net/stat/nf_conntrack
/proc/sys/net/netfilter/nf_conntrack_count

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter/nfnetlink_conntrack.h
net/netfilter/nf_conntrack_netlink.c