Lines Matching refs:interface
72 for (const std::string& interface : mInterfaces) {
73 if (int ret = RouteController::addUsersToVirtualNetwork(mNetId, interface.c_str(), mSecure,
75 ALOGE("failed to add users on interface %s of netId %u", interface.c_str(), mNetId);
87 for (const std::string& interface : mInterfaces) {
88 if (int ret = RouteController::removeUsersFromVirtualNetwork(mNetId, interface.c_str(),
90 ALOGE("failed to remove users on interface %s of netId %u", interface.c_str(), mNetId);
102 int VirtualNetwork::addInterface(const std::string& interface) {
103 if (hasInterface(interface)) {
106 if (int ret = RouteController::addInterfaceToVirtualNetwork(mNetId, interface.c_str(), mSecure,
108 ALOGE("failed to add interface %s to VPN netId %u", interface.c_str(), mNetId);
111 mInterfaces.insert(interface);
115 int VirtualNetwork::removeInterface(const std::string& interface) {
116 if (!hasInterface(interface)) {
119 if (int ret = RouteController::removeInterfaceFromVirtualNetwork(mNetId, interface.c_str(),
121 ALOGE("failed to remove interface %s from VPN netId %u", interface.c_str(), mNetId);
124 mInterfaces.erase(interface);