diff options
author | Hannes Frederic Sowa <hannes@stressinduktion.org> | 2014-02-26 01:20:43 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-26 21:51:01 +0100 |
commit | 0b95227a7ba7e69f795757cd7c839eff0615f2d1 (patch) | |
tree | c7e343f11b05e29cf4d9ccc4b2026f0002fd78f7 /net/ipv6/ipv6_sockglue.c | |
parent | ipv4: yet another new IP_MTU_DISCOVER option IP_PMTUDISC_OMIT (diff) | |
download | linux-0b95227a7ba7e69f795757cd7c839eff0615f2d1.tar.xz linux-0b95227a7ba7e69f795757cd7c839eff0615f2d1.zip |
ipv6: yet another new IPV6_MTU_DISCOVER option IPV6_PMTUDISC_OMIT
This option has the same semantic as IP_PMTUDISC_OMIT for IPv4 which
got recently introduced. It doesn't honor the path mtu discovered by the
host but in contrary to IPV6_PMTUDISC_INTERFACE allows the generation of
fragments if the packet size exceeds the MTU of the outgoing interface
MTU.
Fixes: 93b36cf3425b9b ("ipv6: support IPV6_PMTU_INTERFACE on sockets")
Cc: Florian Weimer <fweimer@redhat.com>
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 0a00f449de5e..edb58aff4ae7 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 < IPV6_PMTUDISC_DONT || val > IPV6_PMTUDISC_INTERFACE) + if (val < IPV6_PMTUDISC_DONT || val > IPV6_PMTUDISC_OMIT) goto e_inval; np->pmtudisc = val; retv = 0; |