Lines Matching refs:on
107 int InterfaceController::setEnableIPv6(const char *interface, const int on) { in setEnableIPv6() argument
115 const char *disable_ipv6 = on ? "0" : "1"; in setEnableIPv6()
119 int InterfaceController::setAcceptIPv6Ra(const char *interface, const int on) { in setAcceptIPv6Ra() argument
126 const char *accept_ra = on ? "2" : "0"; in setAcceptIPv6Ra()
130 int InterfaceController::setAcceptIPv6Dad(const char *interface, const int on) { in setAcceptIPv6Dad() argument
135 const char *accept_dad = on ? "1" : "0"; in setAcceptIPv6Dad()
147 int InterfaceController::setIPv6PrivacyExtensions(const char *interface, const int on) { in setIPv6PrivacyExtensions() argument
154 return writeValueToPath(ipv6_proc_path, interface, "use_tempaddr", on ? "2" : "0"); in setIPv6PrivacyExtensions()
160 int InterfaceController::setIPv6NdOffload(char* interface, const int on) { in setIPv6NdOffload() argument
168 on ? "1" : "0" in setIPv6NdOffload()
173 (on ? "enabling" : "disabling"), interface, ret, strerror(errno)); in setIPv6NdOffload()