Home
last modified time | relevance | path

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

/system/netd/server/
DRouteController.cpp347 const char* destination, const char* nexthop) { in modifyIpRoute() argument
374 if (nexthop && !strcmp(nexthop, "unreachable")) { in modifyIpRoute()
380 nexthop = NULL; in modifyIpRoute()
381 } else if (nexthop && !strcmp(nexthop, "throw")) { in modifyIpRoute()
384 nexthop = NULL; in modifyIpRoute()
396 if (nexthop && inet_pton(family, nexthop, rawNexthop) <= 0) { in modifyIpRoute()
397 ALOGE("inet_pton failed for nexthop %s", nexthop); in modifyIpRoute()
408 .rtm_scope = static_cast<uint8_t>(nexthop ? RT_SCOPE_UNIVERSE : RT_SCOPE_LINK), in modifyIpRoute()
423 { &rtaGateway, nexthop ? sizeof(rtaGateway) : 0 }, in modifyIpRoute()
424 { rawNexthop, nexthop ? static_cast<size_t>(rawLength) : 0 }, in modifyIpRoute()
[all …]
DNetworkController.h85 const char* nexthop, bool legacy, uid_t uid) WARN_UNUSED_RESULT;
87 const char* nexthop, bool legacy, uid_t uid) WARN_UNUSED_RESULT;
101 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.cpp466 const char* nexthop, bool legacy, uid_t uid) { in addRoute() argument
467 return modifyRoute(netId, interface, destination, nexthop, true, legacy, uid); in addRoute()
471 const char* nexthop, bool legacy, uid_t uid) { in removeRoute() argument
472 return modifyRoute(netId, interface, destination, nexthop, false, legacy, uid); in removeRoute()
551 const char* nexthop, bool add, bool legacy, uid_t uid) { in modifyRoute() argument
579 return add ? RouteController::addRoute(interface, destination, nexthop, tableType) : in modifyRoute()
580 RouteController::removeRoute(interface, destination, nexthop, tableType); in modifyRoute()
DCommandListener.cpp1600 const char* nexthop = argc > nextArg ? argv[nextArg] : NULL; in runCommand() local
1604 ret = sNetCtrl->addRoute(netId, interface, destination, nexthop, legacy, uid); in runCommand()
1606 ret = sNetCtrl->removeRoute(netId, interface, destination, nexthop, legacy, uid); in runCommand()
/system/extras/tests/net_test/
Diproute.py599 def _Route(self, version, command, table, dest, prefixlen, nexthop, dev, argument
603 scope = RT_SCOPE_UNIVERSE if nexthop else RT_SCOPE_LINK
614 if nexthop:
615 rtmsg += self._NlAttrIPAddress(RTA_GATEWAY, family, nexthop)
624 def AddRoute(self, version, table, dest, prefixlen, nexthop, dev): argument
625 self._Route(version, RTM_NEWROUTE, table, dest, prefixlen, nexthop, dev,
628 def DelRoute(self, version, table, dest, prefixlen, nexthop, dev): argument
629 self._Route(version, RTM_DELROUTE, table, dest, prefixlen, nexthop, dev,