/system/netd/server/ |
D | NetdHwService.cpp | 95 const char* maybeNullString(const hidl_string& nexthop) { in maybeNullString() argument 97 const char* nh = nexthop.c_str(); in maybeNullString() 106 const hidl_string& nexthop) { in addRouteToOemNetwork() argument 111 maybeNullString(nexthop), false, INVALID_UID, in addRouteToOemNetwork() 117 const hidl_string& nexthop) { in removeRouteFromOemNetwork() argument 122 maybeNullString(nexthop), false, INVALID_UID)); in removeRouteFromOemNetwork()
|
D | RouteController.h | 145 const char* nexthop, TableType tableType, int mtu); 147 const char* nexthop, TableType tableType); 149 const char* nexthop, TableType tableType, int mtu); 197 const char* destination, const char* nexthop, TableType tableType, 213 const char* interface, const char* destination, const char* nexthop,
|
D | NetworkController.h | 133 const char* nexthop, bool legacy, uid_t uid, int mtu); 135 const char* nexthop, bool legacy, uid_t uid, int mtu); 137 const char* nexthop, bool legacy, uid_t uid); 170 const char* nexthop, RouteOperation op, bool legacy, uid_t uid,
|
D | RouteController.cpp | 349 const char* destination, const char* nexthop, uint32_t mtu) { in modifyIpRoute() argument 376 if (nexthop && !strcmp(nexthop, "unreachable")) { in modifyIpRoute() 382 nexthop = nullptr; in modifyIpRoute() 383 } else if (nexthop && !strcmp(nexthop, "throw")) { in modifyIpRoute() 386 nexthop = nullptr; in modifyIpRoute() 398 if (nexthop && inet_pton(family, nexthop, rawNexthop) <= 0) { in modifyIpRoute() 399 ALOGE("inet_pton failed for nexthop %s", nexthop); in modifyIpRoute() 411 .rtm_scope = static_cast<uint8_t>(nexthop ? RT_SCOPE_UNIVERSE : RT_SCOPE_LINK), in modifyIpRoute() 427 { &rtaGateway, nexthop ? sizeof(rtaGateway) : 0 }, in modifyIpRoute() 428 { rawNexthop, nexthop ? static_cast<size_t>(rawLength) : 0 }, in modifyIpRoute() [all …]
|
D | NetdHwService.h | 40 const hidl_string& nexthop) override; 43 const hidl_string& nexthop) override;
|
D | NetworkController.cpp | 640 const char* nexthop, bool legacy, uid_t uid, int mtu) { in addRoute() argument 641 return modifyRoute(netId, interface, destination, nexthop, ROUTE_ADD, legacy, uid, mtu); in addRoute() 645 const char* nexthop, bool legacy, uid_t uid, int mtu) { in updateRoute() argument 646 return modifyRoute(netId, interface, destination, nexthop, ROUTE_UPDATE, legacy, uid, mtu); in updateRoute() 650 const char* nexthop, bool legacy, uid_t uid) { in removeRoute() argument 651 return modifyRoute(netId, interface, destination, nexthop, ROUTE_REMOVE, legacy, uid, 0); in removeRoute() 867 const char* nexthop, enum RouteOperation op, bool legacy, in modifyRoute() argument 900 return RouteController::addRoute(interface, destination, nexthop, tableType, mtu); in modifyRoute() 902 return RouteController::updateRoute(interface, destination, nexthop, tableType, mtu); in modifyRoute() 904 return RouteController::removeRoute(interface, destination, nexthop, tableType); in modifyRoute()
|
D | NdcDispatcher.cpp | 997 const char* nexthop = argc > nextArg ? argv[nextArg] : ""; in runCommand() local 1001 status = add ? mNetd->networkAddLegacyRoute(netId, interface, destination, nexthop, uid) in runCommand() 1003 : mNetd->networkRemoveLegacyRoute(netId, interface, destination, nexthop, in runCommand() 1006 status = add ? mNetd->networkAddRoute(netId, interface, destination, nexthop) in runCommand() 1007 : mNetd->networkRemoveRoute(netId, interface, destination, nexthop); in runCommand()
|
/system/hardware/interfaces/net/netd/1.1/ |
D | INetd.hal | 28 * 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/hardware/interfaces/net/netd/1.1/vts/functional/ |
D | VtsHalNetNetdV1_1TargetTest.cpp | 138 const char* destination, const char* nexthop) { in expectAddRoute() argument 140 netd->addRouteToOemNetwork(handle, iface, destination, nexthop); in expectAddRoute() 149 const char* destination, const char* nexthop) { in expectRemoveRoute() argument 151 netd->removeRouteFromOemNetwork(handle, iface, destination, nexthop); in expectRemoveRoute()
|