/system/netd/server/ |
H A D | RouteController.h | 69 // |nexthop| can be NULL (to indicate a directly-connected route), "unreachable" (to indicate a 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,
|
H A D | NetworkController.h | 79 // |nexthop| can be NULL (to indicate a directly-connected route), "unreachable" (to indicate a 85 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;
|
H A D | RouteController.cpp | 347 const char* destination, const char* nexthop) { 374 if (nexthop && !strcmp(nexthop, "unreachable")) { 377 // the table number. But it's an error to specify an interface ("dev ...") or a nexthop for 380 nexthop = NULL; 381 } else if (nexthop && !strcmp(nexthop, "throw")) { 384 nexthop = NULL; 395 // If a nexthop was specified, parse it as the same family as the prefix. 396 if (nexthop 346 modifyIpRoute(uint16_t action, uint32_t table, const char* interface, const char* destination, const char* nexthop) argument 846 modifyRoute(uint16_t action, const char* interface, const char* destination, const char* nexthop, RouteController::TableType tableType) argument 1055 addRoute(const char* interface, const char* destination, const char* nexthop, TableType tableType) argument 1060 removeRoute(const char* interface, const char* destination, const char* nexthop, TableType tableType) argument [all...] |
H A D | NetworkController.cpp | 466 const char* nexthop, bool legacy, uid_t uid) { 467 return modifyRoute(netId, interface, destination, nexthop, true, legacy, uid); 471 const char* nexthop, bool legacy, uid_t uid) { 472 return modifyRoute(netId, interface, destination, nexthop, false, legacy, uid); 551 const char* nexthop, bool add, bool legacy, uid_t uid) { 579 return add ? RouteController::addRoute(interface, destination, nexthop, tableType) : 580 RouteController::removeRoute(interface, destination, nexthop, tableType); 465 addRoute(unsigned netId, const char* interface, const char* destination, const char* nexthop, bool legacy, uid_t uid) argument 470 removeRoute(unsigned netId, const char* interface, const char* destination, const char* nexthop, bool legacy, uid_t uid) argument 550 modifyRoute(unsigned netId, const char* interface, const char* destination, const char* nexthop, bool add, bool legacy, uid_t uid) argument
|
H A D | CommandListener.cpp | 1567 // network route [legacy <uid>] add <netId> <interface> <destination> [nexthop] 1568 // network route [legacy <uid>] remove <netId> <interface> <destination> [nexthop] 1570 // nexthop may be either an IPv4/IPv6 address or one of "unreachable" or "throw". 1600 const char* nexthop = argc > nextArg ? argv[nextArg] : NULL; local 1604 ret = sNetCtrl->addRoute(netId, interface, destination, nexthop, legacy, uid); 1606 ret = sNetCtrl->removeRoute(netId, interface, destination, nexthop, legacy, uid);
|
/system/extras/tests/net_test/ |
H A D | iproute.py | 599 def _Route(self, version, command, table, dest, prefixlen, nexthop, dev, 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): 625 self._Route(version, RTM_NEWROUTE, table, dest, prefixlen, nexthop, dev, 628 def DelRoute(self, version, table, dest, prefixlen, nexthop, dev): 629 self._Route(version, RTM_DELROUTE, table, dest, prefixlen, nexthop, dev,
|