Lines Matching refs:dst

177 	struct dst_entry *dst;  in icmpv6_xrlim_allow()  local
193 dst = ip6_route_output(net, sk, fl6); in icmpv6_xrlim_allow()
194 if (dst->error) { in icmpv6_xrlim_allow()
195 IP6_INC_STATS(net, ip6_dst_idev(dst), in icmpv6_xrlim_allow()
197 } else if (dst->dev && (dst->dev->flags&IFF_LOOPBACK)) { in icmpv6_xrlim_allow()
200 struct rt6_info *rt = (struct rt6_info *)dst; in icmpv6_xrlim_allow()
217 dst_release(dst); in icmpv6_xrlim_allow()
329 struct dst_entry *dst, *dst2; in icmpv6_route_lookup() local
333 err = ip6_dst_lookup(net, sk, &dst, fl6); in icmpv6_route_lookup()
341 if (ipv6_anycast_destination(dst, &fl6->daddr)) { in icmpv6_route_lookup()
343 dst_release(dst); in icmpv6_route_lookup()
348 dst2 = dst; in icmpv6_route_lookup()
350 dst = xfrm_lookup(net, dst, flowi6_to_flowi(fl6), sk, 0); in icmpv6_route_lookup()
351 if (!IS_ERR(dst)) { in icmpv6_route_lookup()
352 if (dst != dst2) in icmpv6_route_lookup()
353 return dst; in icmpv6_route_lookup()
355 if (PTR_ERR(dst) == -EPERM) in icmpv6_route_lookup()
356 dst = NULL; in icmpv6_route_lookup()
358 return dst; in icmpv6_route_lookup()
371 dst_release(dst); in icmpv6_route_lookup()
372 dst = dst2; in icmpv6_route_lookup()
376 dst_release(dst); in icmpv6_route_lookup()
383 if (dst) in icmpv6_route_lookup()
384 return dst; in icmpv6_route_lookup()
399 struct dst_entry *dst; in icmp6_send() local
505 dst = icmpv6_route_lookup(net, skb, sk, &fl6); in icmp6_send()
506 if (IS_ERR(dst)) in icmp6_send()
509 hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst); in icmp6_send()
529 np->tclass, NULL, &fl6, (struct rt6_info *)dst, in icmp6_send()
540 dst_release(dst); in icmp6_send()
564 struct dst_entry *dst; in icmpv6_echo_reply() local
601 err = ip6_dst_lookup(net, sk, &dst, &fl6); in icmpv6_echo_reply()
604 dst = xfrm_lookup(net, dst, flowi6_to_flowi(&fl6), sk, 0); in icmpv6_echo_reply()
605 if (IS_ERR(dst)) in icmpv6_echo_reply()
608 hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst); in icmpv6_echo_reply()
619 (struct rt6_info *)dst, MSG_DONTWAIT, in icmpv6_echo_reply()
629 dst_release(dst); in icmpv6_echo_reply()