Skip to content

Report socket shutdown state via sock-diag

Pavel Emelyanov netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3sk: Introduce the shutdown user-to-mask routineinclude/net/sock.h net/ipv4/af_inet.c net/iucv/af_iucv.c +1 more+25 -140 replies
2/3inet-diag: Get more bits for extension flaginclude/uapi/linux/inet_diag.h net/ipv4/inet_diag.c+5 -10 replies
3/3sock-diag: Report shutdown for inet and unix socketsinclude/linux/sock_diag.h include/net/sock.h include/uapi/linux/inet_diag.h +4 more+34 -14 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/3] Report socket shutdown state via sock-diag

The sk->sk_shutdown mask (set by sys_shutdown) cannot be read from the user space. I suppose that the best API to report it is the recently added sock-diag one (as we can use it not only in the checkpoint-restore project, but also enhance the ss output with the shutdown info).

However, there's one issue with the inet-diag part of it -- we've run out of bits on the extension flags of dump request. This one is addressed in the patch #2.

Thanks,
Pavel