diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2006-08-29 20:15:09 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 17:55:45 -0400 |
commit | 8e1ef0a95b87e8b4292b2ba733e8cb854ea2d2fe (patch) | |
tree | 245489015b33604df5b270ce3c027205d867a929 /net/ipv6/udp.c | |
parent | cf6b1982599cbb60f410adeda659b0b29cdf7ad7 (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/udp.c')
-rw-r--r-- | net/ipv6/udp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index eb9e1b39c8f8..b9cc55ccb000 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c | |||
@@ -847,7 +847,12 @@ do_append_data: | |||
847 | if (connected) { | 847 | if (connected) { |
848 | ip6_dst_store(sk, dst, | 848 | ip6_dst_store(sk, dst, |
849 | ipv6_addr_equal(&fl->fl6_dst, &np->daddr) ? | 849 | ipv6_addr_equal(&fl->fl6_dst, &np->daddr) ? |
850 | &np->daddr : NULL); | 850 | &np->daddr : NULL, |
851 | #ifdef CONFIG_IPV6_SUBTREES | ||
852 | ipv6_addr_equal(&fl->fl6_src, &np->saddr) ? | ||
853 | &np->saddr : | ||
854 | #endif | ||
855 | NULL); | ||
851 | } else { | 856 | } else { |
852 | dst_release(dst); | 857 | dst_release(dst); |
853 | } | 858 | } |