From owner-freebsd-stable Thu Sep 6 10:29:54 2001 Delivered-To: freebsd-stable@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 9A84837B403 for ; Thu, 6 Sep 2001 10:29:36 -0700 (PDT) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f86HRdm69996; Thu, 6 Sep 2001 20:27:39 +0300 (EEST) (envelope-from ru) Date: Thu, 6 Sep 2001 20:27:39 +0300 From: Ruslan Ermilov To: Hajimu UMEMOTO 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> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010906201515.C66759@sunbay.com>; from ru@FreeBSD.org on Thu, Sep 06, 2001 at 08:15:15PM +0300 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 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