Lines Matching refs:route
288 struct net_route_entry *route; in add_route() local
290 route = net_route_lookup(iface, addr); in add_route()
291 if (route) { in add_route()
292 return route; in add_route()
295 route = net_route_add(iface, addr, prefix_len, addr, in add_route()
299 NET_DBG("%s route to %s/%d iface %p", route ? "Add" : "Cannot add", in add_route()
302 return route; in add_route()
319 struct net_route_entry *route; in ipv6_route_packet() local
326 &route, &nexthop); in ipv6_route_packet()
330 &route, &nexthop); in ipv6_route_packet()
350 if (route) { in ipv6_route_packet()
351 net_pkt_set_iface(pkt, route->iface); in ipv6_route_packet()