]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
build: remove support for Linux 2.6.30
authorJan Engelhardt <jengelh@inai.de>
Mon, 15 Oct 2012 22:38:13 +0000 (00:38 +0200)
committerJan Engelhardt <jengelh@inai.de>
Tue, 16 Oct 2012 02:16:57 +0000 (04:16 +0200)
doc/changelog.txt
extensions/compat_skbuff.h
extensions/compat_xtables.c
extensions/compat_xtables.h

index 230d8b0c70c42fee68b780a1716e488a1bbb942b..df7034bcf7b94c5a4b31c04717373e19ce95c6ff 100644 (file)
@@ -2,7 +2,7 @@
 HEAD
 ====
 Changes:
-- remove support for Linux 2.6.17--2.6.29
+- remove support for Linux 2.6.17--2.6.30
 
 
 v1.47.1 (2010-10-15)
index 6453cdfdfcd81d507648a19d969b55495dc7dde3..b1e31b6f074778298357c9ab4064bef8b52afb48 100644 (file)
@@ -4,23 +4,6 @@
 struct tcphdr;
 struct udphdr;
 
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 30)
-static inline void skb_dst_set(struct sk_buff *skb, struct dst_entry *dst)
-{
-       skb->dst = dst;
-}
-
-static inline struct dst_entry *skb_dst(const struct sk_buff *skb)
-{
-       return skb->dst;
-}
-
-static inline struct rtable *skb_rtable(const struct sk_buff *skb)
-{
-       return (void *)skb->dst;
-}
-#endif
-
 #if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 32)
 #      define skb_ifindex(skb) (skb)->iif
 #      define skb_nfmark(skb) (((struct sk_buff *)(skb))->mark)
index e766b5208f938e1d3a5c9a378ebe2717178d206c..7adff99bf5a9e7f6680dc981b54804324bb768fb 100644 (file)
@@ -30,7 +30,7 @@
 #      define WITH_IPV6 1
 #endif
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30) && \
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31) && \
     LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 34)
 static bool xtnu_match_run(const struct sk_buff *skb,
     const struct xt_match_param *par)
@@ -56,7 +56,7 @@ static bool xtnu_match_run(const struct sk_buff *skb,
 }
 #endif
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30) && \
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31) && \
     LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 34)
 static bool xtnu_match_check(const struct xt_mtchk_param *par)
 {
@@ -146,7 +146,7 @@ void xtnu_unregister_matches(struct xtnu_match *nt, unsigned int num)
 EXPORT_SYMBOL_GPL(xtnu_unregister_matches);
 #endif
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30) && \
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31) && \
     LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 34)
 static unsigned int
 xtnu_target_run(struct sk_buff *skb, const struct xt_target_param *par)
@@ -174,7 +174,7 @@ xtnu_target_run(struct sk_buff *skb, const struct xt_action_param *par)
 }
 #endif
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30) && \
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31) && \
     LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 34)
 static bool xtnu_target_check(const struct xt_tgchk_param *par)
 {
index 6faaa918c3a54501c3e318a89b3bc7c02eb75882..6bb61824465c30e19d2125864f0aaa432bd5dc7c 100644 (file)
@@ -8,8 +8,8 @@
 
 #define DEBUGP Use__pr_debug__instead
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30)
-#      warning Kernels below 2.6.30 not supported.
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31)
+#      warning Kernels below 2.6.31 not supported.
 #endif
 
 #if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)