projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6706b6e
)
ipv4: Fetch route saddr from flow key in inet_sk_reselect_saddr().
author
David S. Miller
<davem@davemloft.net>
Fri, 29 Apr 2011 06:16:53 +0000
(23:16 -0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 29 Apr 2011 06:16:53 +0000
(23:16 -0700)
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
patch
|
blob
|
history
diff --git
a/net/ipv4/af_inet.c
b/net/ipv4/af_inet.c
index 963a621e75c7a2ccdac12331dac1c3bbff39a1ac..4e734992e266a607869b73338d59a456f50cb81e 100644
(file)
--- 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;