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