net: diag: support SOCK_DESTROY for UDP sockets
authorDavid Ahern <dsa@cumulusnetworks.com>
Wed, 24 Aug 2016 04:06:33 +0000 (21:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Aug 2016 06:12:27 +0000 (23:12 -0700)
commit5d77dca82839ef016a93ad7acd7058b14d967752
tree6ce7ab03eddb29ebcca23e80de5018401b4b00e9
parent5128b18522e143e634712ceef6a007333b8c7439
net: diag: support SOCK_DESTROY for UDP sockets

This implements SOCK_DESTROY for UDP sockets similar to what was done
for TCP with commit c1e64e298b8ca ("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 <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/udp.h
net/ipv4/udp.c
net/ipv4/udp_diag.c
net/ipv6/udp.c