From: Josh Hunt Date: Fri, 30 Jul 2010 13:49:35 +0000 (+0000) Subject: net: Add getsockopt support for TCP thin-streams X-Git-Tag: v3.12-rc1~9497^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c0fef0b7d36e5f8d3ea3731a8228102274e3c23;p=kernel%2Fkernel-generic.git net: Add getsockopt support for TCP thin-streams Initial TCP thin-stream commit did not add getsockopt support for the new socket options: TCP_THIN_LINEAR_TIMEOUTS and TCP_THIN_DUPACK. This adds support for them. Signed-off-by: Josh Hunt Tested-by: Andreas Petlund Acked-by: Andreas Petlund Signed-off-by: David S. Miller --- diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 86b9f67..1a70065 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -2601,6 +2601,12 @@ static int do_tcp_getsockopt(struct sock *sk, int level, return -EFAULT; return 0; } + case TCP_THIN_LINEAR_TIMEOUTS: + val = tp->thin_lto; + break; + case TCP_THIN_DUPACK: + val = tp->thin_dupack; + break; default: return -ENOPROTOOPT; }