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 <[email protected]>
Tested-by: Andreas Petlund <[email protected]>
Acked-by: Andreas Petlund <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Josh Hunt 2010-07-30 13:49:35 +00:00 • committed by David S. Miller
commit 3c0fef0b7d

View 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;
}