aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/in6.h
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2016-11-02 11:02:17 -0400
committerDavid S. Miller <davem@davemloft.net>2016-11-03 15:41:11 -0400
commit0cc0aa614b4c24b21b2492c0a1753035ee8c6edb (patch)
tree848076fe75ed2503f9ef9b479cefb2317ea18682 /include/uapi/linux/in6.h
parentipv4: add IP_RECVFRAGSIZE cmsg (diff)
downloadlinux-dev-0cc0aa614b4c24b21b2492c0a1753035ee8c6edb.tar.xz
linux-dev-0cc0aa614b4c24b21b2492c0a1753035ee8c6edb.zip
ipv6: add IPV6_RECVFRAGSIZE cmsg
When reading a datagram or raw packet that arrived fragmented, expose the maximum fragment size if recorded to allow applications to estimate receive path MTU. At this point, the field is only recorded when ipv6 connection tracking is enabled. A follow-up patch will record this field also in the ipv6 input path. Tested using the test for IP_RECVFRAGSIZE plus ip netns exec to ip addr add dev veth1 fc07::1/64 ip netns exec from ip addr add dev veth0 fc07::2/64 ip netns exec to ./recv_cmsg_recvfragsize -6 -u -p 6000 & ip netns exec from nc -q 1 -u fc07::1 6000 < payload Both with and without enabling connection tracking ip6tables -A INPUT -m state --state NEW -p udp -j LOG Signed-off-by: Willem de Bruijn <willemb@google.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/in6.h')
-rw-r--r--include/uapi/linux/in6.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/in6.h b/include/uapi/linux/in6.h
index b39ea4f2e701..46444f8fbee4 100644
--- a/include/uapi/linux/in6.h
+++ b/include/uapi/linux/in6.h
@@ -283,6 +283,7 @@ struct in6_flowlabel_req {
#define IPV6_RECVORIGDSTADDR IPV6_ORIGDSTADDR
#define IPV6_TRANSPARENT 75
#define IPV6_UNICAST_IF 76
+#define IPV6_RECVFRAGSIZE 77
/*
* Multicast Routing: