Lines Matching refs:interface
237 unsigned NetworkController::getNetworkForInterface(const char* interface) const {
240 if (entry.second->hasInterface(interface)) {
337 int NetworkController::addInterfaceToNetwork(unsigned netId, const char* interface) {
343 unsigned existingNetId = getNetworkForInterface(interface);
345 ALOGE("interface %s already assigned to netId %u", interface, existingNetId);
350 return getNetworkLocked(netId)->addInterface(interface);
353 int NetworkController::removeInterfaceFromNetwork(unsigned netId, const char* interface) {
360 return getNetworkLocked(netId)->removeInterface(interface);
438 int NetworkController::addRoute(unsigned netId, const char* interface, const char* destination,
440 return modifyRoute(netId, interface, destination, nexthop, true, legacy, uid);
443 int NetworkController::removeRoute(unsigned netId, const char* interface, const char* destination,
445 return modifyRoute(netId, interface, destination, nexthop, false, legacy, uid);
523 int NetworkController::modifyRoute(unsigned netId, const char* interface, const char* destination,
529 unsigned existingNetId = getNetworkForInterface(interface);
531 ALOGE("interface %s not assigned to any netId", interface);
535 ALOGE("interface %s assigned to netId %u, not %u", interface, existingNetId, netId);
552 return add ? RouteController::addRoute(interface, destination, nexthop, tableType) :
553 RouteController::removeRoute(interface, destination, nexthop, tableType);