net: Add getsockopt support for TCP thin-streams
authorJosh Hunt <johunt@akamai.com>
Fri, 30 Jul 2010 13:49:35 +0000 (13:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Aug 2010 00:25:06 +0000 (17:25 -0700)
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 <johunt@akamai.com>
Tested-by: Andreas Petlund <apetlund@simula.no>
Acked-by: Andreas Petlund <apetlund@simula.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c

index 86b9f67..1a70065 100644 (file)
@@ -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;
        }