echo "$kmajor.$kminor.$kmicro.$kstable in $kbuilddir";
if test "$kmajor" -gt 4 -o "$kmajor" -eq 4 -a "$kminor" -gt 12; then
echo "WARNING: That kernel version is not officially supported yet. Continue at own luck.";
- elif test "$kmajor" -eq 4 -a "$kminor" -le 2; then
+ elif test "$kmajor" -eq 4 -a "$kminor" -le 3; then
echo "WARNING: That kernel version is not officially supported.";
elif test "$kmajor" -eq 4 -a "$kminor" -le 10; then
:;
Enhancements:
- support for Linux up to 4.15
Changes:
-- remove support for Linux 3.7--4.2
+- remove support for Linux 3.7--4.3
v2.14 (2017-11-22)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)
struct ipt_acc_net *ian = net_generic(par->state->net, ipt_acc_net_id);
#else
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,4,0)
struct ipt_acc_net *ian = net_generic(par->net, ipt_acc_net_id);
-#else
- struct net *net = dev_net(par->in ? par->in : par->out);
- struct ipt_acc_net *ian = net_generic(net, ipt_acc_net_id);
-#endif
#endif
struct ipt_acc_table *ipt_acc_tables = ian->ipt_acc_tables;
const struct ipt_acc_info *info =
#define DEBUGP Use__pr_debug__instead
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0)
-# warning Kernels below 4.3 not supported.
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 0)
+# warning Kernels below 4.4 not supported.
#endif
#if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)
# define NIPQUAD_FMT "%hhu.%hhu.%hhu.%hhu"
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 0)
-# define ip6_local_out(xnet, xsk, xskb) ip6_local_out(xskb)
-# define ip6_route_me_harder(xnet, xskb) ip6_route_me_harder(xskb)
-# define ip_local_out(xnet, xsk, xskb) ip_local_out(xskb)
-# define ip_route_me_harder(xnet, xskb, xaddrtype) ip_route_me_harder((xskb), (xaddrtype))
-#endif
-
static inline struct net *par_net(const struct xt_action_param *par)
{
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0)
return par->state->net;
#else
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)
return par->net;
-#else
- return dev_net((par->in != NULL) ? par->in : par->out);
-#endif
#endif
}
goto free_nskb;
nf_ct_attach(nskb, oldskb);
-
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)
NF_HOOK(NFPROTO_IPV4, NF_INET_LOCAL_OUT, net, nskb->sk, nskb, NULL,
skb_dst(nskb)->dev, dst_output);
-#else
- NF_HOOK(NFPROTO_IPV4, NF_INET_LOCAL_OUT, nskb->sk, nskb, NULL,
- skb_dst(nskb)->dev, dst_output_sk);
-#endif
return;
free_nskb:
nskb->ip_summed = CHECKSUM_NONE;
nf_ct_attach(nskb, oldskb);
-
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)
NF_HOOK(NFPROTO_IPV6, NF_INET_LOCAL_OUT, net, nskb->sk, nskb, NULL,
skb_dst(nskb)->dev, dst_output);
-#else
- NF_HOOK(NFPROTO_IPV6, NF_INET_LOCAL_OUT, nskb->sk, nskb, NULL,
- skb_dst(nskb)->dev, dst_output_sk);
-#endif
return;
free_nskb: