[IPV6]: Restore IPv6 when MTU is big enough
commit35336fa51a17088020720aa2dc4e5677227a4185
authorEvgeniy Polyakov <johnpol@2ka.mipt.ru>
Tue, 15 Jan 2008 23:02:02 +0000 (16 01:02 +0200)
committerAdrian Bunk <bunk@kernel.org>
Tue, 15 Jan 2008 23:02:02 +0000 (16 01:02 +0200)
tree12cb385b41e838d2e45296b5d1dd60252455b0b9
parente8a69d24cf98dae9d5087503344cc28e2383f915
[IPV6]: Restore IPv6 when MTU is big enough

[ Upstream commit: d31c7b8fa303eb81311f27b80595b8d2cbeef950 ]

Avaid provided test application, so bug got fixed.

IPv6 addrconf removes ipv6 inner device from netdev each time cmu
changes and new value is less than IPV6_MIN_MTU (1280 bytes).
When mtu is changed and new value is greater than IPV6_MIN_MTU,
it does not add ipv6 addresses and inner device bac.

This patch fixes that.

Tested with Avaid's application, which works ok now.

Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
net/ipv6/addrconf.c