diff options
| author | Erik Kline <ek@google.com> | 2016-08-09 15:28:42 +0900 |
|---|---|---|
| committer | Erik Kline <ek@google.com> | 2016-08-09 15:28:42 +0900 |
| commit | 59d8c48cee74679d2305c535ab61d4a6f8258c64 (patch) | |
| tree | cd3d865abced008c0d63aa85fc0693fef154a36c /server/InterfaceController.cpp | |
| parent | 46ae27cd20e70393843799efe8de9180295a4953 (diff) | |
Disable DAD for downstream interfaces when tethering
Bug: 30298058
Change-Id: If4cd1f2e2b782ff08d667eb065138c06559b3394
Diffstat (limited to 'server/InterfaceController.cpp')
| -rw-r--r-- | server/InterfaceController.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/InterfaceController.cpp b/server/InterfaceController.cpp index 4129c0f0..eac4fbf2 100644 --- a/server/InterfaceController.cpp +++ b/server/InterfaceController.cpp @@ -136,6 +136,14 @@ int InterfaceController::setAcceptIPv6Dad(const char *interface, const int on) { return writeValueToPath(ipv6_proc_path, interface, "accept_dad", accept_dad); } +int InterfaceController::setIPv6DadTransmits(const char *interface, const char *value) { + if (!isIfaceName(interface)) { + errno = ENOENT; + return -1; + } + return writeValueToPath(ipv6_proc_path, interface, "dad_transmits", value); +} + int InterfaceController::setIPv6PrivacyExtensions(const char *interface, const int on) { if (!isIfaceName(interface)) { errno = ENOENT; |
