• Home
  • Raw
  • Download

Lines Matching refs:interface

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