Re: problem with ebtables-brnf-8-2_vs_2.4.28

Bart De Schuymer <[email protected]>
Newsgroups gmane.linux.network.bridge.ebtables.devel
Message-ID <[email protected]>
Op wo, 15-12-2004 te 10:55 +0100, schreef [email protected]:
> Hello,
> 
> I have a problem with ebtables-brnf-8-2_vs_2.4.28 on 2.4.28 kernel.
> Is it a bug ?
> 
> Kind regards,
> François-Xavier
> 
> ---------------------------------------
> # ebtables -t filter -N chain1
> => OK
> 
> # ebtables -t filter -X chain1
> ebtables v2.0.7:libebtc.c:1056:--BUG--:
> udc nr 9 doesn't exist
> 
> => Bug ?

Yes. Thanks for the report. The fix (see below) is in the CVS.

cheers,
Bart


--- ebtables.c.old	2004-12-16 20:37:15.876162640 +0100
+++ ebtables.c	2004-12-16 20:37:20.468464504 +0100
@@ -601,7 +601,7 @@ int main(int argc, char *argv[])
 				if ((replace.selected_chain =
 				     ebt_get_chainnr(&replace, opt)) == -1)
 					ebt_print_error("Chain %s doesn't "
-							"exist", optarg);
+							"exist", opt);
 				ebt_delete_chain(&replace);
 				break;
 			}
--- libebtc.c.old	2004-12-16 20:36:37.769955664 +0100
+++ libebtc.c	2004-12-16 20:36:43.029156144 +0100
@@ -1067,7 +1067,7 @@ void ebt_delete_chain(struct ebt_u_repla
 		decrease_chain_jumps(replace);
 		ebt_flush_chains(replace);
 		remove_udc(replace);
-	} while (chain_nr != -1);
+	} while (chain_nr == -1);
 	replace->selected_chain = chain_nr;
 }
 




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
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.