Lines Matching defs:on
11 * distributed under the License is distributed on an "AS IS" BASIS,
63 // Set the value on all the interfaces that currently exist.
87 // By default, accept_ra is set to 1 (accept RAs unless forwarding is on) on all interfaces.
88 // This causes RAs to work or not work based on whether forwarding is on, and causes routes
89 // learned from RAs to go away when forwarding is turned on. Make this behaviour predictable
95 // Enable optimistic DAD for IPv6 addresses on all interfaces.
102 // on that interface as possible source addresses.
109 int InterfaceController::setEnableIPv6(const char *interface, const int on) {
116 // addresses and routes and disables IPv6 on the interface.
117 const char *disable_ipv6 = on ? "0" : "1";
121 int InterfaceController::setIPv6PrivacyExtensions(const char *interface, const int on) {
128 return writeValueToPath(ipv6_proc_path, interface, "use_tempaddr", on ? "2" : "0");
131 // Enables or disables IPv6 ND offload. This is useful for 464xlat on wifi, IPv6 tethering, and
134 int InterfaceController::setIPv6NdOffload(char* interface, const int on) {
135 // Only supported on Broadcom chipsets via wlutil for now.
142 on ? "1" : "0"
146 ALOGD("%s ND offload on %s: %d (%s)",
147 (on ? "enabling" : "disabling"), interface, ret, strerror(errno));