Lines Matching defs:nexthop
362 const char* destination, const char* nexthop) {
389 if (nexthop && !strcmp(nexthop, "unreachable")) {
392 // the table number. But it's an error to specify an interface ("dev ...") or a nexthop for
395 nexthop = NULL;
396 } else if (nexthop && !strcmp(nexthop, "throw")) {
399 nexthop = NULL;
410 // If a nexthop was specified, parse it as the same family as the prefix.
411 if (nexthop && inet_pton(family, nexthop, rawNexthop) <= 0) {
412 ALOGE("inet_pton failed for nexthop %s", nexthop);
423 .rtm_scope = static_cast<uint8_t>(nexthop ? RT_SCOPE_UNIVERSE : RT_SCOPE_LINK),
438 { &rtaGateway, nexthop ? sizeof(rtaGateway) : 0 },
439 { rawNexthop, nexthop ? static_cast<size_t>(rawLength) : 0 },
880 const char* nexthop, RouteController::TableType tableType) {
904 int ret = modifyIpRoute(action, table, interface, destination, nexthop);
1096 int RouteController::addRoute(const char* interface, const char* destination, const char* nexthop,
1098 return modifyRoute(RTM_NEWROUTE, interface, destination, nexthop, tableType);
1102 const char* nexthop, TableType tableType) {
1103 return modifyRoute(RTM_DELROUTE, interface, destination, nexthop, tableType);