Lines Matching refs:nexthop
336 struct in6_addr *nexthop, in net_route_add() argument
350 NET_ASSERT(nexthop); in net_route_add()
359 nbr_nexthop = net_ipv6_nbr_lookup(iface, nexthop); in net_route_add()
362 net_sprint_ipv6_addr(nexthop)); in net_route_add()
369 NET_DBG("Nexthop %s lladdr is %s", net_sprint_ipv6_addr(nexthop), in net_route_add()
379 if (nexthop_addr && net_ipv6_addr_cmp(nexthop, nexthop_addr)) { in net_route_add()
458 tmp = nbr_nexthop_get(iface, nexthop); in net_route_add()
464 sys_slist_init(&route->nexthop); in net_route_add()
465 sys_slist_prepend(&route->nexthop, &nexthop_route->node); in net_route_add()
471 net_ipaddr_copy(&info.nexthop, nexthop); in net_route_add()
579 net_ipaddr_copy(&info.nexthop, in net_route_del()
608 SYS_SLIST_FOR_EACH_CONTAINER(&route->nexthop, nexthop_route, node) { in net_route_del()
623 int net_route_del_by_nexthop(struct net_if *iface, struct in6_addr *nexthop) in net_route_del_by_nexthop() argument
631 NET_ASSERT(nexthop); in net_route_del_by_nexthop()
635 nbr_nexthop = net_ipv6_nbr_lookup(iface, nexthop); in net_route_del_by_nexthop()
645 SYS_SLIST_FOR_EACH_CONTAINER(&route->nexthop, nexthop_route, in net_route_del_by_nexthop()
672 struct in6_addr *nexthop, in net_route_del_by_nexthop_data() argument
681 NET_ASSERT(nexthop); in net_route_del_by_nexthop_data()
685 nbr_nexthop = net_ipv6_nbr_lookup(iface, nexthop); in net_route_del_by_nexthop_data()
695 SYS_SLIST_FOR_EACH_CONTAINER(&route->nexthop, nexthop_route, in net_route_del_by_nexthop_data()
746 SYS_SLIST_FOR_EACH_CONTAINER(&route->nexthop, nexthop_route, node) { in net_route_get_nexthop()
950 struct in6_addr **nexthop) in net_route_get_info() argument
961 *nexthop = dst; in net_route_get_info()
969 *nexthop = net_route_get_nexthop(*route); in net_route_get_info()
970 if (!*nexthop) { in net_route_get_info()
985 *nexthop = &router->address.in6_addr; in net_route_get_info()
996 int net_route_packet(struct net_pkt *pkt, struct in6_addr *nexthop) in net_route_packet() argument
1004 nbr = net_ipv6_nbr_lookup(NULL, nexthop); in net_route_packet()
1007 net_sprint_ipv6_addr(nexthop)); in net_route_packet()
1015 net_sprint_ipv6_addr(nexthop)); in net_route_packet()