svn commit: r217019 - stable/8/usr.bin/netstat
George V. Neville-Neil
gnn at FreeBSD.org
Wed Jan 5 19:25:32 UTC 2011
Author: gnn
Date: Wed Jan 5 19:25:31 2011
New Revision: 217019
URL: http://svn.freebsd.org/changeset/base/217019
Log:
Update netstat to handle uint64_t based stats for -T.
Modified:
stable/8/usr.bin/netstat/inet.c
Directory Properties:
stable/8/usr.bin/netstat/ (props changed)
Modified: stable/8/usr.bin/netstat/inet.c
==============================================================================
--- stable/8/usr.bin/netstat/inet.c Wed Jan 5 18:52:30 2011 (r217018)
+++ stable/8/usr.bin/netstat/inet.c Wed Jan 5 19:25:31 2011 (r217019)
@@ -459,8 +459,10 @@ protopr(u_long off, const char *name, in
printf("%-14.14s ", buf1);
} else if (Tflag) {
if (istcp)
- printf("%6u %6u %6u ", tp->t_sndrexmitpack,
- tp->t_rcvoopack, tp->t_sndzerowin);
+ printf("%6ju %6ju %6u ",
+ (uintmax_t)tp->t_sndrexmitpack,
+ (uintmax_t)tp->t_rcvoopack,
+ tp->t_sndzerowin);
} else {
printf("%6u %6u ", so->so_rcv.sb_cc, so->so_snd.sb_cc);
}
More information about the svn-src-stable-8
mailing list