diff options
author | Hannes Frederic Sowa <hannes@stressinduktion.org> | 2013-12-15 06:41:14 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-19 02:37:05 +0400 |
commit | 93b36cf3425b9bd9c56df7680fb237686b9c82ae (patch) | |
tree | 1562e2899394e011e22ce21523dd6ce1defc3ee8 /net/ipv6/ipv6_sockglue.c | |
parent | cd174e67a6b312fce9bab502ba2b0583e11f537f (diff) | |
download | linux-93b36cf3425b9bd9c56df7680fb237686b9c82ae.tar.xz |
ipv6: support IPV6_PMTU_INTERFACE on sockets
IPV6_PMTU_INTERFACE is the same as IPV6_PMTU_PROBE for ipv6. Add it
nontheless for symmetry with IPv4 sockets. Also drop incoming MTU
information if this mode is enabled.
The additional bit in ipv6_pinfo just eats in the padding behind the
bitfield. There are no changes to the layout of the struct at all.
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ipv6_sockglue.c')
-rw-r--r-- | net/ipv6/ipv6_sockglue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c index 759fbf96515b..af0ecb94b3b4 100644 --- a/net/ipv6/ipv6_sockglue.c +++ b/net/ipv6/ipv6_sockglue.c @@ -722,7 +722,7 @@ done: case IPV6_MTU_DISCOVER: if (optlen < sizeof(int)) goto e_inval; - if (val < IP_PMTUDISC_DONT || val > IP_PMTUDISC_PROBE) + if (val < IPV6_PMTUDISC_DONT || val > IPV6_PMTUDISC_INTERFACE) goto e_inval; np->pmtudisc = val; retv = 0; |