netfilter: cttimeout: allow to set/get default protocol timeouts
Subsystems (2)
Pablo Neira Ayuso
maintainerPATCH 1/1 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 <[email protected]>
--- include/uapi/linux/netfilter/nfnetlink_cttimeout.h | 2 + net/netfilter/nfnetlink_cttimeout.c | 161 +++++++++++++++++++- 2 files changed, 155 insertions(+), 8 deletions(-)
include/uapi/linux/netfilter/nfnetlink_cttimeout.h +2 -0
@@ -6,6 +6,8 @@ enum ctnl_timeout_msg_types {IPCTNL_MSG_TIMEOUT_NEW ,IPCTNL_MSG_TIMEOUT_GET ,IPCTNL_MSG_TIMEOUT_DELETE , +IPCTNL_MSG_TIMEOUT_DEFAULT_SET , +IPCTNL_MSG_TIMEOUT_DEFAULT_GET , IPCTNL_MSG_TIMEOUT_MAX };
net/netfilter/nfnetlink_cttimeout.c +153 -8
197 lines not on this page · raw message
Signature · 1 line
1.7.10.4