From owner-freebsd-stable Thu Sep 6 10:57: 6 2001 Delivered-To: freebsd-stable@freebsd.org Received: from light.imasy.or.jp (light.imasy.or.jp [202.227.24.4]) by hub.freebsd.org (Postfix) with ESMTP id A08A737B40B; Thu, 6 Sep 2001 10:56:52 -0700 (PDT) Received: (from uucp@localhost) by light.imasy.or.jp (8.11.6+3.4W/8.11.6/light) with UUCP id f86Huom15450; Fri, 7 Sep 2001 02:56:50 +0900 (JST) (envelope-from ume@mahoroba.org) Received: from peace.mahoroba.org (IDENT:QSqg9icKI1oE+6S6i9Df+TnpTl3ZewiK/5DZGPVKGr5F9pAuqorVJfgGWnvCIlbR@peace.mahoroba.org [2001:200:301:0:200:f8ff:fe05:3eae]) (authenticated as ume with CRAM-MD5) by mail.mahoroba.org (8.11.6/8.11.6/chaos) with ESMTP/inet6 id f86HuPj12996; Fri, 7 Sep 2001 02:56:25 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Fri, 07 Sep 2001 02:56:28 +0900 (JST) Message-Id: <20010907.025628.71084661.ume@mahoroba.org> To: ru@FreeBSD.ORG Cc: mike@sentex.net, randys@amigo.net, freebsd-stable@FreeBSD.ORG Cc: ume@mahoroba.org Subject: Re: netstat & ipsec on 4.4RC [RESOLVED] From: Hajimu UMEMOTO In-Reply-To: <20010906202739.A69166@sunbay.com> References: <20010907.020823.74753156.ume@mahoroba.org> <20010906201515.C66759@sunbay.com> <20010906202739.A69166@sunbay.com> X-Mailer: xcite1.38> Mew version 1.95b119 on Emacs 20.7 / Mule 4.0 =?iso-2022-jp?B?KBskQjJWMWMbKEIp?= X-PGP-Public-Key: http://www.imasy.org/~ume/publickey.asc X-PGP-Fingerprint: 6B 0C 53 FC 5D D0 37 91 05 D0 B3 EF 36 9B 6A BC X-URL: http://www.imasy.org/~ume/ X-Operating-System: FreeBSD 5.0-CURRENT Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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'. -- 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