Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jan 2011 19:25:31 +0000 (UTC)
From:      "George V. Neville-Neil" <gnn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r217019 - stable/8/usr.bin/netstat
Message-ID:  <201101051925.p05JPVIf088528@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101051925.p05JPVIf088528>