summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPatrick McHardy2008-07-31 09:38:01 +0200
committerDavid S. Miller2008-07-31 09:38:01 +0200
commitae375044d31075a31de5a839e07ded7f67b660aa (patch)
tree13f49a97aa48fa8f19cbe7055e0b5e4df3abc462 /include
parentirda: replace __FUNCTION__ with __func__ (diff)
downloadkernel-qcow2-linux-ae375044d31075a31de5a839e07ded7f67b660aa.tar.gz
kernel-qcow2-linux-ae375044d31075a31de5a839e07ded7f67b660aa.tar.xz
kernel-qcow2-linux-ae375044d31075a31de5a839e07ded7f67b660aa.zip
netfilter: nf_conntrack_tcp: decrease timeouts while data in unacknowledged
In order to time out dead connections quicker, keep track of outstanding data and cap the timeout. Suggested by Herbert Xu. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netfilter/nf_conntrack_tcp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/netfilter/nf_conntrack_tcp.h b/include/linux/netfilter/nf_conntrack_tcp.h
index 22ce29995f13..a049df4f2236 100644
--- a/include/linux/netfilter/nf_conntrack_tcp.h
+++ b/include/linux/netfilter/nf_conntrack_tcp.h
@@ -30,6 +30,9 @@ enum tcp_conntrack {
/* Be liberal in window checking */
#define IP_CT_TCP_FLAG_BE_LIBERAL 0x08
+/* Has unacknowledged data */
+#define IP_CT_TCP_FLAG_DATA_UNACKNOWLEDGED 0x10
+
struct nf_ct_tcp_flags {
u_int8_t flags;
u_int8_t mask;