/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() 116 const hidl_string& nexthop) { in removeRouteFromOemNetwork() argument 121 maybeNullString(nexthop), false, INVALID_UID)); in removeRouteFromOemNetwork()
|
D | RouteController.h | 95 static int addRoute(const char* interface, const char* destination, const char* nexthop, 97 static int removeRoute(const char* interface, const char* destination, const char* nexthop, 130 const char* nexthop, TableType tableType); 145 const char* nexthop) WARN_UNUSED_RESULT;
|
D | RouteController.cpp | 336 const char* destination, const char* nexthop) { in modifyIpRoute() argument 363 if (nexthop && !strcmp(nexthop, "unreachable")) { in modifyIpRoute() 369 nexthop = nullptr; in modifyIpRoute() 370 } else if (nexthop && !strcmp(nexthop, "throw")) { in modifyIpRoute() 373 nexthop = nullptr; in modifyIpRoute() 385 if (nexthop && inet_pton(family, nexthop, rawNexthop) <= 0) { in modifyIpRoute() 386 ALOGE("inet_pton failed for nexthop %s", nexthop); in modifyIpRoute() 399 .rtm_scope = static_cast<uint8_t>(nexthop ? RT_SCOPE_UNIVERSE : RT_SCOPE_LINK), in modifyIpRoute() 414 { &rtaGateway, nexthop ? sizeof(rtaGateway) : 0 }, in modifyIpRoute() 415 { 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.h | 131 const char* nexthop, bool legacy, uid_t uid) WARN_UNUSED_RESULT; 133 const char* nexthop, bool legacy, uid_t uid) WARN_UNUSED_RESULT; 162 const char* nexthop, bool add, bool legacy, uid_t uid) WARN_UNUSED_RESULT;
|
D | NetworkController.cpp | 596 const char* nexthop, bool legacy, uid_t uid) { in addRoute() argument 597 return modifyRoute(netId, interface, destination, nexthop, true, legacy, uid); in addRoute() 601 const char* nexthop, bool legacy, uid_t uid) { in removeRoute() argument 602 return modifyRoute(netId, interface, destination, nexthop, false, legacy, uid); in removeRoute() 779 const char* nexthop, bool add, bool legacy, uid_t uid) { in modifyRoute() argument 809 return add ? RouteController::addRoute(interface, destination, nexthop, tableType) : in modifyRoute() 810 RouteController::removeRoute(interface, destination, nexthop, tableType); in modifyRoute()
|
D | NdcDispatcher.cpp | 1001 const char* nexthop = argc > nextArg ? argv[nextArg] : ""; in runCommand() local 1005 status = add ? mNetd->networkAddLegacyRoute(netId, interface, destination, nexthop, uid) in runCommand() 1007 : mNetd->networkRemoveLegacyRoute(netId, interface, destination, nexthop, in runCommand() 1010 status = add ? mNetd->networkAddRoute(netId, interface, destination, nexthop) in runCommand() 1011 : 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()
|