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>
Showing
- include/linux/sock_diag.h 42 additions, 0 deletionsinclude/linux/sock_diag.h
- include/net/sock.h 1 addition, 0 deletionsinclude/net/sock.h
- include/uapi/linux/sock_diag.h 10 additions, 0 deletionsinclude/uapi/linux/sock_diag.h
- net/core/sock.c 10 additions, 1 deletionnet/core/sock.c
- net/core/sock_diag.c 85 additions, 0 deletionsnet/core/sock_diag.c
Please register or sign in to comment