tcp: diag: add support for request sockets to tcp_abort()
authorEric Dumazet <edumazet@google.com>
Fri, 18 Dec 2015 00:14:11 +0000 (16:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Dec 2015 21:06:39 +0000 (16:06 -0500)
commit07f6f4a31e5a8dee67960fc07bb0b37c5f879d4d
tree729a57a6a8b11331a4be6df5fffe7fc001f570f9
parentd73e5f41462182053ce1195c3fc4fc14a7e7666b
tcp: diag: add support for request sockets to tcp_abort()

Adding support for SYN_RECV request sockets to tcp_abort()
is quite easy after our tcp listener rewrite.

Note that we also need to better handle listeners, or we might
leak not yet accepted children, because of a missing
inet_csk_listen_stop() call.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Lorenzo Colitti <lorenzo@google.com>
Tested-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c