mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
net: diag: support SOCK_DESTROY for UDP sockets
This implements SOCK_DESTROY for UDP sockets similar to what was done
for TCP with commit c1e64e298b ("net: diag: Support destroying TCP
sockets.") A process with a UDP socket targeted for destroy is awakened
and recvmsg fails with ECONNABORTED.
Signed-off-by: David Ahern <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
5128b18522
commit
5d77dca828
4 changed files with 96 additions and 0 deletions
|
|
@ -1467,6 +1467,7 @@ struct proto udpv6_prot = {
|
|||
.compat_getsockopt = compat_udpv6_getsockopt,
|
||||
#endif
|
||||
.clear_sk = udp_v6_clear_sk,
|
||||
.diag_destroy = udp_abort,
|
||||
};
|
||||
|
||||
static struct inet_protosw udpv6_protosw = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue