Date: Mon, 30 Nov 1998 02:38:24 -0800 (PST) From: andrew@squiz.co.nz To: freebsd-gnats-submit@FreeBSD.ORG Subject: bin/8905: suggested change of 'ipfw show' layout Message-ID: <199811301038.CAA12629@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 8905 >Category: bin >Synopsis: suggested change of 'ipfw show' layout >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Nov 30 02:40:01 PST 1998 >Last-Modified: >Originator: Andrew McNaughton >Organization: NewsRoom Ltd >Release: 2.2.7-RELEASE >Environment: FreeBSD aniwa.sky 2.2.7-RELEASE FreeBSD 2.2.7-RELEASE #0: Wed Nov 18 17:41:28 NZDT 1998 andrew@aniwa.sky:/usr/PAO/sys/compile/aniwa-PAO-261098 i386 >Description: 'ipfw show' allocates 10 characters each to number of packets and number of bytes. Since number of bytes is reliably an order or three larger, I suggest changing the space allocated on screen. >How-To-Repeat: run up a few gigs of traffic matching 1 rule. Type 'ipfw show' >Fix: root@aniwa# diff ipfw.c.orig ipfw.c 182c182 < printf("%10lu %10lu ",chain->fw_pcnt,chain->fw_bcnt); --- > printf("%9lu %11lu ",chain->fw_pcnt,chain->fw_bcnt); >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811301038.CAA12629>