sockstat weirdness

Ruslan Ermilov ru at FreeBSD.org
Mon Dec 6 01:29:02 PST 2004


On Sun, Dec 05, 2004 at 11:15:04PM -0800, Colin Percival wrote:
> Jiawei Ye wrote:
> >leafy at chihiro:~$ sockstat
> >sockstat: sysctlbyname(): No such file or directory
> >
> >What have I missed here?
> 
> 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.
> 
> 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?
> 
I've committed a better fix in revision 1.12.  Thanks!


Cheers,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20041206/d5d54949/attachment.bin


More information about the freebsd-current mailing list