Re: library for ebtales

Jens Götze <ebtables-Oy3pwlwbpt9/DD3GX/[email protected]>
Newsgroups gmane.linux.network.bridge.ebtables.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hello,

so the "bug" with counter values is fixed. it was not really a bug, but
it's better so and no (or only minimal) informations go lost.

Rule list in chain INPUT before delete
~  Entry jump to 'CONTINUE' (bcnt = 248608; pcnt = 1415)
~  Entry jump to 'CONTINUE' (bcnt = 95126; pcnt = 216)

Delete second entry

Rule list in chain INPUT after delete
~  Entry jump to 'CONTINUE' (bcnt = 248608; pcnt = 1415)

Append entry

Wait 5 seconds for network traffic...

Rule list in chain INPUT after commit
~  Entry jump to 'CONTINUE' (bcnt = 249495; pcnt = 1424)
~  Entry jump to 'CONTINUE' (bcnt = 0; pcnt = 0)

regards,
jens

Bart De Schuymer wrote:
| Op ma, 04-04-2005 te 23:00 +0200, schreef Jens Götze:
|
|>in future i will enlarge my activities for iptables and ebtables.
|>currently i have few time for that hobby, because i write my degree
|>dissertation. yes, add this lib to the cvs tree. it is a good first step
|>for an little cute lib.
|
|
| Good luck with your dissertation. That's how I started my work on
| ebtables too.
|

|
| What if the bcnt counter of the first rule increased (in the kernel)
| from 34706 to 34707 after the delete and before the commit? Your code
| will put the counter back on 34706 after the commit.
| I see you put replace->num_counters = 0; on line 1702, this is wrong.
|

- --
Jens Götze

E-Mail: [email protected]


GPG/PGP-Public-Key: http://pgp.1in1.de/jens/publickey.asc
GPG-KeyFingerprint: 17D2 FDE6 BC58 DE9B DCF9  EC90 EE58 3E1F DA51 9E6B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCUmBH7lg+H9pRnmsRAqJDAKCEbzVGpXy5g0IBMaKJ2xiWXlIg1QCgo4Ly
s3XdXvmD9vekIH8GMNhVNJs=
=OWf6
-----END PGP SIGNATURE-----
libebtc-0.0.3.tar.gz (application/gzip, 21.5 KB) - not displayed
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.