mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
Set the iif for IPv6 packets as well.
This was fixed upstream in a more comprehensive way by 1fb9489bf
,
but this one-line fix is consistent with the rest of the 3.4
networking code.
Change-Id: I342ca90c6d0213a7aeac9a2b18283530998f81d7
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
This commit is contained in:
parent
73c45b6b8f
commit
86e3b85a50
1 changed files with 2 additions and 0 deletions
|
@ -928,6 +928,8 @@ struct dst_entry * ip6_route_output(struct net *net, const struct sock *sk,
|
|||
{
|
||||
int flags = 0;
|
||||
|
||||
fl6->flowi6_iif = net->loopback_dev->ifindex;
|
||||
|
||||
if ((sk && sk->sk_bound_dev_if) || rt6_need_strict(&fl6->daddr))
|
||||
flags |= RT6_LOOKUP_F_IFACE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue