nfct: timeout: add support for default protocol timeout tuning
Pablo Neira Ayuso
maintainerPATCH 1/1 nfct: timeout: add support for default protocol timeout tuning
This new interface supersedes the /proc interface:
/proc/sys/net/netfilter/nf_conntrack_PROTO_STATE_timeout
to tune default conntrack timeout helpers.
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- include/linux/netfilter/nfnetlink_cttimeout.h | 2 + include/nfct.h | 2 + src/nfct-extensions/timeout.c | 155 ++++++++++++++++++++++++- 3 files changed, 157 insertions(+), 2 deletions(-)
include/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 };
include/nfct.h +2 -0
@@ -19,6 +19,8 @@ enum {NFCT_CMD_GET ,NFCT_CMD_FLUSH ,NFCT_CMD_DISABLE , +NFCT_CMD_DEFAULT_SET , + NFCT_CMD_DEFAULT_GET, };#define __init __attribute__((constructor))
src/nfct-extensions/timeout.c +153 -2
185 lines not on this page · raw message
Signature · 1 line
1.7.10.4