From owner-freebsd-stable Thu Sep 6 23:46:15 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 A1CE537B401 for ; Thu, 6 Sep 2001 23:46:09 -0700 (PDT) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f876jLL42942; Fri, 7 Sep 2001 09:45:21 +0300 (EEST) (envelope-from ru) Date: Fri, 7 Sep 2001 09:45:21 +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: <20010907094521.B42137@sunbay.com> References: <20010907.020823.74753156.ume@mahoroba.org> <20010906201515.C66759@sunbay.com> <20010906202739.A69166@sunbay.com> <20010907.025628.71084661.ume@mahoroba.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010907.025628.71084661.ume@mahoroba.org>; from ume@mahoroba.org on Fri, Sep 07, 2001 at 02:56:28AM +0900 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 On Fri, Sep 07, 2001 at 02:56:28AM +0900, Hajimu UMEMOTO wrote: > >>>>> On Thu, 6 Sep 2001 20:27:39 +0300 > >>>>> Ruslan Ermilov said: > > ru> Ah, got it! The old netstat(1) syntax was too way broken, and was > ru> since fixed. Please read the beginning of the netstat(1) manpage > ru> which describes 8 forms of displays. > > ru> ``netstat -p ipsec'' tells it to display the table of active > ru> sockets for the ``ipsec'' protocol, but there's no PCB table > ru> for sockets of this type. > > ru> To get the protocol statistics, you should use the fourth form, > ru> ``netstat -s -p ipsec''. Add to this yet another -s to suppress > ru> zero stats. > > ru> As a bonuce, it's now possible to ``netstat -p udp'', to list > ru> the active sockets of type UDP. Previous versions answered to > ru> this with protocol statistics for UDP, as well as with -s -p udp. > > ru> For additional details, please see the log for main.c,v 1.45. > > I see. Thanks, Ruslan. > I'm still wandering if having compatibility with older version of > netstat is better. While ipsec doesn't have PCB, `netstat -p ipsec' > can behave as `netstat -s -p ipsec'. > Oh no, please. The old syntax was a whole mess, and I still did not finish fixing it. At some point, someone may decide to implement net.inet.ipsec.pcblist, and make it visible with `netstat -p ipsec'. Cheers, -- 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