• Home
  • Raw
  • Download

Lines Matching refs:dst

178 	struct dst_entry *dst;  in icmpv6_xrlim_allow()  local
194 dst = ip6_route_output(net, sk, fl6); in icmpv6_xrlim_allow()
195 if (dst->error) { in icmpv6_xrlim_allow()
196 IP6_INC_STATS(net, ip6_dst_idev(dst), in icmpv6_xrlim_allow()
198 } else if (dst->dev && (dst->dev->flags&IFF_LOOPBACK)) { in icmpv6_xrlim_allow()
201 struct rt6_info *rt = (struct rt6_info *)dst; in icmpv6_xrlim_allow()
218 dst_release(dst); in icmpv6_xrlim_allow()
330 struct dst_entry *dst, *dst2; in icmpv6_route_lookup() local
334 err = ip6_dst_lookup(net, sk, &dst, fl6); in icmpv6_route_lookup()
342 if (ipv6_anycast_destination(dst, &fl6->daddr)) { in icmpv6_route_lookup()
344 dst_release(dst); in icmpv6_route_lookup()
349 dst2 = dst; in icmpv6_route_lookup()
351 dst = xfrm_lookup(net, dst, flowi6_to_flowi(fl6), sk, 0); in icmpv6_route_lookup()
352 if (!IS_ERR(dst)) { in icmpv6_route_lookup()
353 if (dst != dst2) in icmpv6_route_lookup()
354 return dst; in icmpv6_route_lookup()
356 if (PTR_ERR(dst) == -EPERM) in icmpv6_route_lookup()
357 dst = NULL; in icmpv6_route_lookup()
359 return dst; in icmpv6_route_lookup()
372 dst_release(dst); in icmpv6_route_lookup()
373 dst = dst2; in icmpv6_route_lookup()
377 dst_release(dst); in icmpv6_route_lookup()
384 if (dst) in icmpv6_route_lookup()
385 return dst; in icmpv6_route_lookup()
401 struct dst_entry *dst; in icmp6_send() local
452 dst = skb_dst(skb); in icmp6_send()
453 iif = l3mdev_master_ifindex(dst ? dst->dev : skb->dev); in icmp6_send()
515 dst = icmpv6_route_lookup(net, skb, sk, &fl6); in icmp6_send()
516 if (IS_ERR(dst)) in icmp6_send()
519 ipc6.hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst); in icmp6_send()
541 &ipc6, &fl6, (struct rt6_info *)dst, in icmp6_send()
552 dst_release(dst); in icmp6_send()
597 if (rt && rt->dst.dev) in ip6_err_gen_icmpv6_unreach()
598 skb2->dev = rt->dst.dev; in ip6_err_gen_icmpv6_unreach()
641 struct dst_entry *dst; in icmpv6_echo_reply() local
679 err = ip6_dst_lookup(net, sk, &dst, &fl6); in icmpv6_echo_reply()
682 dst = xfrm_lookup(net, dst, flowi6_to_flowi(&fl6), sk, 0); in icmpv6_echo_reply()
683 if (IS_ERR(dst)) in icmpv6_echo_reply()
692 ipc6.hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst); in icmpv6_echo_reply()
699 (struct rt6_info *)dst, MSG_DONTWAIT, in icmpv6_echo_reply()
709 dst_release(dst); in icmpv6_echo_reply()