From owner-freebsd-audit Wed Jan 22 19:40:54 2003 Delivered-To: freebsd-audit@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86D9937B401 for ; Wed, 22 Jan 2003 19:40:52 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A0A443F1E for ; Wed, 22 Jan 2003 19:40:51 -0800 (PST) (envelope-from keramida@freebsd.org) Received: from gothmog.gr (patr530-b192.otenet.gr [212.205.244.200]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id h0N3eX58019757 for ; Thu, 23 Jan 2003 05:40:42 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id h0N3eM7I000902 for ; Thu, 23 Jan 2003 05:40:22 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from giorgos@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id h0N3eMaK000901 for freebsd-audit@freebsd.org; Thu, 23 Jan 2003 05:40:22 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Thu, 23 Jan 2003 05:40:22 +0200 From: Giorgos Keramidas To: freebsd-audit@freebsd.org Subject: (fwd) bin/47196: ipfw won't format correctly output from 'ipfw show' command Message-ID: <20030123034022.GA587@gothmog.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi folks, I've sent the following 2 days ago to ipfw@ but received no reply. Does anyone feel like testing/reviewing or committing this? This change should be all we need to fix & close PR bin/47196 :-) ----- forwarded message ----- Date: Tue, 21 Jan 2003 03:33:55 +0200 From: Giorgos Keramidas Subject: bin/47196: ipfw won't format correctly output from 'ipfw show' command To: ipfw@freebsd.org The attached patch changes ipfw2 to print packet and byte counts with a wider format, that fixes the problem described in PR bin/47196. Do you think it's ok to commit this to CURRENT? --- patch start --- Index: ipfw2.c =================================================================== RCS file: /home/ncvs/src/sbin/ipfw/ipfw2.c,v retrieving revision 1.21 diff -u -r1.21 ipfw2.c --- ipfw2.c 12 Jan 2003 03:31:10 -0000 1.21 +++ ipfw2.c 21 Jan 2003 01:30:03 -0000 @@ -823,7 +823,7 @@ printf("%05u ", rule->rulenum); if (do_acct) - printf("%10qu %10qu ", rule->pcnt, rule->bcnt); + printf("%20qu %20qu ", rule->pcnt, rule->bcnt); if (do_time) { char timestr[30]; @@ -1212,7 +1212,7 @@ return; } - printf("%05d %10qu %10qu (%ds)", + printf("%05d %20qu %20qu (%ds)", d->rulenum, d->pcnt, d->bcnt, d->expire); switch (d->dyn_type) { case O_LIMIT_PARENT: --- patch end --- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message