net: diag: Support destroying TCP sockets.
This implements SOCK_DESTROY for TCP sockets. It causes all blocking calls on the socket to fail fast with ECONNABORTED and causes a protocol close of the socket. It informs the other end of the connection by sending a RST, i.e., initiating a TCP ABORT as per RFC 793. ECONNABORTED was chosen for consistency with FreeBSD. [Backport of net-next c1e64e298b8cad309091b95d8436a0255c84f54a] Change-Id: I6fde455d856059fd1ef841051c651dd146d41829 Signed-off-by:Lorenzo Colitti <lorenzo@google.com> Acked-by:
Eric Dumazet <edumazet@google.com> Signed-off-by:
David S. Miller <davem@davemloft.net> Git-commit: 529dfc601d43af562473d5cd85393440f61969a9 Git-repo: https://android.googlesource.com/kernel/common/ Signed-off-by:
Ashwanth Goli <ashwanth@codeaurora.org>
Loading
Please register or sign in to comment