diff options
-rw-r--r-- | drivers/ipoe/ipoe.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c index 49cad5c7..3fc266e6 100644 --- a/drivers/ipoe/ipoe.c +++ b/drivers/ipoe/ipoe.c @@ -812,7 +812,11 @@ static unsigned int ipt_in_hook(const struct nf_hook_ops *ops, struct sk_buff *s if (!ipoe_check_network(iph->saddr)) return NF_ACCEPT; +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) + if (!ipoe_check_interface(in->ifindex)) +#else if (!ipoe_check_interface(state->in->ifindex)) +#endif return NF_ACCEPT; ipoe_queue_u(skb, iph->saddr); |