Date: Fri, 7 Sep 2001 09:45:21 +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: <20010907094521.B42137@sunbay.com> In-Reply-To: <20010907.025628.71084661.ume@mahoroba.org>; from ume@mahoroba.org on Fri, Sep 07, 2001 at 02:56:28AM %2B0900 References: <20010907.020823.74753156.ume@mahoroba.org> <20010906201515.C66759@sunbay.com> <20010906202739.A69166@sunbay.com> <20010907.025628.71084661.ume@mahoroba.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 07, 2001 at 02:56:28AM +0900, Hajimu UMEMOTO wrote: > >>>>> On Thu, 6 Sep 2001 20:27:39 +0300 > >>>>> Ruslan Ermilov <ru@FreeBSD.ORG> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010907094521.B42137>