Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e165dd5e authored by Lorenzo Colitti's avatar Lorenzo Colitti Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarLorenzo Colitti <lorenzo@google.com>
Acked-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Git-commit: 529dfc601d43af562473d5cd85393440f61969a9
Git-repo: https://android.googlesource.com/kernel/common/


Signed-off-by: default avatarAshwanth Goli <ashwanth@codeaurora.org>
parent 197c8934
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment