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
diff --git a/InterfaceController.h b/InterfaceController.h
index b11ab4f..5943a9a 100644
--- a/InterfaceController.h
+++ b/InterfaceController.h
@@ -43,6 +43,8 @@
int (*sendCommandFini_)(void);
int writeIPv6ProcPath(const char *interface, const char *setting,
const char *value);
+ int isInterfaceName(const char *name);
+ int setAcceptRA(const char *value);
};
#endif