Re: compiling ip_set_iptree.o

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

 



On Tue, 18 Oct 2005, Ming-Ching Tiew wrote:

> Compiling ip_set_iptree.o as module get this error :-
>
>  CC [M]  net/ipv4/netfilter/ip_set_iptree.o
> net/ipv4/netfilter/ip_set_iptree.c:123: error: parse error before "flags"
> net/ipv4/netfilter/ip_set_iptree.c:124: warning: function declaration isn't a prototype
> net/ipv4/netfilter/ip_set_iptree.c: In function `__addip':

That's due to a backward compatibility issue - I tested the code on
2.6.12.x and - as you wrote - you try to use ipset on 2.6.11.x. Please use
the attached patch which takes care of it.

Best regards,
Jozsef
-
E-mail  : kadlec@xxxxxxxxxxxxxxxxx, kadlec@xxxxxxxxxxxxxxx
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
          H-1525 Budapest 114, POB. 49, Hungary
diff -urN --exclude-from=/usr/src/diff.exclude linux-2.6.12.3-ipset-ipport/net/ipv4/netfilter/ip_set_iptree.c linux-2.6.12.3-ipset-ipport2/net/ipv4/netfilter/ip_set_iptree.c
--- linux-2.6.12.3-ipset-ipport/net/ipv4/netfilter/ip_set_iptree.c	2005-10-12 17:09:06.000000000 +0200
+++ linux-2.6.12.3-ipset-ipport2/net/ipv4/netfilter/ip_set_iptree.c	2005-10-18 13:01:25.000000000 +0200
@@ -19,6 +19,11 @@
 #include <asm/bitops.h>
 #include <linux/spinlock.h>
 
+/* Backward compatibility */
+#ifndef __nocast
+#define __nocast
+#endif
+
 #include <linux/netfilter_ipv4/ip_set_iptree.h>
 
 /* Garbage collection interval in seconds: */

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux