diff options
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 21bae9afefea..5901010fad55 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -2236,6 +2236,13 @@ static int do_tcp_setsockopt(struct sock *sk, int level, | |||
2236 | tp->thin_lto = val; | 2236 | tp->thin_lto = val; |
2237 | break; | 2237 | break; |
2238 | 2238 | ||
2239 | case TCP_THIN_DUPACK: | ||
2240 | if (val < 0 || val > 1) | ||
2241 | err = -EINVAL; | ||
2242 | else | ||
2243 | tp->thin_dupack = val; | ||
2244 | break; | ||
2245 | |||
2239 | case TCP_CORK: | 2246 | case TCP_CORK: |
2240 | /* When set indicates to always queue non-full frames. | 2247 | /* When set indicates to always queue non-full frames. |
2241 | * Later the user clears this option and we transmit | 2248 | * Later the user clears this option and we transmit |