]> Pileus Git - ~andy/linux/commit
netfilter: cttimeout: allow to set/get default protocol timeouts
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 4 Sep 2013 18:57:48 +0000 (20:57 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 1 Oct 2013 11:17:39 +0000 (13:17 +0200)
commit91cb498e6a34b429a032f8cfbb57dde28cd20e0c
treecdd44ad555fa1968ddde61543b7f0f12f69e8545
parent180cf72f56fab2810e00497c087c7126bfe53c85
netfilter: cttimeout: allow to set/get default protocol timeouts

Default timeouts are currently set via proc/sysctl interface, the
typical pattern is a file name like:

/proc/sys/net/netfilter/nf_conntrack_PROTOCOL_timeout_STATE

This results in one entry per default protocol state timeout.
This patch simplifies this by allowing to set default protocol
timeouts via cttimeout netlink interface.

This should allow us to get rid of the existing proc/sysctl code
in the midterm.

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