Skip to content

ip: add RECVFRAGSIZE cmsg

Willem de Bruijn netdev 1 version In review

Get series with b4
b4 am 1478098938-124108-1-git-send-email-willemdebruijn.kernel@gmail.com

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ipv4: add IP_RECVFRAGSIZE cmsginclude/net/inet_sock.h include/uapi/linux/in.h net/ipv4/ip_sockglue.c+28 -01 reply
2/3ipv6: add IPV6_RECVFRAGSIZE cmsginclude/linux/ipv6.h include/uapi/linux/in6.h net/ipv6/datagram.c +1 more+17 -21 reply
3/3ipv6: on reassembly, record frag_max_sizenet/ipv6/reassembly.c+6 -11 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchEric Dumazet
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] ip: add RECVFRAGSIZE cmsg

From: Willem de Bruijn <[email protected]>

On IP datagrams and raw sockets, when packets arrive fragmented, expose the largest received fragment size through a new cmsg.

Protocols implemented on top of these sockets may use this, for instance, to inform peers to lower MSS on platforms that silently allow send calls to exceed PMTU and cause fragmentation.

Willem de Bruijn (3):
ipv4: add IP_RECVFRAGSIZE cmsg
ipv6: add IPV6_RECVFRAGSIZE cmsg
ipv6: on reassembly, record frag_max_size

 include/linux/ipv6.h     |  5 +++--
 include/net/inet_sock.h  |  1 +
 include/uapi/linux/in.h  |  1 +
 include/uapi/linux/in6.h |  1 +
 net/ipv4/ip_sockglue.c   | 26 ++++++++++++++++++++++++++
 net/ipv6/datagram.c      |  5 +++++
 net/ipv6/ipv6_sockglue.c |  8 ++++++++
 net/ipv6/reassembly.c    |  7 ++++++-
 8 files changed, 51 insertions(+), 3 deletions(-)
Signature · 1 line
2.8.0.rc3.226.g39d4020