summaryrefslogtreecommitdiffstats
path: root/net/dccp/diag.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-10-14 02:12:54 +0200
committerDavid S. Miller <davem@davemloft.net>2015-10-14 03:26:34 +0200
commit4bdc3d66147b3a623b32216a45431d0cff005f50 (patch)
tree2e3f5a76b0e11c05cd1e9e88f5ab0c5cc1efe344 /net/dccp/diag.c
parentMerge branch 'bridge-vlan' (diff)
downloadlinux-4bdc3d66147b3a623b32216a45431d0cff005f50.tar.xz
linux-4bdc3d66147b3a623b32216a45431d0cff005f50.zip
tcp/dccp: fix behavior of stale SYN_RECV request sockets
When a TCP/DCCP listener is closed, its pending SYN_RECV request sockets become stale, meaning 3WHS can not complete. But current behavior is wrong : incoming packets finding such stale sockets are dropped. We need instead to cleanup the request socket and perform another lookup : - Incoming ACK will give a RST answer, - SYN rtx might find another listener if available. - We expedite cleanup of request sockets and old listener socket. Fixes: 079096f103fa ("tcp/dccp: install syn_recv requests into ehash table") Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/diag.c')
0 files changed, 0 insertions, 0 deletions