[Ebtables-devel] ebtables -X does not delete all unused chains
Brought to you by:
bdschuym
From: Alberto <al...@by...> - 2006-07-31 16:02:32
|
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. 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: ebtables -F ebtables -X In theory, ebtables should flush all the chains in the default table and=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: =2D------------------------------------------------ [root@slim-dev ~]# ebtables -N FIRST [root@slim-dev ~]# ebtables -N SECOND [root@slim-dev ~]# ebtables -N THIRD [root@slim-dev ~]# ebtables -N FORTH [root@slim-dev ~]# ebtables -N FIFTH [root@slim-dev ~]# ebtables -L Bridge table: filter Bridge chain: INPUT, entries: 0, policy: ACCEPT Bridge chain: FORWARD, entries: 0, policy: ACCEPT Bridge chain: OUTPUT, entries: 0, policy: ACCEPT Bridge chain: FIRST, entries: 0, policy: ACCEPT Bridge chain: SECOND, entries: 0, policy: ACCEPT Bridge chain: THIRD, entries: 0, policy: ACCEPT Bridge chain: FORTH, entries: 0, policy: ACCEPT Bridge chain: FIFTH, entries: 0, policy: ACCEPT [root@slim-dev ~]# ebtables -X [root@slim-dev ~]# ebtables -L Bridge table: filter Bridge chain: INPUT, entries: 0, policy: ACCEPT Bridge chain: FORWARD, entries: 0, policy: ACCEPT Bridge chain: OUTPUT, entries: 0, policy: ACCEPT Bridge chain: SECOND, entries: 0, policy: ACCEPT Bridge chain: FORTH, entries: 0, policy: ACCEPT [root@slim-dev ~]# ebtables -X [root@slim-dev ~]# ebtables -L Bridge table: filter Bridge chain: INPUT, entries: 0, policy: ACCEPT Bridge chain: FORWARD, entries: 0, policy: ACCEPT Bridge chain: OUTPUT, entries: 0, policy: ACCEPT Bridge chain: FORTH, entries: 0, policy: ACCEPT [root@slim-dev ~]# ebtables -X [root@slim-dev ~]# ebtables -L Bridge table: filter Bridge chain: INPUT, entries: 0, policy: ACCEPT Bridge chain: FORWARD, entries: 0, policy: ACCEPT Bridge chain: OUTPUT, entries: 0, policy: ACCEPT [root@slim-dev ~]# =2D------------------------------------------------ This bug is not critical, since ebtables is still useable and I can work=20 around the bug. Thanks again for your help. =2D-=20 Alberto Trevi=F1o al...@by... |