From owner-freebsd-current@FreeBSD.ORG Sat Jul 15 03:54:06 2006 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADB1E16A4E5; Sat, 15 Jul 2006 03:54:06 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from mrout1-b.corp.dcn.yahoo.com (mrout1-b.corp.dcn.yahoo.com [216.109.112.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15C0443D46; Sat, 15 Jul 2006 03:54:05 +0000 (GMT) (envelope-from gnn@neville-neil.com) Received: from minion.local.neville-neil.com (proxy8.corp.yahoo.com [216.145.48.13]) by mrout1-b.corp.dcn.yahoo.com (8.13.6/8.13.6/y.out) with ESMTP id k6F3rlLl077713; Fri, 14 Jul 2006 20:53:48 -0700 (PDT) Date: Sat, 15 Jul 2006 12:53:47 +0900 Message-ID: From: "George V. Neville-Neil" To: Brooks Davis In-Reply-To: <20060714224620.GA79721@lor.one-eyed-alien.net> References: <44B8171A.2070209@elischer.org> <20060714222239.GA6444@in-addr.com> <44B81D3F.2030302@elischer.org> <20060714224620.GA79721@lor.one-eyed-alien.net> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.0.50 (i386-apple-darwin8.6.1) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: Gary Palmer , Julian Elischer , current@FreeBSD.org Subject: Re: netstat and ipv6 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Jul 2006 03:54:06 -0000 At Fri, 14 Jul 2006 17:46:20 -0500, brooks wrote: > > I put forward the following patch: > > nutmeg:rjulian 33] cvs diff -u > > cvs server: Diffing . > > Index: inet6.c > > =================================================================== > > RCS file: /usr/local/cvsroot/freebsd/src/usr.bin/netstat/inet6.c,v > > retrieving revision 1.25 > > diff -u -r1.25 inet6.c > > --- inet6.c 28 Jul 2004 16:03:12 -0000 1.25 > > +++ inet6.c 14 Jul 2006 22:39:08 -0000 > > @@ -1030,7 +1030,9 @@ > > mib[3] = IPV6CTL_RIP6STATS; > > l = sizeof(rip6stat); > > if (sysctl(mib, 4, &rip6stat, &l, NULL, 0) < 0) { > > - perror("Warning: sysctl(net.inet6.ip6.rip6stats)"); > > + /* Just shut up if the kernel doesn't have ipv6. */ > > + if (errno != ENOENT) > > + perror("Warning: sysctl(net.inet6.ip6.rip6stats)"); > > return; > > } > > > > nutmeg:rjulian 34] pwd > > /build/master/usr/src/usr.bin/netstat > > nutmeg:rjulian 35] > > That looks like the right thing to me. I concur. Later, George