OSDN Git Service

Set accept_ra to 2 when enabling IPv6.
authorLorenzo Colitti <lorenzo@google.com>
Tue, 5 Mar 2013 01:04:00 +0000 (10:04 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Tue, 5 Mar 2013 01:17:45 +0000 (10:17 +0900)
commitcfd1a58237c5fe84ddd30c9a73dd361697060aed
tree8325186b61b3bf89ab3f7a3ce4951434c4aa4d15
parent70afde6ad9b5fce63cca594ac9b230d2fc9b21ee
Set accept_ra to 2 when enabling IPv6.

The default value of accept_ra causes the kernel to accept
Router Advertisements only if forwarding is off. This causes
problems with clatd, which uses IPv6 forwarding on a tun
interface, and it may cause problems with IPv6 tethering when
we implement it.

Fix this by setting accept_ra to 2, which accepts RAs regardless
of whether forwarding is on.

Bug: 8276725
Change-Id: Ifee0ceaa68ce438a845fa2d7f3b76c60857114a0
InterfaceController.cpp