]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Use 1280 as min MTU for ipv6 forwarding
authorUlrich Weber <uweber@astaro.com>
Fri, 26 Feb 2010 12:34:49 +0000 (04:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Feb 2010 12:34:49 +0000 (04:34 -0800)
commita988f260da0e2e21f52b11d740639490d8425443
treebff2b347d1a1755955ba1b37c561b1bff2f6d861
parent80cbd3b5d3af606d937d37357522960328f1afef
ipv6: Use 1280 as min MTU for ipv6 forwarding

Clients will set their MTU to 1280 if they receive a
ICMPV6_PKT_TOOBIG message with an MTU less than 1280.

To allow encapsulating of packets over a 1280 link
we should always accept packets with a size of 1280
for forwarding even if the path has a lower MTU and
fragment the encapsulated packets afterwards.

In case a forwarded packet is not going to be encapsulated
a ICMPV6_PKT_TOOBIG msg will still be send by ip6_fragment()
with the correct MTU.

Signed-off-by: Ulrich Weber <uweber@astaro.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_output.c