/system/netd/server/ |
D | RouteController.cpp | 347 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 …]
|
D | NetworkController.h | 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;
|
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 | 466 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()
|
D | CommandListener.cpp | 1600 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/ |
D | iproute.py | 599 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,
|