diff options
author | Josh Hunt <johunt@akamai.com> | 2010-07-30 09:49:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-02 20:25:06 -0400 |
commit | 3c0fef0b7d36e5f8d3ea3731a8228102274e3c23 (patch) | |
tree | 71e201a342dcd11946891da0d900e7fd81a23217 /net/ipv4/tcp.c | |
parent | 99e6d06521f2a522ff5aaa812552f68220507c67 (diff) |
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 <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>
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 86b9f67abed..1a700651600 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, | |||
2601 | return -EFAULT; | 2601 | return -EFAULT; |
2602 | return 0; | 2602 | return 0; |
2603 | } | 2603 | } |
2604 | case TCP_THIN_LINEAR_TIMEOUTS: | ||
2605 | val = tp->thin_lto; | ||
2606 | break; | ||
2607 | case TCP_THIN_DUPACK: | ||
2608 | val = tp->thin_dupack; | ||
2609 | break; | ||
2604 | default: | 2610 | default: |
2605 | return -ENOPROTOOPT; | 2611 | return -ENOPROTOOPT; |
2606 | } | 2612 | } |