OSDN Git Service

Set accept_ra to 2 on all interfaces
authorLorenzo Colitti <lorenzo@google.com>
Thu, 11 Apr 2013 15:44:06 +0000 (00:44 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Fri, 12 Apr 2013 00:29:51 +0000 (09:29 +0900)
commit37f2e371c43588ca3661584a79b6544de345189a
tree33641573b3d192481dc96ce582514036493d9f59
parent1d1816247e9fec69b5c0a85d71837fb30dfc6cb3
Set accept_ra to 2 on all interfaces

Currently, we set accept_ra to 2 (accept RAs even if forwarding
is on) only on wifi and ethernet, but not on other interfaces
like mobile.  This breaks IPv6 over mobile on Nexus 7 3G and
all other devices where the IPv6 default route is configured via
RA, because as soon as we start 464xlat (which enables
forwarding) their default route goes away.

Rather than require all manufacturers to update their RILs to
set the flag themselves, set it ourselves at netd startup time.

Bug: 8276725
Change-Id: If066bb1aa3ff211da0a0bbe8d58d5a7f35298580
InterfaceController.cpp
InterfaceController.h