mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 05:05:12 +02:00
build: remove support for Linux 2.6.20
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
HEAD
|
HEAD
|
||||||
====
|
====
|
||||||
Changes:
|
Changes:
|
||||||
- remove support for Linux 2.6.17--2.6.19
|
- remove support for Linux 2.6.17--2.6.20
|
||||||
|
|
||||||
|
|
||||||
v1.47.1 (2010-10-15)
|
v1.47.1 (2010-10-15)
|
||||||
|
@@ -62,26 +62,4 @@ typedef struct sk_buff *sk_buff_t;
|
|||||||
|
|
||||||
#endif /* 2.6.21 */
|
#endif /* 2.6.21 */
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 20)
|
|
||||||
# include <linux/netfilter_ipv6/ip6_tables.h>
|
|
||||||
/* Standard entry */
|
|
||||||
struct ip6t_standard
|
|
||||||
{
|
|
||||||
struct ip6t_entry entry;
|
|
||||||
struct ip6t_standard_target target;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct ip6t_error_target
|
|
||||||
{
|
|
||||||
struct ip6t_entry_target target;
|
|
||||||
char errorname[IP6T_FUNCTION_MAXNAMELEN];
|
|
||||||
};
|
|
||||||
|
|
||||||
struct ip6t_error
|
|
||||||
{
|
|
||||||
struct ip6t_entry entry;
|
|
||||||
struct ip6t_error_target target;
|
|
||||||
};
|
|
||||||
#endif /* 2.6.20 */
|
|
||||||
|
|
||||||
#endif /* XTA_COMPAT_RAWPOST_H */
|
#endif /* XTA_COMPAT_RAWPOST_H */
|
||||||
|
@@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
#define DEBUGP Use__pr_debug__instead
|
#define DEBUGP Use__pr_debug__instead
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 21)
|
||||||
# warning Kernels below 2.6.20 not supported.
|
# warning Kernels below 2.6.21 not supported.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)
|
#if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)
|
||||||
|
@@ -100,15 +100,9 @@ static void delude_send_reset(struct sk_buff *oldskb, unsigned int hook)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 20)
|
|
||||||
tcph->check = tcp_v4_check(tcph, sizeof(struct tcphdr), niph->saddr,
|
|
||||||
niph->daddr, csum_partial((char *)tcph,
|
|
||||||
sizeof(struct tcphdr), 0));
|
|
||||||
#else
|
|
||||||
tcph->check = tcp_v4_check(sizeof(struct tcphdr), niph->saddr,
|
tcph->check = tcp_v4_check(sizeof(struct tcphdr), niph->saddr,
|
||||||
niph->daddr, csum_partial((char *)tcph,
|
niph->daddr, csum_partial((char *)tcph,
|
||||||
sizeof(struct tcphdr), 0));
|
sizeof(struct tcphdr), 0));
|
||||||
#endif
|
|
||||||
|
|
||||||
addr_type = RTN_UNSPEC;
|
addr_type = RTN_UNSPEC;
|
||||||
#ifdef CONFIG_BRIDGE_NETFILTER
|
#ifdef CONFIG_BRIDGE_NETFILTER
|
||||||
|
@@ -237,15 +237,9 @@ static void tarpit_tcp4(struct sk_buff *oldskb, unsigned int hook,
|
|||||||
|
|
||||||
/* Adjust TCP checksum */
|
/* Adjust TCP checksum */
|
||||||
tcph->check = 0;
|
tcph->check = 0;
|
||||||
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 20)
|
|
||||||
tcph->check = tcp_v4_check(tcph, sizeof(struct tcphdr), niph->saddr,
|
|
||||||
niph->daddr, csum_partial((char *)tcph,
|
|
||||||
sizeof(struct tcphdr), 0));
|
|
||||||
#else
|
|
||||||
tcph->check = tcp_v4_check(sizeof(struct tcphdr), niph->saddr,
|
tcph->check = tcp_v4_check(sizeof(struct tcphdr), niph->saddr,
|
||||||
niph->daddr, csum_partial((char *)tcph,
|
niph->daddr, csum_partial((char *)tcph,
|
||||||
sizeof(struct tcphdr), 0));
|
sizeof(struct tcphdr), 0));
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Set DF, id = 0 */
|
/* Set DF, id = 0 */
|
||||||
niph->frag_off = htons(IP_DF);
|
niph->frag_off = htons(IP_DF);
|
||||||
|
Reference in New Issue
Block a user