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

/system/hardware/interfaces/net/netd/1.1/
H A DINetd.hal28 * Either both, or one of the ifname and nexthop must be specified.
38 * @param nexthop IP address of the gateway for the route, or an empty
46 string destination, string nexthop)
51 * Either both, or one of the ifname and nexthop must be specified.
61 * @param nexthop IP address of the gateway for the route, or an empty
69 string destination, string nexthop)
/system/netd/server/
H A DNetdHwService.cpp97 const char* maybeNullString(const hidl_string& nexthop) { argument
99 const char* nh = nexthop.c_str();
108 const hidl_string& nexthop) {
113 maybeNullString(nexthop), false, INVALID_UID));
118 const hidl_string& nexthop) {
123 maybeNullString(nexthop), false, INVALID_UID));
106 addRouteToOemNetwork( uint64_t networkHandle, const hidl_string& ifname, const hidl_string& destination, const hidl_string& nexthop) argument
116 removeRouteFromOemNetwork( uint64_t networkHandle, const hidl_string& ifname, const hidl_string& destination, const hidl_string& nexthop) argument
H A DNetdHwService.h40 const hidl_string& nexthop) override;
43 const hidl_string& nexthop) override;
H A DRouteController.h90 // |nexthop| can be NULL (to indicate a directly-connected route), "unreachable" (to indicate a
92 static int addRoute(const char* interface, const char* destination, const char* nexthop,
94 static int removeRoute(const char* interface, const char* destination, const char* nexthop,
127 const char* nexthop, TableType tableType);
142 const char* nexthop) WARN_UNUSED_RESULT;
H A DRouteController.cpp335 const char* destination, const char* nexthop) {
362 if (nexthop && !strcmp(nexthop, "unreachable")) {
365 // the table number. But it's an error to specify an interface ("dev ...") or a nexthop for
368 nexthop = NULL;
369 } else if (nexthop && !strcmp(nexthop, "throw")) {
372 nexthop = NULL;
383 // If a nexthop was specified, parse it as the same family as the prefix.
384 if (nexthop
334 modifyIpRoute(uint16_t action, uint32_t table, const char* interface, const char* destination, const char* nexthop) argument
855 modifyRoute(uint16_t action, const char* interface, const char* destination, const char* nexthop, TableType tableType) argument
1062 addRoute(const char* interface, const char* destination, const char* nexthop, TableType tableType) argument
1067 removeRoute(const char* interface, const char* destination, const char* nexthop, TableType tableType) argument
[all...]
H A DNetworkController.h118 // |nexthop| can be NULL (to indicate a directly-connected route), "unreachable" (to indicate a
124 const char* nexthop, bool legacy, uid_t uid) WARN_UNUSED_RESULT;
126 const char* nexthop, bool legacy, uid_t uid) WARN_UNUSED_RESULT;
156 const char* nexthop, bool add, bool legacy, uid_t uid) WARN_UNUSED_RESULT;
H A DNetworkController.cpp601 const char* nexthop, bool legacy, uid_t uid) {
602 return modifyRoute(netId, interface, destination, nexthop, true, legacy, uid);
606 const char* nexthop, bool legacy, uid_t uid) {
607 return modifyRoute(netId, interface, destination, nexthop, false, legacy, uid);
784 const char* nexthop, bool add, bool legacy, uid_t uid) {
814 return add ? RouteController::addRoute(interface, destination, nexthop, tableType) :
815 RouteController::removeRoute(interface, destination, nexthop, tableType);
600 addRoute(unsigned netId, const char* interface, const char* destination, const char* nexthop, bool legacy, uid_t uid) argument
605 removeRoute(unsigned netId, const char* interface, const char* destination, const char* nexthop, bool legacy, uid_t uid) argument
783 modifyRoute(unsigned netId, const char* interface, const char* destination, const char* nexthop, bool add, bool legacy, uid_t uid) argument
H A DCommandListener.cpp1298 // network route [legacy <uid>] add <netId> <interface> <destination> [nexthop]
1299 // network route [legacy <uid>] remove <netId> <interface> <destination> [nexthop]
1301 // nexthop may be either an IPv4/IPv6 address or one of "unreachable" or "throw".
1331 const char* nexthop = argc > nextArg ? argv[nextArg] : NULL; local
1335 ret = gCtls->netCtrl.addRoute(netId, interface, destination, nexthop, legacy, uid);
1337 ret = gCtls->netCtrl.removeRoute(netId, interface, destination, nexthop, legacy, uid);
/system/hardware/interfaces/net/netd/1.1/vts/functional/
H A DVtsHalNetNetdV1_1TargetTest.cpp152 const char* destination, const char* nexthop) {
154 netd->addRouteToOemNetwork(handle, iface, destination, nexthop);
163 const char* destination, const char* nexthop) {
165 netd->removeRouteFromOemNetwork(handle, iface, destination, nexthop);
275 // Invalid: both nexthop and interface are empty.
151 expectAddRoute(INetd::StatusCode expectedStatus, net_handle_t handle, const char* iface, const char* destination, const char* nexthop) argument
162 expectRemoveRoute(INetd::StatusCode expectedStatus, net_handle_t handle, const char* iface, const char* destination, const char* nexthop) argument

Completed in 2016 milliseconds