net: Add missing LOOPBACK_IFINDEX change in ipv6/route.c

Missed in "net: Loopback ifindex is constant now" backport.

Change-Id: I7259ac064e9ece4520ff355d55ffd04646d384ce
This commit is contained in:
Arne Coucheron 2018-11-18 23:57:39 +01:00 committed by Artem Borisov
parent f499215262
commit 70e12c60f4
1 changed files with 1 additions and 1 deletions

View File

@ -961,7 +961,7 @@ struct dst_entry * ip6_route_output(struct net *net, const struct sock *sk,
{
int flags = 0;
fl6->flowi6_iif = net->loopback_dev->ifindex;
fl6->flowi6_iif = LOOPBACK_IFINDEX;
if ((sk && sk->sk_bound_dev_if) || rt6_need_strict(&fl6->daddr))
flags |= RT6_LOOKUP_F_IFACE;