From 87ddec14232bec6d533a0bd337468a7e56de0b80 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Wed, 8 Jul 2015 22:42:23 +0300 Subject: ipoe: fixed compilation for < 4.1 kernels --- drivers/ipoe/ipoe.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/ipoe/ipoe.c') diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c index 49cad5c..3fc266e 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); -- cgit v1.2.3