Lines Matching refs:nexthop
362 const char* destination, const char* nexthop) { in modifyIpRoute() argument
389 if (nexthop && !strcmp(nexthop, "unreachable")) { in modifyIpRoute()
395 nexthop = NULL; in modifyIpRoute()
396 } else if (nexthop && !strcmp(nexthop, "throw")) { in modifyIpRoute()
399 nexthop = NULL; in modifyIpRoute()
411 if (nexthop && inet_pton(family, nexthop, rawNexthop) <= 0) { in modifyIpRoute()
412 ALOGE("inet_pton failed for nexthop %s", nexthop); in modifyIpRoute()
423 .rtm_scope = static_cast<uint8_t>(nexthop ? RT_SCOPE_UNIVERSE : RT_SCOPE_LINK), in modifyIpRoute()
438 { &rtaGateway, nexthop ? sizeof(rtaGateway) : 0 }, in modifyIpRoute()
439 { rawNexthop, nexthop ? static_cast<size_t>(rawLength) : 0 }, in modifyIpRoute()
880 const char* nexthop, RouteController::TableType tableType) { in modifyRoute() argument
904 int ret = modifyIpRoute(action, table, interface, destination, nexthop); in modifyRoute()
1096 int RouteController::addRoute(const char* interface, const char* destination, const char* nexthop, in addRoute() argument
1098 return modifyRoute(RTM_NEWROUTE, interface, destination, nexthop, tableType); in addRoute()
1102 const char* nexthop, TableType tableType) { in removeRoute() argument
1103 return modifyRoute(RTM_DELROUTE, interface, destination, nexthop, tableType); in removeRoute()