Skip to content

Socket destruction events via netlink sock_diag

Craig Gallek netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3sock_diag: define destruction multicast groupsinclude/linux/sock_diag.h include/net/sock.h include/uapi/linux/sock_diag.h +2 more+148 -11 reply
2/3sock_diag: specify info_size per inet protocolinclude/linux/inet_diag.h net/dccp/diag.c net/ipv4/inet_diag.c +2 more+7 -21 reply
3/3sock_diag: implement a get_info handler for inetinclude/uapi/linux/inet_diag.h net/ipv4/inet_diag.c net/ipv4/tcp.c +1 more+54 -41 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarcelo Ricardo LeitnerEric Dumazet
SeriesR-b A-b
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/3] Socket destruction events via netlink sock_diag

This series extends the netlink sock_diag interface to broadcast socket information as they are being destroyed. The current interface is poll based and can not be used to retreive information about sockets that are destroyed between poll intervals.

Only inet sockets are broadcast in this implementation, but other families could easily be added as needed in the future.

If this patch set is accepted, a follow-up patch to the ss utility in the iproute2 suite will also be submitted.

Craig Gallek (3):
sock_diag: define destruction multicast groups
sock_diag: specify info_size per inet protocol
sock_diag: implement a get_info handler for inet

 include/linux/inet_diag.h      |  1 +
 include/linux/sock_diag.h      | 42 +++++++++++++++++++++
 include/net/sock.h             |  1 +
 include/uapi/linux/inet_diag.h |  3 +-
 include/uapi/linux/sock_diag.h | 10 +++++
 net/core/sock.c                | 11 +++++-
 net/core/sock_diag.c           | 85 ++++++++++++++++++++++++++++++++++++++++++
 net/dccp/diag.c                |  1 +
 net/ipv4/inet_diag.c           | 50 ++++++++++++++++++++++++-
 net/ipv4/tcp.c                 |  4 +-
 net/ipv4/tcp_diag.c            |  6 ++-
 net/ipv4/udp_diag.c            |  2 +
 12 files changed, 209 insertions(+), 7 deletions(-)
Signature · 1 line
2.2.0.rc0.207.ga3a616c