]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: ipv6: Don't purge default router if accept_ra=2
authorLorenzo Colitti <lorenzo@google.com>
Sun, 3 Mar 2013 20:46:46 +0000 (20:46 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Mar 2013 19:58:53 +0000 (12:58 -0700)
commite7a432a0c3f5bd368535e529ce66f27b834c0e9c
treec7a85003c4bf2cf1d08c46d820211dda799a8d27
parent36561fe245c06205300ae6e4e5476a7b2deff4df
net: ipv6: Don't purge default router if accept_ra=2

[ Upstream commit 3e8b0ac3e41e3c882222a5522d5df7212438ab51 ]

Setting net.ipv6.conf.<interface>.accept_ra=2 causes the kernel
to accept RAs even when forwarding is enabled. However, enabling
forwarding purges all default routes on the system, breaking
connectivity until the next RA is received. Fix this by not
purging default routes on interfaces that have accept_ra=2.

Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/route.c