diff options
| author | David S. Miller <davem@davemloft.net> | 2016-11-03 22:41:12 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2016-11-03 22:41:12 +0300 |
| commit | a799126864986076e576d7bec549ae055eaa4490 (patch) | |
| tree | 89cb7c09e7b2a523a0fa8f266aae125fc163db93 /include/uapi/linux | |
| parent | 1b99e5e854d4de2d795c4dbed7cc59c65ae372fe (diff) | |
| parent | dbd1759e6a9c4596d8609897c414da603da80914 (diff) | |
| download | linux-a799126864986076e576d7bec549ae055eaa4490.tar.xz | |
Merge branch 'ip-recvfragsize-cmsg'
Willem de Bruijn says:
====================
ip: add RECVFRAGSIZE cmsg
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.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/in.h | 1 | ||||
| -rw-r--r-- | include/uapi/linux/in6.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/in.h b/include/uapi/linux/in.h index eaf94919291a..4e557f4e9553 100644 --- a/include/uapi/linux/in.h +++ b/include/uapi/linux/in.h @@ -117,6 +117,7 @@ struct in_addr { #define IP_NODEFRAG 22 #define IP_CHECKSUM 23 #define IP_BIND_ADDRESS_NO_PORT 24 +#define IP_RECVFRAGSIZE 25 /* IP_MTU_DISCOVER values */ #define IP_PMTUDISC_DONT 0 /* Never send DF frames */ 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: |
