Home
last modified time | relevance | path

Searched refs:nexthop (Results 1 – 5 of 5) sorted by relevance

/system/netd/server/
DRouteController.cpp336 const char* destination, const char* nexthop) { in modifyIpRoute() argument
363 if (nexthop && !strcmp(nexthop, "unreachable")) { in modifyIpRoute()
369 nexthop = NULL; in modifyIpRoute()
370 } else if (nexthop && !strcmp(nexthop, "throw")) { in modifyIpRoute()
373 nexthop = NULL; in modifyIpRoute()
385 if (nexthop && inet_pton(family, nexthop, rawNexthop) <= 0) { in modifyIpRoute()
386 ALOGE("inet_pton failed for nexthop %s", nexthop); in modifyIpRoute()
397 .rtm_scope = static_cast<uint8_t>(nexthop ? RT_SCOPE_UNIVERSE : RT_SCOPE_LINK), in modifyIpRoute()
412 { &rtaGateway, nexthop ? sizeof(rtaGateway) : 0 }, in modifyIpRoute()
413 { rawNexthop, nexthop ? static_cast<size_t>(rawLength) : 0 }, in modifyIpRoute()
[all …]
DNetworkController.h83 const char* nexthop, bool legacy, uid_t uid) WARN_UNUSED_RESULT;
85 const char* nexthop, bool legacy, uid_t uid) WARN_UNUSED_RESULT;
99 const char* nexthop, bool add, bool legacy, uid_t uid) WARN_UNUSED_RESULT;
DRouteController.h71 static int addRoute(const char* interface, const char* destination, const char* nexthop,
73 static int removeRoute(const char* interface, const char* destination, const char* nexthop,
DNetworkController.cpp439 const char* nexthop, bool legacy, uid_t uid) { in addRoute() argument
440 return modifyRoute(netId, interface, destination, nexthop, true, legacy, uid); in addRoute()
444 const char* nexthop, bool legacy, uid_t uid) { in removeRoute() argument
445 return modifyRoute(netId, interface, destination, nexthop, false, legacy, uid); in removeRoute()
524 const char* nexthop, bool add, bool legacy, uid_t uid) { in modifyRoute() argument
552 return add ? RouteController::addRoute(interface, destination, nexthop, tableType) : in modifyRoute()
553 RouteController::removeRoute(interface, destination, nexthop, tableType); in modifyRoute()
DCommandListener.cpp1415 const char* nexthop = argc > nextArg ? argv[nextArg] : NULL; in runCommand() local
1419 ret = sNetCtrl->addRoute(netId, interface, destination, nexthop, legacy, uid); in runCommand()
1421 ret = sNetCtrl->removeRoute(netId, interface, destination, nexthop, legacy, uid); in runCommand()