Lines Matching refs:interface
39 for (const std::string& interface : mInterfaces) { in addUsers() local
40 int ret = RouteController::addUsersToVirtualNetwork(mNetId, interface.c_str(), mSecure, in addUsers()
43 ALOGE("failed to add users on interface %s of netId %u", interface.c_str(), mNetId); in addUsers()
54 for (const std::string& interface : mInterfaces) { in removeUsers() local
55 int ret = RouteController::removeUsersFromVirtualNetwork(mNetId, interface.c_str(), mSecure, in removeUsers()
58 ALOGE("failed to remove users on interface %s of netId %u", interface.c_str(), mNetId); in removeUsers()
66 int VirtualNetwork::addInterface(const std::string& interface) { in addInterface() argument
67 if (hasInterface(interface)) { in addInterface()
70 if (int ret = RouteController::addInterfaceToVirtualNetwork(mNetId, interface.c_str(), mSecure, in addInterface()
72 ALOGE("failed to add interface %s to VPN netId %u", interface.c_str(), mNetId); in addInterface()
75 mInterfaces.insert(interface); in addInterface()
79 int VirtualNetwork::removeInterface(const std::string& interface) { in removeInterface() argument
80 if (!hasInterface(interface)) { in removeInterface()
83 if (int ret = RouteController::removeInterfaceFromVirtualNetwork(mNetId, interface.c_str(), in removeInterface()
85 ALOGE("failed to remove interface %s from VPN netId %u", interface.c_str(), mNetId); in removeInterface()
88 mInterfaces.erase(interface); in removeInterface()