ip6_output.c (ab4eb3537e3f20b2a88467e1f708a136df6e0ecb) ip6_output.c (a963a37d384d71ad43b3e9e79d68d42fbe0901f3)
1/*
2 * IPv6 output functions
3 * Linux INET6 implementation
4 *
5 * Authors:
6 * Pedro Roque <roque@di.fc.ul.pt>
7 *
8 * Based on linux/net/ipv4/ip_output.c

--- 807 unchanged lines hidden (view full) ---

816 (addr_cache == NULL || !ipv6_addr_equal(fl_addr, addr_cache));
817}
818
819static struct dst_entry *ip6_sk_dst_check(struct sock *sk,
820 struct dst_entry *dst,
821 const struct flowi6 *fl6)
822{
823 struct ipv6_pinfo *np = inet6_sk(sk);
1/*
2 * IPv6 output functions
3 * Linux INET6 implementation
4 *
5 * Authors:
6 * Pedro Roque <roque@di.fc.ul.pt>
7 *
8 * Based on linux/net/ipv4/ip_output.c

--- 807 unchanged lines hidden (view full) ---

816 (addr_cache == NULL || !ipv6_addr_equal(fl_addr, addr_cache));
817}
818
819static struct dst_entry *ip6_sk_dst_check(struct sock *sk,
820 struct dst_entry *dst,
821 const struct flowi6 *fl6)
822{
823 struct ipv6_pinfo *np = inet6_sk(sk);
824 struct rt6_info *rt = (struct rt6_info *)dst;
824 struct rt6_info *rt;
825
826 if (!dst)
827 goto out;
828
825
826 if (!dst)
827 goto out;
828
829 if (dst->ops->family != AF_INET6) {
830 dst_release(dst);
831 return NULL;
832 }
833
834 rt = (struct rt6_info *)dst;
829 /* Yes, checking route validity in not connected
830 * case is not very simple. Take into account,
831 * that we do not support routing by source, TOS,
832 * and MSG_DONTROUTE --ANK (980726)
833 *
834 * 1. ip6_rt_check(): If route was host route,
835 * check that cached destination is current.
836 * If it is network route, we still may

--- 742 unchanged lines hidden ---
835 /* Yes, checking route validity in not connected
836 * case is not very simple. Take into account,
837 * that we do not support routing by source, TOS,
838 * and MSG_DONTROUTE --ANK (980726)
839 *
840 * 1. ip6_rt_check(): If route was host route,
841 * check that cached destination is current.
842 * If it is network route, we still may

--- 742 unchanged lines hidden ---