/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 | 93 const char* nexthop, TableType tableType, int mtu); 95 const char* nexthop, TableType tableType); 97 const char* nexthop, TableType tableType, int mtu); 131 const char* destination, const char* nexthop, TableType tableType, 147 const char* interface, const char* destination, const char* nexthop,
|
D | RouteController.cpp | 364 const char* destination, const char* nexthop, uint32_t mtu) { in modifyIpRoute() argument 391 if (nexthop && !strcmp(nexthop, "unreachable")) { in modifyIpRoute() 397 nexthop = nullptr; in modifyIpRoute() 398 } else if (nexthop && !strcmp(nexthop, "throw")) { in modifyIpRoute() 401 nexthop = nullptr; in modifyIpRoute() 413 if (nexthop && inet_pton(family, nexthop, rawNexthop) <= 0) { in modifyIpRoute() 414 ALOGE("inet_pton failed for nexthop %s", nexthop); in modifyIpRoute() 426 .rtm_scope = static_cast<uint8_t>(nexthop ? RT_SCOPE_UNIVERSE : RT_SCOPE_LINK), in modifyIpRoute() 442 { &rtaGateway, nexthop ? sizeof(rtaGateway) : 0 }, in modifyIpRoute() 443 { rawNexthop, nexthop ? static_cast<size_t>(rawLength) : 0 }, in modifyIpRoute() [all …]
|
D | NetworkController.h | 128 const char* nexthop, bool legacy, uid_t uid, int mtu); 130 const char* nexthop, bool legacy, uid_t uid, int mtu); 132 const char* nexthop, bool legacy, uid_t uid); 166 const char* nexthop, RouteOperation op, bool legacy, uid_t uid,
|
D | NetdHwService.h | 40 const hidl_string& nexthop) override; 43 const hidl_string& nexthop) override;
|
D | NetworkController.cpp | 613 const char* nexthop, bool legacy, uid_t uid, int mtu) { in addRoute() argument 614 return modifyRoute(netId, interface, destination, nexthop, ROUTE_ADD, legacy, uid, mtu); in addRoute() 618 const char* nexthop, bool legacy, uid_t uid, int mtu) { in updateRoute() argument 619 return modifyRoute(netId, interface, destination, nexthop, ROUTE_UPDATE, legacy, uid, mtu); in updateRoute() 623 const char* nexthop, bool legacy, uid_t uid) { in removeRoute() argument 624 return modifyRoute(netId, interface, destination, nexthop, ROUTE_REMOVE, legacy, uid, 0); in removeRoute() 801 const char* nexthop, enum RouteOperation op, bool legacy, in modifyRoute() argument 834 return RouteController::addRoute(interface, destination, nexthop, tableType, mtu); in modifyRoute() 836 return RouteController::updateRoute(interface, destination, nexthop, tableType, mtu); in modifyRoute() 838 return RouteController::removeRoute(interface, destination, nexthop, tableType); in modifyRoute()
|
D | NdcDispatcher.cpp | 995 const char* nexthop = argc > nextArg ? argv[nextArg] : ""; in runCommand() local 999 status = add ? mNetd->networkAddLegacyRoute(netId, interface, destination, nexthop, uid) in runCommand() 1001 : mNetd->networkRemoveLegacyRoute(netId, interface, destination, nexthop, in runCommand() 1004 status = add ? mNetd->networkAddRoute(netId, interface, destination, nexthop) in runCommand() 1005 : 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 | 152 const char* destination, const char* nexthop) { in expectAddRoute() argument 154 netd->addRouteToOemNetwork(handle, iface, destination, nexthop); in expectAddRoute() 163 const char* destination, const char* nexthop) { in expectRemoveRoute() argument 165 netd->removeRouteFromOemNetwork(handle, iface, destination, nexthop); in expectRemoveRoute()
|