* [PATCH 2/10] ipv4: Fetch route saddr from flow key in inet_sk_reselect_saddr().
@ 2011-04-29 17:26 David Miller
0 siblings, 0 replies; only message in thread
From: David Miller @ 2011-04-29 17:26 UTC (permalink / raw)
To: netdev
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 <davem@davemloft.net>
---
net/ipv4/af_inet.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index 963a621..4e73499 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;
--
1.7.4.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-29 17:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-29 17:26 [PATCH 2/10] ipv4: Fetch route saddr from flow key in inet_sk_reselect_saddr() David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).