aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv6/route.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index c5bbece7f9f2..c518e4ec0cea 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -937,6 +937,8 @@ struct dst_entry * ip6_route_output(struct net *net, const struct sock *sk,
937{ 937{
938 int flags = 0; 938 int flags = 0;
939 939
940 fl6->flowi6_iif = net->loopback_dev->ifindex;
941
940 if ((sk && sk->sk_bound_dev_if) || rt6_need_strict(&fl6->daddr)) 942 if ((sk && sk->sk_bound_dev_if) || rt6_need_strict(&fl6->daddr))
941 flags |= RT6_LOOKUP_F_IFACE; 943 flags |= RT6_LOOKUP_F_IFACE;
942 944