Date: Fri, 18 Jan 2008 16:21:52 +1100 From: Lawrence Stewart <lstewart@room52.net> To: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: How to clear dummynet counters? Message-ID: <47903770.1000200@room52.net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47903770.1000200>