Subject: bin/31450: sockstat doesn't work on systems without INET6
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <krank@xii.mine.nu>
List: netbsd-bugs
Date: 10/02/2005 22:14:01
>Number: 31450
>Category: bin
>Synopsis: sockstat doesn't work on systems without INET6
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 02 22:14:00 +0000 2005
>Originator: KRANK
>Release: NetBSD-3.0BETA
>Organization:
>Environment:
NetBSD xii.mine.nu 3.0_BETA NetBSD 3.0_BETA (adrift) #2: Sat Oct 1 19:12:51 PDT 2005 krank@xii.mine.nu:/usr/build/i386.obj/sys/arch/i386/compile/adrift i386
>Description:
When using a custom kernel that has INET6 commented out, sockstat will not work. Here's the error message:
$ sockstat
sockstat: sysctlnametomib: net.inet6.tcp6.pcblist: No such file or directory
>How-To-Repeat:
1) compile and install a custom kernel without INET6 enabled
2) run sockstat
>Fix:
It appears a fix has already been applied to -current over one month ago. The version from -current compiles on my machine and runs without a problem.