diff options
| author | Lorenzo Colitti <lorenzo@google.com> | 2017-09-26 19:39:40 +0900 |
|---|---|---|
| committer | Lorenzo Colitti <lorenzo@google.com> | 2017-09-27 13:26:56 +0900 |
| commit | 5f8c4fd345725783aa720a9ddba0140a61ed58d1 (patch) | |
| tree | 7c9b50e0dde6da3f7ae46b69716991848ec004ad /server/InterfaceController.cpp | |
| parent | 92e8f96e43320efd5183d7452fb90883fd96415e (diff) | |
Delete the legacy netd code for manipulating ND offload.
This only worked on broadcom devices, and was superseded in M by
a wifi HAL call made by IpManager.
Test: bullhead builds, boots
Change-Id: Ic42580d4ea1d49a4f1ab79ab287ec46db4554c65
Diffstat (limited to 'server/InterfaceController.cpp')
| -rw-r--r-- | server/InterfaceController.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/server/InterfaceController.cpp b/server/InterfaceController.cpp index 9b8f64cc..28b814f2 100644 --- a/server/InterfaceController.cpp +++ b/server/InterfaceController.cpp @@ -61,8 +61,6 @@ const char ipv6_neigh_conf_dir[] = "/proc/sys/net/ipv6/neigh"; const char proc_net_path[] = "/proc/sys/net"; const char sys_net_path[] = "/sys/class/net"; -const char wl_util_path[] = "/vendor/xbin/wlutil"; - constexpr int kRouteInfoMinPrefixLen = 48; // RFC 7421 prefix length. @@ -324,29 +322,6 @@ int InterfaceController::setIPv6PrivacyExtensions(const char *interface, const i return writeValueToPath(ipv6_proc_path, interface, "use_tempaddr", on ? "2" : "0"); } -// Enables or disables IPv6 ND offload. This is useful for 464xlat on wifi, IPv6 tethering, and -// generally implementing IPv6 neighbour discovery and duplicate address detection properly. -// TODO: This should be implemented in wpa_supplicant via driver commands instead. -int InterfaceController::setIPv6NdOffload(char* interface, const int on) { - // Only supported on Broadcom chipsets via wlutil for now. - if (access(wl_util_path, X_OK) == 0) { - const char *argv[] = { - wl_util_path, - "-a", - interface, - "ndoe", - on ? "1" : "0" - }; - int ret = android_fork_execvp(ARRAY_SIZE(argv), const_cast<char**>(argv), NULL, - false, false); - ALOGD("%s ND offload on %s: %d (%s)", - (on ? "enabling" : "disabling"), interface, ret, strerror(errno)); - return ret; - } else { - return 0; - } -} - void InterfaceController::setAcceptRA(const char *value) { setOnAllInterfaces(ipv6_proc_path, "accept_ra", value); } |
