From: David S. Miller Date: Fri, 29 Apr 2011 06:16:53 +0000 (-0700) Subject: ipv4: Fetch route saddr from flow key in inet_sk_reselect_saddr(). X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b883187785004cacea053569f1655fada0dfc299;p=mv-sheeva.git ipv4: Fetch route saddr from flow key in inet_sk_reselect_saddr(). Now that output route lookups update the flow with source address selection, we can fetch it from fl4->saddr instead of rt->rt_src Signed-off-by: David S. Miller --- diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index 963a621e75c..4e734992e26 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c @@ -1122,7 +1122,7 @@ static int inet_sk_reselect_saddr(struct sock *sk) sk_setup_caps(sk, &rt->dst); - new_saddr = rt->rt_src; + new_saddr = fl4.saddr; if (new_saddr == old_saddr) return 0;