Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Dec 2004 11:29:01 +0200
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        Colin Percival <colin.percival@wadham.ox.ac.uk>
Cc:        Jiawei Ye <leafy7382@gmail.com>
Subject:   Re: sockstat weirdness
Message-ID:  <20041206092901.GB7976@ip.net.ua>
In-Reply-To: <41B406F8.1000409@wadham.ox.ac.uk>
References:  <c21e92e204120522465e3a7b18@mail.gmail.com> <41B406F8.1000409@wadham.ox.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041206092901.GB7976>