Date: Fri, 07 Sep 2001 02:56:28 +0900 (JST) From: Hajimu UMEMOTO <ume@mahoroba.org> To: ru@FreeBSD.ORG Cc: ume@mahoroba.org Subject: Re: netstat & ipsec on 4.4RC [RESOLVED] Message-ID: <20010907.025628.71084661.ume@mahoroba.org> In-Reply-To: <20010906202739.A69166@sunbay.com> References: <20010907.020823.74753156.ume@mahoroba.org> <20010906201515.C66759@sunbay.com> <20010906202739.A69166@sunbay.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> 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'.
--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
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?20010907.025628.71084661.ume>
