[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-ipfw
Subject: bin/47196: ipfw won't format correctly output from 'ipfw show' command
From: Giorgos Keramidas <keramida () FreeBSD ! ORG>
Date: 2003-01-21 1:33:55
[Download RAW message or body]
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-ipfw" in the body of the message
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic