]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5677ade300104722aeb38920c614efe455666ac4
treee7f6c004e7e540abba090a618240c6426d2df956
parent1170a354d4b9655f0abf8b30d23e347ecbc69010
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