How to clear dummynet counters?

Lawrence Stewart lstewart at room52.net
Thu Jan 17 22:24:15 PST 2008


Hi All,

I'm working on a minor modification to dummynet to create a pipe option 
that allows arbitrarily specified packets to be dropped (as opposed to 
the current "plr" option that introduces random, uncontrollable packet 
loss). I can't seem to figure out how to clear/reset dummynet queue 
counters associated with a pipe, which are shown when "ipfw pipe list" 
is issued.

Example of counters I'm referring to:

... Tot_pkt/bytes Pkt/Byte Drp

... 2619   219996  0    0   4
    ^^^^   ^^^^^^  ^    ^   ^

The ipfw man page and source does not reveal anything obvious, and in 
fact indicates to me that the functionality does not exist at all. Yes, 
I can delete and recreate the pipe which has the same net effect, but 
it's not as useful as, say, a "ipfw pipe zero" option. It's entirely 
possible I've missed something though so I wanted to check before diving 
in and attempting to add support for this.

Cheers,
Lawrence


More information about the freebsd-net mailing list