Skip to contentSkip to conversation

nfct: timeout: add support for default protocol timeout tuning

PATCH New Pablo Neira Ayuso 1 participant 1 message Sep 30, 2013 netfilter

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 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.

---
 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
index a2810a7..1ab0b97 100644
@@ -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
index ddf9038..f40985c 100644
@@ -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