From owner-freebsd-net@FreeBSD.ORG Thu Jan 20 15:26:21 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7DEC106564A for ; Thu, 20 Jan 2011 15:26:21 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from mail.mahoroba.org (ent.mahoroba.org [IPv6:2001:2f0:104:8010::1]) by mx1.freebsd.org (Postfix) with ESMTP id C291F8FC12 for ; Thu, 20 Jan 2011 15:26:20 +0000 (UTC) Received: from yuga.mahoroba.org (ume@yuga.mahoroba.org [IPv6:2001:2f0:104:8010:21b:d3ff:fe38:5381]) (user=ume mech=DIGEST-MD5 bits=0) by mail.mahoroba.org (8.14.4/8.14.4) with ESMTP/inet6 id p0KFQ0Mi002190 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 21 Jan 2011 00:26:06 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Fri, 21 Jan 2011 00:26:00 +0900 Message-ID: From: Hajimu UMEMOTO To: ticso@cicely.de In-Reply-To: <20110119024431.GC39356@cicely7.cicely.de> References: <20110119024431.GC39356@cicely7.cicely.de> User-Agent: xcite1.60> Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29qGyQoRCtXGyhC?=) APEL/10.8 Emacs/23.2 (i386-portbld-freebsd8.1) MULE/6.0 (HANACHIRUSATO) X-Operating-System: FreeBSD 8.2-PRERELEASE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (mail.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Fri, 21 Jan 2011 00:26:07 +0900 (JST) X-Virus-Scanned: clamav-milter 0.96.5 at asuka.mahoroba.org X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on asuka.mahoroba.org Cc: freebsd-net@freebsd.org, Bernd Walter Subject: Re: strange netstat -ian output X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2011 15:26:22 -0000 Hi, >>>>> On Wed, 19 Jan 2011 03:44:31 +0100 >>>>> Bernd Walter said: ticso> This is one of the blocks for this interface: ticso> re0 1500 2a02:21e0:16e 2a02:21e0:16e0:20 0 - - 1 - - ticso> ff02:1::2 (refs: 1) ticso> ff02:1::d (refs: 1) ticso> ff02:1::202 (refs: 1) ticso> ff02:1::1:ff00:103 (refs: 1) ticso> ff01:1::1 (refs: 1) ticso> ff02:1::2:6214:d648(refs: 1) ticso> ff02:1::1 (refs: 1) ticso> ff02:1::1:ff00:7992(refs: 1) ticso> 2a02:21e0:16e seems to be the truncated IP. ticso> The first line has 2a02:21e0:16e0:20 - I assume this should say 2a02:21e0:16e0:2000::103, ticso> but it is truncated as well... Yes, an IPv6 address is too long for the traditional netstat output format. :) ticso> Adding -W won't help on truncation. It seems -W is not handled, here. ticso> - ff02:1::2 ticso> is not just truncated - this obviously should be ff02::2. ticso> This '1' is part of every multicst address listed, although they ticso> don't belong there. ticso> By looking at systems with a large number of interfaces I came to the ticso> conclusion that this is the scope ID, but why is it listed as part ticso> of the IP? Yes, it is the internal scope address representation of the KAME IPv6 stack. It is hided in the output of 'netstat -rn'. But, it seems not for `netstat -ani'. There is no reason to not hide it for `netstat -ani', IMHO. So, I've just committed to hide it: http://svn.freebsd.org/viewvc/base?view=revision&revision=217642 Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/