From af214c9e75ef6276e87c8203f5f54d15ccb1159d Mon Sep 17 00:00:00 2001 From: Lorenzo Colitti Date: Wed, 26 Mar 2014 13:03:12 +0900 Subject: [PATCH] ANDROID: net: ip-sysctl: Document tcp_fwmark_accept This documentation patch is the part of original tcp_fwmark_accept implementation, Change-Id: I26bc1eceefd2c588d73b921865ab70e4645ade57 ("net: support marking accepting TCP sockets"). The implementation since then got upstreamed, 84f39b08d786 ("net: support marking accepting TCP sockets"), without this documentation part. Change-Id: I26bc1eceefd2c588d73b921865ab70e4645ade57 Signed-off-by: Lorenzo Colitti [AmitP: Refactored the commit log. Fixes: 84f39b08d786 ("net: support marking accepting TCP sockets") Signed-off-by: Amit Pundir --- Documentation/networking/ip-sysctl.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/networking/ip-sysctl.txt b/Documentation/networking/ip-sysctl.txt index 77f4de59dc9c..b0930d4b099b 100644 --- a/Documentation/networking/ip-sysctl.txt +++ b/Documentation/networking/ip-sysctl.txt @@ -608,6 +608,16 @@ tcp_fastopen_blackhole_timeout_sec - INTEGER initial value when the blackhole issue goes away. By default, it is set to 1hr. +tcp_fwmark_accept - BOOLEAN + If set, incoming connections to listening sockets that do not have a + socket mark will set the mark of the accepting socket to the fwmark of + the incoming SYN packet. This will cause all packets on that connection + (starting from the first SYNACK) to be sent with that fwmark. The + listening socket's mark is unchanged. Listening sockets that already + have a fwmark set via setsockopt(SOL_SOCKET, SO_MARK, ...) are + unaffected. + Default: 0 + tcp_syn_retries - INTEGER Number of times initial SYNs for an active TCP connection attempt will be retransmitted. Should not be higher than 127. Default value -- 2.20.1