From owner-svn-src-all@FreeBSD.ORG Tue Jul 12 18:17:36 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id 94D5F1065674; Tue, 12 Jul 2011 18:17:36 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 65-241-43-4.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id CEF7B179EEC; Tue, 12 Jul 2011 18:17:34 +0000 (UTC) Message-ID: <4E1C8FBD.5050705@FreeBSD.org> Date: Tue, 12 Jul 2011 11:17:33 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20110706 Thunderbird/5.0 MIME-Version: 1.0 To: Michael Tuexen References: <201107121147.p6CBl8hY037547@svn.freebsd.org> In-Reply-To: <201107121147.p6CBl8hY037547@svn.freebsd.org> X-Enigmail-Version: 1.2pre OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r223947 - head/usr.bin/netstat X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2011 18:17:36 -0000 On 07/12/2011 04:47, Michael Tuexen wrote: > Author: tuexen > Date: Tue Jul 12 11:47:08 2011 > New Revision: 223947 > URL: http://svn.freebsd.org/changeset/base/223947 > > Log: > Truncate link addresses like it is done for any > other address type. The more IPv6 is used the less optimal this truncation becomes ... > MFC after: 4 weeks > > Modified: > head/usr.bin/netstat/if.c > > Modified: head/usr.bin/netstat/if.c > ============================================================================== > --- head/usr.bin/netstat/if.c Tue Jul 12 10:07:07 2011 (r223946) > +++ head/usr.bin/netstat/if.c Tue Jul 12 11:47:08 2011 (r223947) > @@ -394,7 +394,7 @@ intpr(int interval1, u_long ifnetaddr, v > n = cp - sa->sa_data + 1; > cp = sa->sa_data; > hexprint: > - while (--n >= 0) > + while ((--n >= 0) && (m < 30)) > m += printf("%02x%c", *cp++ & 0xff, > n > 0 ? ':' : ' '); > m = 32 - m; > -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/