]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/ipv6/netfilter/ip6t_rpfilter.c
netfilter: ip6t_rpfilter: provide input interface for route lookup
[mirror_ubuntu-bionic-kernel.git] / net / ipv6 / netfilter / ip6t_rpfilter.c
index b12e61b7b16ce9f3f98a0906558c98803a48a9a3..1c4a5de3f301ae1e1dc85041dcfb9fdbf33c1b22 100644 (file)
@@ -48,10 +48,8 @@ static bool rpfilter_lookup_reverse6(struct net *net, const struct sk_buff *skb,
        }
 
        fl6.flowi6_mark = flags & XT_RPFILTER_VALID_MARK ? skb->mark : 0;
-       if ((flags & XT_RPFILTER_LOOSE) == 0) {
+       if ((flags & XT_RPFILTER_LOOSE) == 0)
                fl6.flowi6_oif = dev->ifindex;
-               lookup_flags |= RT6_LOOKUP_F_IFACE;
-       }
 
        rt = (void *) ip6_route_lookup(net, &fl6, lookup_flags);
        if (rt->dst.error)