diff options
author | Julian Anastasov <ja@ssi.bg> | 2014-04-28 09:51:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-04-28 20:47:03 +0200 |
commit | e374c618b1465f0292047a9f4c244bd71ab5f1f0 (patch) | |
tree | b6eab50bf0d9bf655128edf7f13c5359c806a215 /net/ipv6/ip6mr.c | |
parent | net: sctp: Don't transition to PF state when transport has exhausted 'Path.Ma... (diff) | |
download | linux-e374c618b1465f0292047a9f4c244bd71ab5f1f0.tar.xz linux-e374c618b1465f0292047a9f4c244bd71ab5f1f0.zip |
net: ipv6: more places need LOOPBACK_IFINDEX for flowi6_iif
To properly match iif in ip rules we have to provide
LOOPBACK_IFINDEX in flowi6_iif, not 0. Some ip6mr_fib_lookup
and fib6_rule_lookup callers need such fix.
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6mr.c')
-rw-r--r-- | net/ipv6/ip6mr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c index 8659067da28e..8250474ab7dc 100644 --- a/net/ipv6/ip6mr.c +++ b/net/ipv6/ip6mr.c @@ -1633,7 +1633,7 @@ struct sock *mroute6_socket(struct net *net, struct sk_buff *skb) { struct mr6_table *mrt; struct flowi6 fl6 = { - .flowi6_iif = skb->skb_iif, + .flowi6_iif = skb->skb_iif ? : LOOPBACK_IFINDEX, .flowi6_oif = skb->dev->ifindex, .flowi6_mark = skb->mark, }; |