From owner-svn-src-stable-8@FreeBSD.ORG Wed Jan 5 19:25:32 2011 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17CC2106564A; Wed, 5 Jan 2011 19:25:32 +0000 (UTC) (envelope-from gnn@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 05DDE8FC1A; Wed, 5 Jan 2011 19:25:32 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p05JPVDk088530; Wed, 5 Jan 2011 19:25:31 GMT (envelope-from gnn@svn.freebsd.org) Received: (from gnn@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p05JPVIf088528; Wed, 5 Jan 2011 19:25:31 GMT (envelope-from gnn@svn.freebsd.org) Message-Id: <201101051925.p05JPVIf088528@svn.freebsd.org> From: "George V. Neville-Neil" Date: Wed, 5 Jan 2011 19:25:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r217019 - stable/8/usr.bin/netstat X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2011 19:25:32 -0000 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); }