aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6_output.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2006-08-29 20:15:09 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 17:55:45 -0400
commit8e1ef0a95b87e8b4292b2ba733e8cb854ea2d2fe (patch)
tree245489015b33604df5b270ce3c027205d867a929 /net/ipv6/ip6_output.c
parentcf6b1982599cbb60f410adeda659b0b29cdf7ad7 (diff)
[IPV6]: Cache source address as well in ipv6_pinfo{}.
Based on MIPL2 kernel patch. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: Ville Nuorvala <vnuorval@tcs.hut.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_output.c')
-rw-r--r--net/ipv6/ip6_output.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
index 0a18cb6b1cbb..2a376b7d91b4 100644
--- a/net/ipv6/ip6_output.c
+++ b/net/ipv6/ip6_output.c
@@ -762,6 +762,9 @@ static struct dst_entry *ip6_sk_dst_check(struct sock *sk,
762 * 2. oif also should be the same. 762 * 2. oif also should be the same.
763 */ 763 */
764 if (ip6_rt_check(&rt->rt6i_dst, &fl->fl6_dst, np->daddr_cache) || 764 if (ip6_rt_check(&rt->rt6i_dst, &fl->fl6_dst, np->daddr_cache) ||
765#ifdef CONFIG_IPV6_SUBTREES
766 ip6_rt_check(&rt->rt6i_src, &fl->fl6_src, np->saddr_cache) ||
767#endif
765 (fl->oif && fl->oif != dst->dev->ifindex)) { 768 (fl->oif && fl->oif != dst->dev->ifindex)) {
766 dst_release(dst); 769 dst_release(dst);
767 dst = NULL; 770 dst = NULL;