Lines Matching refs:interface
44 for (const std::string& interface : mInterfaces) { in addUsers() local
45 if (int ret = RouteController::addUsersToVirtualNetwork(mNetId, interface.c_str(), mSecure, in addUsers()
47 ALOGE("failed to add users on interface %s of netId %u", interface.c_str(), mNetId); in addUsers()
56 for (const std::string& interface : mInterfaces) { in removeUsers() local
57 if (int ret = RouteController::removeUsersFromVirtualNetwork(mNetId, interface.c_str(), in removeUsers()
59 ALOGE("failed to remove users on interface %s of netId %u", interface.c_str(), mNetId); in removeUsers()
71 int VirtualNetwork::addInterface(const std::string& interface) { in addInterface() argument
72 if (hasInterface(interface)) { in addInterface()
75 if (int ret = RouteController::addInterfaceToVirtualNetwork(mNetId, interface.c_str(), mSecure, in addInterface()
77 ALOGE("failed to add interface %s to VPN netId %u", interface.c_str(), mNetId); in addInterface()
80 mInterfaces.insert(interface); in addInterface()
84 int VirtualNetwork::removeInterface(const std::string& interface) { in removeInterface() argument
85 if (!hasInterface(interface)) { in removeInterface()
88 if (int ret = RouteController::removeInterfaceFromVirtualNetwork(mNetId, interface.c_str(), in removeInterface()
90 ALOGE("failed to remove interface %s from VPN netId %u", interface.c_str(), mNetId); in removeInterface()
93 mInterfaces.erase(interface); in removeInterface()