Date: Thu, 6 Sep 2001 20:27:39 +0300 From: Ruslan Ermilov <ru@FreeBSD.ORG> To: Hajimu UMEMOTO <ume@mahoroba.org> Cc: mike@sentex.net, randys@amigo.net, freebsd-stable@FreeBSD.ORG Subject: Re: netstat & ipsec on 4.4RC [RESOLVED] Message-ID: <20010906202739.A69166@sunbay.com> In-Reply-To: <20010906201515.C66759@sunbay.com>; from ru@FreeBSD.org on Thu, Sep 06, 2001 at 08:15:15PM %2B0300 References: <3B978EB8.5000706@amigo.net> <5.1.0.14.0.20010906105649.04684060@marble.sentex.ca> <20010907.020823.74753156.ume@mahoroba.org> <20010906201515.C66759@sunbay.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Ah, got it! The old netstat(1) syntax was too way broken, and was since fixed. Please read the beginning of the netstat(1) manpage which describes 8 forms of displays. ``netstat -p ipsec'' tells it to display the table of active sockets for the ``ipsec'' protocol, but there's no PCB table for sockets of this type. To get the protocol statistics, you should use the fourth form, ``netstat -s -p ipsec''. Add to this yet another -s to suppress zero stats. As a bonuce, it's now possible to ``netstat -p udp'', to list the active sockets of type UDP. Previous versions answered to this with protocol statistics for UDP, as well as with -s -p udp. For additional details, please see the log for main.c,v 1.45. Cheers, On Thu, Sep 06, 2001 at 08:15:15PM +0300, Ruslan Ermilov wrote: > On Fri, Sep 07, 2001 at 02:08:23AM +0900, Hajimu UMEMOTO wrote: > > >>>>> On Thu, 06 Sep 2001 10:57:54 -0400 > > >>>>> Mike Tancsa <mike@sentex.net> said: > > > > mike> At 08:56 AM 9/6/01 -0600, Randy Smith wrote: > > >Hi all, > > > > > >I'm getting the following when I try to get the network stat for ipsec: > > > > > >pop2# netstat -p ipsec > > >ipsec: no PCB routine > > mike> Yes, this seems broken for me as well :-( The only old machine I have with > > mike> ipsec is a 4.3 from June 19th, and it works as expected. So somewhere > > mike> between then and now it got broken. > > > > It seems > > http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/netstat/main.c.diff?r1=1.34.2.6&r2=1.34.2.7 > > has some problem. The message `no PCB routine' was newly introduced > > by this mfc. > > > I will look at it tomorrow, OK? > > > -- > Ruslan Ermilov Oracle Developer/DBA, > ru@sunbay.com Sunbay Software AG, > ru@FreeBSD.org FreeBSD committer, > +380.652.512.251 Simferopol, Ukraine > > http://www.FreeBSD.org The Power To Serve > http://www.oracle.com Enabling The Information Age -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010906202739.A69166>