Home
last modified time | relevance | path

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

/system/netd/server/
DRouteController.cpp362 const char* destination, const char* nexthop) { in modifyIpRoute() argument
389 if (nexthop && !strcmp(nexthop, "unreachable")) { in modifyIpRoute()
395 nexthop = NULL; in modifyIpRoute()
396 } else if (nexthop && !strcmp(nexthop, "throw")) { in modifyIpRoute()
399 nexthop = NULL; in modifyIpRoute()
411 if (nexthop && inet_pton(family, nexthop, rawNexthop) <= 0) { in modifyIpRoute()
412 ALOGE("inet_pton failed for nexthop %s", nexthop); in modifyIpRoute()
423 .rtm_scope = static_cast<uint8_t>(nexthop ? RT_SCOPE_UNIVERSE : RT_SCOPE_LINK), in modifyIpRoute()
438 { &rtaGateway, nexthop ? sizeof(rtaGateway) : 0 }, in modifyIpRoute()
439 { rawNexthop, nexthop ? static_cast<size_t>(rawLength) : 0 }, in modifyIpRoute()
[all …]
DNetworkController.h86 const char* nexthop, bool legacy, uid_t uid) WARN_UNUSED_RESULT;
88 const char* nexthop, bool legacy, uid_t uid) WARN_UNUSED_RESULT;
104 const char* nexthop, bool add, bool legacy, uid_t uid) WARN_UNUSED_RESULT;
DRouteController.h76 static int addRoute(const char* interface, const char* destination, const char* nexthop,
78 static int removeRoute(const char* interface, const char* destination, const char* nexthop,
DNetworkController.cpp499 const char* nexthop, bool legacy, uid_t uid) { in addRoute() argument
500 return modifyRoute(netId, interface, destination, nexthop, true, legacy, uid); in addRoute()
504 const char* nexthop, bool legacy, uid_t uid) { in removeRoute() argument
505 return modifyRoute(netId, interface, destination, nexthop, false, legacy, uid); in removeRoute()
615 const char* nexthop, bool add, bool legacy, uid_t uid) { in modifyRoute() argument
643 return add ? RouteController::addRoute(interface, destination, nexthop, tableType) : in modifyRoute()
644 RouteController::removeRoute(interface, destination, nexthop, tableType); in modifyRoute()
DCommandListener.cpp1577 const char* nexthop = argc > nextArg ? argv[nextArg] : NULL; in runCommand() local
1581 ret = gCtls->netCtrl.addRoute(netId, interface, destination, nexthop, legacy, uid); in runCommand()
1583 ret = gCtls->netCtrl.removeRoute(netId, interface, destination, nexthop, legacy, uid); in runCommand()
/system/extras/tests/net_test/
Diproute.py455 def _Route(self, version, command, table, dest, prefixlen, nexthop, dev, argument
459 scope = RT_SCOPE_UNIVERSE if nexthop else RT_SCOPE_LINK
470 if nexthop:
471 rtmsg += self._NlAttrIPAddress(RTA_GATEWAY, family, nexthop)
480 def AddRoute(self, version, table, dest, prefixlen, nexthop, dev): argument
481 self._Route(version, RTM_NEWROUTE, table, dest, prefixlen, nexthop, dev,
484 def DelRoute(self, version, table, dest, prefixlen, nexthop, dev): argument
485 self._Route(version, RTM_DELROUTE, table, dest, prefixlen, nexthop, dev,