Re: [Ebtables-devel] ebtables -X does not delete all unused chains
Brought to you by:
bdschuym
From: Bart De S. <bds...@pa...> - 2006-07-31 19:47:09
|
Op ma, 31-07-2006 te 10:03 -0600, schreef Alberto Trevi=C3=B1o: > Needless to say I am playing with ebtables and I am finding a few bugs.= =20 > I don't know if the developers will be happy or if they will get tired=20 > of all my bug reports. :-) I'm not trying to make the developer's life= =20 > difficult. I promise. The period before I release the stable version is the ideal time to find and report bugs. Thanks, I appreciate it. > I am running 2.0.8-rc2 + segfault patch. I am writing a script to=20 > program my bridge rules. At the beginning of the script I have the=20 > following commands: >=20 > ebtables -F > ebtables -X >=20 > In theory, ebtables should flush all the chains in the default table an= d=20 > remove all unused user-defined chains. I found the -X command,=20 > however, is not deleting all the user-defined chains. It only deletes=20 > the odd-numbered ones (as given in the list) and the even ones remain=20 > intact. Here is the example, starting from scratch: The attached patch should fix it. Apply in the same way as before (on top of the previous patch). cheers, Bart |