diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2015-07-08 22:42:23 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2015-07-08 22:42:23 +0300 |
commit | 87ddec14232bec6d533a0bd337468a7e56de0b80 (patch) | |
tree | 99a777d0775b03f50ca8385c0b3a6dd26441931b | |
parent | 88046fc44ee0ad1635532db7329bc80db8fe3fab (diff) | |
download | accel-ppp-87ddec14232bec6d533a0bd337468a7e56de0b80.tar.gz accel-ppp-87ddec14232bec6d533a0bd337468a7e56de0b80.zip |
ipoe: fixed compilation for < 4.1 kernels
-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); |