sock_diag: define destruction multicast groups
authorCraig Gallek <kraig@google.com>
Mon, 15 Jun 2015 15:26:18 +0000 (11:26 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Jun 2015 02:49:22 +0000 (19:49 -0700)
commiteb4cb008529ca08e0d8c0fa54e8f739520197a65
treee7f6c004e7e540abba090a618240c6426d2df956
parent916035ddd3f453a9152db8755dc8a1f53505444c
sock_diag: define destruction multicast groups

These groups will contain socket-destruction events for
AF_INET/AF_INET6, IPPROTO_TCP/IPPROTO_UDP.

Near the end of socket destruction, a check for listeners is
performed.  In the presence of a listener, rather than completely
cleanup the socket, a unit of work will be added to a private
work queue which will first broadcast information about the socket
and then finish the cleanup operation.

Signed-off-by: Craig Gallek <kraig@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/sock_diag.h
include/net/sock.h
include/uapi/linux/sock_diag.h
net/core/sock.c
net/core/sock_diag.c