From owner-freebsd-current@FreeBSD.ORG Thu Oct 16 22:46:42 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57F171065688 for ; Thu, 16 Oct 2008 22:46:42 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (delphij-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id 009358FC13 for ; Thu, 16 Oct 2008 22:46:42 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [211.166.10.233]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTPS id 27F3528449 for ; Fri, 17 Oct 2008 06:46:41 +0800 (CST) Received: from localhost (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id C0C24EB15FA; Fri, 17 Oct 2008 06:46:40 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by localhost (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with ESMTP id q92SNOwLWvje; Fri, 17 Oct 2008 06:46:35 +0800 (CST) Received: from charlie.delphij.net (adsl-76-237-33-62.dsl.pltn13.sbcglobal.net [76.237.33.62]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id F2262EB1520; Fri, 17 Oct 2008 06:46:34 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:subject:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=OLmPJjyrkKZeE5bY/4rBndrQ+DKlD8/F+TSDg6mZSthdJBc0ATtTrvIMOw1Qek6Cl qh73gdUpq6UCgn3UCtYcA== Message-ID: <48F7C447.8070308@delphij.net> Date: Thu, 16 Oct 2008 15:46:31 -0700 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.17 (X11/20080928) MIME-Version: 1.0 To: FreeBSD Current X-Enigmail-Version: 0.95.7 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: sockstat -l for kernel listen sockets? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Oct 2008 22:46:42 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, It looks like that we can not use sockstat -l to show kernel listening sockets? [lixin@netstorage] ~> sockstat -4l | grep 804 [lixin@netstorage] ~> netstat -an | grep LISTEN tcp4 0 0 *.22 *.* LISTEN tcp6 0 0 *.22 *.* LISTEN tcp4 0 0 *.804 *.* LISTEN tcp6 0 0 *.776 *.* LISTEN tcp6 0 0 *.2049 *.* LISTEN tcp6 0 0 *.777 *.* LISTEN tcp4 0 0 *.778 *.* LISTEN tcp4 0 0 *.2049 *.* LISTEN tcp4 0 0 *.832 *.* LISTEN tcp6 0 0 *.832 *.* LISTEN tcp4 0 0 *.111 *.* LISTEN tcp6 0 0 *.111 *.* LISTEN tcp6 0 0 ::1.953 *.* LISTEN tcp4 0 0 127.0.0.1.953 *.* LISTEN tcp4 0 0 127.0.0.1.53 *.* LISTEN [lixin@netstorage] ~> rpcinfo -p | grep 804 100021 0 tcp 804 nlockmgr 100021 1 tcp 804 nlockmgr 100021 3 tcp 804 nlockmgr 100021 4 tcp 804 nlockmgr Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkj3xEcACgkQi+vbBBjt66A8RwCgtKUYyUwJ22IW8BX+qu9cr+dz n+QAoLWpx/xkZUQPzypajmrU3mYjs1Ff =IHR4 -----END PGP SIGNATURE-----