Re: [ANNOUNCE] ipset-2.3.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On sometime, Jozsef Kadlecsik wrote:
>
>As xtables-addons works with kernel 2.6.18.5 or above I cannot depend 
>on it. Even supporting 2.4 kernels is still required - and if there's a 
>single user who needs it, I do support the 2.4 series in ipset.

I seem to be the first one to even try <= 2.6.21.

  CC [M]  /home/jengelh/Coding/xtables/xtables-addons/extensions/ipset/ip_set_macipmap.o
In file included from /home/jengelh/Coding/xtables/xtables-addons/extensions/ipset/ip_set_macipmap.c:26:
/home/jengelh/Coding/xtables/xtables-addons/extensions/ipset/ip_set_malloc.h:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘init_max_page_size’
In file included from /home/jengelh/Coding/xtables/xtables-addons/extensions/ipset/ip_set_macipmap.c:26:
/home/jengelh/Coding/xtables/xtables-addons/extensions/ipset/ip_set_malloc.h: In function ‘harray_malloc’:
/home/jengelh/Coding/xtables/xtables-addons/extensions/ipset/ip_set_malloc.h:87: warning: implicit declaration of function ‘init_max_page_size’
make[5]: *** [/home/jengelh/Coding/xtables/xtables-addons/extensions/ipset/ip_set_macipmap.o] Error 1
make[4]: *** [/home/jengelh/Coding/xtables/xtables-addons/extensions/ipset] Error 2
make[3]: *** [_module_/home/jengelh/Coding/xtables/xtables-addons/extensions] Error 2
make[3]: Leaving directory `/lo/linux18'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/home/jengelh/Coding/xtables/xtables-addons/extensions'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jengelh/Coding/xtables/xtables-addons'
make: *** [all] Error 2



commit 35783b5c51d079439b737053e2ab88c2eb9ccea7
Author: Jan Engelhardt <jengelh@xxxxxxxxxx>
Date:   Mon Jul 7 11:07:15 2008 +0200

    ipset: fixup compile errors with 2.6.18.x and 2.6.20 warnings
---
 extensions/ipset/ip_set_iptree.c    |    2 +-
 extensions/ipset/ip_set_iptreemap.c |    2 +-
 extensions/ipset/ip_set_malloc.h    |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/extensions/ipset/ip_set_iptree.c b/extensions/ipset/ip_set_iptree.c
index 82ed54b..5170294 100644
--- a/extensions/ipset/ip_set_iptree.c
+++ b/extensions/ipset/ip_set_iptree.c
@@ -35,7 +35,7 @@ static int limit = MAX_RANGE;
  * to delete the gc timer at destroying/flushing a set */
 #define IPTREE_DESTROY_SLEEP	100
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,21)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
 static struct kmem_cache *branch_cachep;
 static struct kmem_cache *leaf_cachep;
 #else
diff --git a/extensions/ipset/ip_set_iptreemap.c b/extensions/ipset/ip_set_iptreemap.c
index 4c4cc97..bc102fc 100644
--- a/extensions/ipset/ip_set_iptreemap.c
+++ b/extensions/ipset/ip_set_iptreemap.c
@@ -30,7 +30,7 @@
 #define IPTREEMAP_DEFAULT_GC_TIME (5 * 60)
 #define IPTREEMAP_DESTROY_SLEEP (100)
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,21)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
 static struct kmem_cache *cachep_b;
 static struct kmem_cache *cachep_c;
 static struct kmem_cache *cachep_d;
diff --git a/extensions/ipset/ip_set_malloc.h b/extensions/ipset/ip_set_malloc.h
index 30701f4..ddf6389 100644
--- a/extensions/ipset/ip_set_malloc.h
+++ b/extensions/ipset/ip_set_malloc.h
@@ -5,7 +5,7 @@
 
 static size_t max_malloc_size = 0, max_page_size = 0;
 
-static inline bool init_max_page_size(void)
+static inline unsigned int init_max_page_size(void)
 {
 	size_t page_size = 0;
 	
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux