Subject: bin/33615: netstat (using sysctl) fails with -i flag
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <gcw@primenet.com.au>
List: netbsd-bugs
Date: 06/01/2006 04:30:00
>Number: 33615
>Category: bin
>Synopsis: netstat (using sysctl) fails with -i flag
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 01 04:30:00 +0000 2006
>Originator: Geoff C. Wing
>Release: NetBSD 3.99.20 (2006-06-01)
>Organization:
>Environment:
System: NetBSD g.primenet.com.au 3.99.20 NetBSD 3.99.20 (G) #0: Thu Jun 1 11:24:14 EST 2006 gcw@g.primenet.com.au:/usr/netbsd/src/sys/arch/i386/compile/G i386
Architecture: i386
Machine: i386
>Description:
% netstat -i
ifnet: symbol not defined
because intpr() is called with ifnetaddr == 0 (which comes
from nl[N_IFNET].n_value)
Making use_sysctl always equal zero properly fills the nlist's
nvalues with a kvm_nlist() call.
I don't know how the sysctl version is supposed to be filling
this in - the code for this seems to be missing.
>How-To-Repeat:
As above
>Fix:
?