提交 b8831877 编写于 作者: D David S. Miller

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: NDavid S. Miller <davem@davemloft.net>
上级 6706b6eb
...@@ -1122,7 +1122,7 @@ static int inet_sk_reselect_saddr(struct sock *sk) ...@@ -1122,7 +1122,7 @@ static int inet_sk_reselect_saddr(struct sock *sk)
sk_setup_caps(sk, &rt->dst); sk_setup_caps(sk, &rt->dst);
new_saddr = rt->rt_src; new_saddr = fl4.saddr;
if (new_saddr == old_saddr) if (new_saddr == old_saddr)
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册