Searched refs:nexthop (Results 1 – 5 of 5) sorted by relevance
/system/netd/server/ |
D | RouteController.cpp | 336 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 …]
|
D | NetworkController.h | 83 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;
|
D | RouteController.h | 71 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,
|
D | NetworkController.cpp | 439 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()
|
D | CommandListener.cpp | 1415 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()
|