[PATCH] fix base pointer for user-defined chains, vs 2.5.48

Bart De Schuymer <[email protected]>
Newsgroups gmane.linux.network.bridge.ebtables.devel
Message-ID <[email protected]>
Hello David,

The patch below fixes a (critical) bug caused by using the wrong base pointer 
for the user-defined chains.
Please apply.

cheers,
Bart

PS: what happened to my include/linux/netfilter_bridge.h patch that adds the 
necessary #ifdef __KERNEL__? Do I need to resend?

--- linux-2.5.48/net/bridge/netfilter/ebtables.c.old	Thu Nov 21 00:11:48 2002
+++ linux-2.5.48/net/bridge/netfilter/ebtables.c	Thu Nov 21 00:12:04 2002
@@ -183,7 +183,7 @@
 	point = (struct ebt_entry *)(private->hook_entry[hook]->data);
 	counter_base = cb_base + private->hook_entry[hook]->counter_offset;
 	// base for chain jumps
-	base = (char *)chaininfo;
+	base = private->entries;
 	i = 0;
 	while (i < nentries) {
 		if (ebt_basic_match(point, (**pskb).mac.ethernet, in, out))



-------------------------------------------------------
This sf.net email is sponsored by: 
Battle your brains against the best in the Thawte Crypto 
Challenge. Be the first to crack the code - register now: 
http://www.gothawte.com/rd521.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.