Lines Matching refs:dst

176 	struct dst_entry *dst;  in icmpv6_xrlim_allow()  local
192 dst = ip6_route_output(net, sk, fl6); in icmpv6_xrlim_allow()
193 if (dst->error) { in icmpv6_xrlim_allow()
194 IP6_INC_STATS(net, ip6_dst_idev(dst), in icmpv6_xrlim_allow()
196 } else if (dst->dev && (dst->dev->flags&IFF_LOOPBACK)) { in icmpv6_xrlim_allow()
199 struct rt6_info *rt = (struct rt6_info *)dst; in icmpv6_xrlim_allow()
216 dst_release(dst); in icmpv6_xrlim_allow()
328 struct dst_entry *dst, *dst2; in icmpv6_route_lookup() local
332 err = ip6_dst_lookup(sk, &dst, fl6); in icmpv6_route_lookup()
340 if (((struct rt6_info *)dst)->rt6i_flags & RTF_ANYCAST) { in icmpv6_route_lookup()
342 dst_release(dst); in icmpv6_route_lookup()
347 dst2 = dst; in icmpv6_route_lookup()
349 dst = xfrm_lookup(net, dst, flowi6_to_flowi(fl6), sk, 0); in icmpv6_route_lookup()
350 if (!IS_ERR(dst)) { in icmpv6_route_lookup()
351 if (dst != dst2) in icmpv6_route_lookup()
352 return dst; in icmpv6_route_lookup()
354 if (PTR_ERR(dst) == -EPERM) in icmpv6_route_lookup()
355 dst = NULL; in icmpv6_route_lookup()
357 return dst; in icmpv6_route_lookup()
370 dst_release(dst); in icmpv6_route_lookup()
371 dst = dst2; in icmpv6_route_lookup()
375 dst_release(dst); in icmpv6_route_lookup()
382 if (dst) in icmpv6_route_lookup()
383 return dst; in icmpv6_route_lookup()
398 struct dst_entry *dst; in icmp6_send() local
499 dst = icmpv6_route_lookup(net, skb, sk, &fl6); in icmp6_send()
500 if (IS_ERR(dst)) in icmp6_send()
503 hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst); in icmp6_send()
522 np->tclass, NULL, &fl6, (struct rt6_info *)dst, in icmp6_send()
533 dst_release(dst); in icmp6_send()
557 struct dst_entry *dst; in icmpv6_echo_reply() local
594 err = ip6_dst_lookup(sk, &dst, &fl6); in icmpv6_echo_reply()
597 dst = xfrm_lookup(net, dst, flowi6_to_flowi(&fl6), sk, 0); in icmpv6_echo_reply()
598 if (IS_ERR(dst)) in icmpv6_echo_reply()
601 hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst); in icmpv6_echo_reply()
612 (struct rt6_info *)dst, MSG_DONTWAIT, in icmpv6_echo_reply()
622 dst_release(dst); in icmpv6_echo_reply()