From owner-freebsd-net@FreeBSD.ORG Fri Jan 18 06:24:15 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4FA716A41A for ; Fri, 18 Jan 2008 06:24:15 +0000 (UTC) (envelope-from lstewart@room52.net) Received: from swin.edu.au (gpo2.cc.swin.edu.au [136.186.1.222]) by mx1.freebsd.org (Postfix) with ESMTP id 33C2513C474 for ; Fri, 18 Jan 2008 06:24:14 +0000 (UTC) (envelope-from lstewart@room52.net) Received: from [136.186.229.95] (lstewart.caia.swin.edu.au [136.186.229.95]) by swin.edu.au (8.13.6.20060614/8.13.1) with ESMTP id m0I5LqM4023238 for ; Fri, 18 Jan 2008 16:21:52 +1100 Message-ID: <47903770.1000200@room52.net> Date: Fri, 18 Jan 2008 16:21:52 +1100 From: Lawrence Stewart User-Agent: Thunderbird 1.5.0.9 (X11/20070123) MIME-Version: 1.0 To: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.1.9 X-Spam-Checker-Version: SpamAssassin 3.1.9 (2007-02-13) on gpo2.cc.swin.edu.au Subject: How to clear dummynet counters? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2008 06:24:15 -0000 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