Lines Matching refs:interface
109 int InterfaceController::setEnableIPv6(const char *interface, const int on) { in setEnableIPv6() argument
110 if (!isIfaceName(interface)) { in setEnableIPv6()
118 return writeValueToPath(ipv6_proc_path, interface, "disable_ipv6", disable_ipv6); in setEnableIPv6()
121 int InterfaceController::setIPv6PrivacyExtensions(const char *interface, const int on) { in setIPv6PrivacyExtensions() argument
122 if (!isIfaceName(interface)) { in setIPv6PrivacyExtensions()
128 return writeValueToPath(ipv6_proc_path, interface, "use_tempaddr", on ? "2" : "0"); in setIPv6PrivacyExtensions()
134 int InterfaceController::setIPv6NdOffload(char* interface, const int on) { in setIPv6NdOffload() argument
140 interface, in setIPv6NdOffload()
147 (on ? "enabling" : "disabling"), interface, ret, strerror(errno)); in setIPv6NdOffload()
169 int InterfaceController::setMtu(const char *interface, const char *mtu) in setMtu() argument
171 if (!isIfaceName(interface)) { in setMtu()
175 return writeValueToPath(sys_net_path, interface, "mtu", mtu); in setMtu()