summaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_trie.c
diff options
context:
space:
mode:
authorSascha Hlusiak <contact@saschahlusiak.de>2009-08-28 23:53:53 -0700
committerDavid S. Miller <davem@davemloft.net>2009-08-28 23:53:53 -0700
commit8945a808f7d5efd21fa9fb6055d2dd7887bdd9d8 (patch)
tree9bf05fb41dec4987c19d51486f4f6ae98f211297 /net/ipv4/fib_trie.c
parent30038fc61adfdab162b1966e34261f06eda67f02 (diff)
downloadlinux-8945a808f7d5efd21fa9fb6055d2dd7887bdd9d8.tar.gz
linux-8945a808f7d5efd21fa9fb6055d2dd7887bdd9d8.tar.bz2
linux-8945a808f7d5efd21fa9fb6055d2dd7887bdd9d8.zip
sit: allow ip fragmentation when using nopmtudisc to fix package loss
if tunnel parameters have frag_off set to IP_DF, pmtudisc on the ipv4 link will be performed by deriving the mtu from the ipv4 link and setting the DF-Flag of the encapsulating IPv4 Header. If fragmentation is needed on the way, the IPv4 pmtu gets adjusted, the ipv6 package will be resent eventually, using the new and lower mtu and everyone is happy. If the frag_off parameter is unset, the mtu for the tunnel will be derived from the tunnel device or the ipv6 pmtu, which might be higher than the ipv4 pmtu. In that case we must allow the fragmentation of the IPv4 packet because the IPv6 mtu wouldn't 'learn' from the adjusted IPv4 pmtu, resulting in frequent icmp_frag_needed and package loss on the IPv6 layer. This patch allows fragmentation when tunnel was created with parameter nopmtudisc, like in ipip/gre tunnels. Signed-off-by: Sascha Hlusiak <contact@saschahlusiak.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_trie.c')
0 files changed, 0 insertions, 0 deletions