summaryrefslogtreecommitdiff
path: root/src/build.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-12-29 20:02:55 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2010-02-11 12:06:37 +0100
commit56817d1c0cc30bcd65c56c2f73634b256603cc4d (patch)
tree4c37a3d1416f0d17658f37502fc5a9b15f68c65e /src/build.c
parent73da80df0c3cf4175662b3da4dfbd3574d34f96a (diff)
downloadconntrack-tools-56817d1c0cc30bcd65c56c2f73634b256603cc4d.tar.gz
conntrack-tools-56817d1c0cc30bcd65c56c2f73634b256603cc4d.zip
conntrackd: add support for TCP window scale factor synchronization
This patch adds a new option TCPWindowTracking that allows not to disable TCP window tracking as it occurs by default. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/build.c')
-rw-r--r--src/build.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/build.c b/src/build.c
index 6d8b12e..0bfe8c1 100644
--- a/src/build.c
+++ b/src/build.c
@@ -103,6 +103,10 @@ static void build_l4proto_tcp(const struct nf_conntrack *ct, struct nethdr *n)
return;
__build_u8(ct, ATTR_TCP_STATE, n, NTA_TCP_STATE);
+ if (CONFIG(sync).tcp_window_tracking) {
+ __build_u8(ct, ATTR_TCP_WSCALE_ORIG, n, NTA_TCP_WSCALE_ORIG);
+ __build_u8(ct, ATTR_TCP_WSCALE_REPL, n, NTA_TCP_WSCALE_REPL);
+ }
}
static void build_l4proto_sctp(const struct nf_conntrack *ct, struct nethdr *n)