Byte counters zeroed when creating/deleting chain
Jason Khaw <[email protected]>
| Newsgroups | gmane.linux.network.bridge.ebtables.devel |
|---|---|
| Organization | Greenpacket |
| Message-ID | <[email protected]> |
Hi, I noticed that when creating or deleting user-defined chains in ebtables, the byte and packet counters for previously added rules are zeroed. Firstly, I execute the following commands: # ebtables -N test # ebtables -A test -s 00:E0:63:82:7E:A1 # ebtables -A test -d 00:E0:63:82:7E:A1 # ebtables -A INPUT -s 00:E0:63:82:7E:A1 -j test # ebtables -A OUTPUT -d 00:E0:63:82:7E:A1 -j test So now ebtables looks like this: ############################## # ebtables -L --Lc Bridge table: filter Bridge chain: INPUT, entries: 1, policy: ACCEPT -s 0:e0:63:82:7e:a1 -j test, pcnt = 64 -- bcnt = 8807 Bridge chain: FORWARD, entries: 0, policy: ACCEPT Bridge chain: OUTPUT, entries: 1, policy: ACCEPT -d 0:e0:63:82:7e:a1 -j test, pcnt = 54 -- bcnt = 42595 Bridge chain: test, entries: 2, policy: ACCEPT -s 0:e0:63:82:7e:a1 -j CONTINUE , pcnt = 64 -- bcnt = 8807 -d 0:e0:63:82:7e:a1 -j CONTINUE , pcnt = 54 -- bcnt = 42595 ############################## Now I create a user-defined chain, named mychain: # ebtables -N mychain After this, all byte and packet counters are zeroed: ############################## # ebtables -L --Lc Bridge table: filter Bridge chain: INPUT, entries: 1, policy: ACCEPT -s 0:e0:63:82:7e:a1 -j test, pcnt = 0 -- bcnt = 0 Bridge chain: FORWARD, entries: 0, policy: ACCEPT Bridge chain: OUTPUT, entries: 1, policy: ACCEPT -d 0:e0:63:82:7e:a1 -j test, pcnt = 0 -- bcnt = 0 Bridge chain: test, entries: 2, policy: ACCEPT -s 0:e0:63:82:7e:a1 -j CONTINUE , pcnt = 0 -- bcnt = 0 -d 0:e0:63:82:7e:a1 -j CONTINUE , pcnt = 0 -- bcnt = 0 Bridge chain: mychain, entries: 0, policy: ACCEPT ############################## The same thing happens when I delete a user-defined chain. Some info about my environment: OS: RedHat Linux (kernel 2.4.20) Kernel patches applied: ebtables-v2.0.003_vs_2.4.20.diff and bridge-nf- 0.0.10-against-2.4.20.diff ebtables version: v2.0.4 Am I missing something here or there's a bug with ebtables? Regards, Jason ------------------------------------------------------- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5