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

/system/netd/server/
H A DRouteController.h74 // |nexthop| can be NULL (to indicate a directly-connected route), "unreachable" (to indicate a
76 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,
H A DNetworkController.h80 // |nexthop| can be NULL (to indicate a directly-connected route), "unreachable" (to indicate a
86 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;
H A DRouteController.cpp362 const char* destination, const char* nexthop) {
389 if (nexthop && !strcmp(nexthop, "unreachable")) {
392 // the table number. But it's an error to specify an interface ("dev ...") or a nexthop for
395 nexthop = NULL;
396 } else if (nexthop && !strcmp(nexthop, "throw")) {
399 nexthop = NULL;
410 // If a nexthop was specified, parse it as the same family as the prefix.
411 if (nexthop
361 modifyIpRoute(uint16_t action, uint32_t table, const char* interface, const char* destination, const char* nexthop) argument
879 modifyRoute(uint16_t action, const char* interface, const char* destination, const char* nexthop, RouteController::TableType tableType) argument
1096 addRoute(const char* interface, const char* destination, const char* nexthop, TableType tableType) argument
1101 removeRoute(const char* interface, const char* destination, const char* nexthop, TableType tableType) argument
[all...]
H A DNetworkController.cpp501 const char* nexthop, bool legacy, uid_t uid) {
502 return modifyRoute(netId, interface, destination, nexthop, true, legacy, uid);
506 const char* nexthop, bool legacy, uid_t uid) {
507 return modifyRoute(netId, interface, destination, nexthop, false, legacy, uid);
610 const char* nexthop, bool add, bool legacy, uid_t uid) {
638 return add ? RouteController::addRoute(interface, destination, nexthop, tableType) :
639 RouteController::removeRoute(interface, destination, nexthop, tableType);
500 addRoute(unsigned netId, const char* interface, const char* destination, const char* nexthop, bool legacy, uid_t uid) argument
505 removeRoute(unsigned netId, const char* interface, const char* destination, const char* nexthop, bool legacy, uid_t uid) argument
609 modifyRoute(unsigned netId, const char* interface, const char* destination, const char* nexthop, bool add, bool legacy, uid_t uid) argument
H A DCommandListener.cpp1544 // network route [legacy <uid>] add <netId> <interface> <destination> [nexthop]
1545 // network route [legacy <uid>] remove <netId> <interface> <destination> [nexthop]
1547 // nexthop may be either an IPv4/IPv6 address or one of "unreachable" or "throw".
1577 const char* nexthop = argc > nextArg ? argv[nextArg] : NULL; local
1581 ret = gCtls->netCtrl.addRoute(netId, interface, destination, nexthop, legacy, uid);
1583 ret = gCtls->netCtrl.removeRoute(netId, interface, destination, nexthop, legacy, uid);
/system/extras/tests/net_test/
H A Diproute.py455 def _Route(self, version, command, table, dest, prefixlen, nexthop, dev,
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):
481 self._Route(version, RTM_NEWROUTE, table, dest, prefixlen, nexthop, dev,
484 def DelRoute(self, version, table, dest, prefixlen, nexthop, dev):
485 self._Route(version, RTM_DELROUTE, table, dest, prefixlen, nexthop, dev,

Completed in 3966 milliseconds