Skip to contentSkip to conversation

ipt_sctp undeclared variable

DISCUSSION Daniel 'NebuchadnezzaR' Dehennin 3 participants 3 messages Mar 14, 2004 – Mar 17, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

hello,

I try the latest pom-ng (from cvs) and I have an error during the build:

net/ipv4/netfilter/ipt_sctp.c: In function « match_packet »:
net/ipv4/netfilter/ipt_sctp.c:59: error: `i' undeclared (first use in this function) net/ipv4/netfilter/ipt_sctp.c:59: error: (Each undeclared identifier is reported only once net/ipv4/netfilter/ipt_sctp.c:59: error: for each function it appears in.) make[4]: *** [net/ipv4/netfilter/ipt_sctp.o] Erreur 1

Thanks.

Signature · 3 lines
Daniel 'NebuchadnezzaR' Dehennin
Récuppérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x4CA73DC6
#1 lore raw

--- Daniel 'NebuchadnezzaR' Dehennin

Quoted 4 lines · <[email protected]> wrote:

I try the latest pom-ng (from cvs) and I have an error during
the build:

Quoted 10 lines

net/ipv4/netfilter/ipt_sctp.c: In function « match_packet »:
net/ipv4/netfilter/ipt_sctp.c:59: error: `i' undeclared (first use in this function) net/ipv4/netfilter/ipt_sctp.c:59: error: (Each undeclared identifier is reported only once net/ipv4/netfilter/ipt_sctp.c:59: error: for each function it appears in.)
make[4]: *** [net/ipv4/netfilter/ipt_sctp.o] Erreur 1

The attached (trivial) patch is the fix for it. BTW,
I have submitted it to Harald as well, and it should be in CVS some time soon.

=====
Regards,
Kiran Kumar Immidi

__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com

Index: sctp/linux-2.6/net/ipv4/netfilter/ipt_sctp.c
===================================================================
RCS file: /cvspublic/patch-o-matic-ng/sctp/linux-2.6/net/ipv4/netfilter/ipt_sctp.c,v retrieving revision 1.2

linux-2.6/net/ipv4/netfilter/ipt_sctp.c +3 -1
diff -u -r1.2 ipt_sctp.c
@@ -6,7 +6,7 @@
 #include <linux/netfilter_ipv4/ip_tables.h>
 #include <linux/netfilter_ipv4/ipt_sctp.h>
 
-#if 1
+#if 0
 #define duprintf(format, args...) printk(format , ## args)
 #else
 #define duprintf(format, args...)
@@ -43,6 +43,8 @@
 	int offset;
 	u_int32_t chunkmapcopy[256 / sizeof (u_int32_t)];
 	sctp_chunkhdr_t sch;
+
+	int i = 0;
 
 	if (chunk_match_type == SCTP_CHUNK_MATCH_ALL) {
 		SCTP_CHUNKMAP_COPY(chunkmapcopy, chunkmap);
#2 lore raw
Quoted 3 lines · Kiran Kumar

The attached (trivial) patch is the fix for it. BTW,
I have submitted it to Harald as well, and it should be in CVS some time soon.

committing just now.

Signature · 5 lines
- Harald Welte <[email protected]>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie