HEAD
====
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)
#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 */
#define DEBUGP Use__pr_debug__instead
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
-# warning Kernels below 2.6.20 not supported.
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 21)
+# warning Kernels below 2.6.21 not supported.
#endif
#if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)
}
}
-#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,
niph->daddr, csum_partial((char *)tcph,
sizeof(struct tcphdr), 0));
-#endif
addr_type = RTN_UNSPEC;
#ifdef CONFIG_BRIDGE_NETFILTER
/* Adjust TCP checksum */
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,
niph->daddr, csum_partial((char *)tcph,
sizeof(struct tcphdr), 0));
-#endif
/* Set DF, id = 0 */
niph->frag_off = htons(IP_DF);