From owner-freebsd-current@FreeBSD.ORG Mon Dec 6 09:29:02 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BD8516A4CE for ; Mon, 6 Dec 2004 09:29:02 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6000D43D2D for ; Mon, 6 Dec 2004 09:29:01 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id iB69T0tM065740; Mon, 6 Dec 2004 11:29:00 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 35822-02; Mon, 6 Dec 2004 11:28:59 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id iB69Sx8p065737 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 6 Dec 2004 11:28:59 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id iB69T2G0008195; Mon, 6 Dec 2004 11:29:02 +0200 (EET) (envelope-from ru) Date: Mon, 6 Dec 2004 11:29:01 +0200 From: Ruslan Ermilov To: Colin Percival Message-ID: <20041206092901.GB7976@ip.net.ua> References: <41B406F8.1000409@wadham.ox.ac.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LwW0XdcUbUexiWVK" Content-Disposition: inline In-Reply-To: <41B406F8.1000409@wadham.ox.ac.uk> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: freebsd-current@FreeBSD.org cc: Jiawei Ye Subject: Re: sockstat weirdness X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Dec 2004 09:29:02 -0000 --LwW0XdcUbUexiWVK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 05, 2004 at 11:15:04PM -0800, Colin Percival wrote: > Jiawei Ye wrote: > >leafy@chihiro:~$ sockstat > >sockstat: sysctlbyname(): No such file or directory > > > >What have I missed here? >=20 > You haven't missed anything, it's broken. In revision 1.11 of > src/usr.bin/sockstat/sockstat.c code was added which uses the > net.inet.divert.pcblist sysctl. Unfortunately, this might not > exist, so sockstat(8) gets legitimately unhappy. >=20 > I'd guess that the right solution would be to replace line 226 > err(1, "sysctlbyname()"); > with > goto out; > but I'm not sure; ru, could you tell me if this is correct and/or > fix it yourself? >=20 I've committed a better fix in revision 1.12. Thanks! Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --LwW0XdcUbUexiWVK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBtCZdqRfpzJluFF4RAg9BAJ9nJwgwAagIuK0X80+LXiw6psiLYgCfXmSj hPU71pZHe6/3u3urxgB8aIA= =v2Jk -----END PGP SIGNATURE----- --LwW0XdcUbUexiWVK--