Date: Sat, 15 Jul 2006 12:53:47 +0900 From: "George V. Neville-Neil" <gnn@neville-neil.com> To: Brooks Davis <brooks@one-eyed-alien.net> Cc: Gary Palmer <gpalmer@FreeBSD.org>, Julian Elischer <julian@elischer.org>, current@FreeBSD.org Subject: Re: netstat and ipv6 Message-ID: <m2wtaffrqs.wl%gnn@neville-neil.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m2wtaffrqs.wl%gnn>
