Subject: bin/2365: netstat -g displays crap when no vif in kernel
To: None <gnats-bugs@NetBSD.ORG>
From: None <hwr@pilhuhn.de>
List: netbsd-bugs
Date: 05/02/1996 14:11:22
>Number:         2365
>Category:       bin
>Synopsis:       netstat -g displays crap when no vif in kernel
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May  2 08:35:01 1996
>Last-Modified:
>Originator:     Heiko W.Rupp
>Organization:
Private Site
>Release:        1.1
>Environment:
System: NetBSD snert.pilhuhn.de 1.1 NetBSD 1.1 (SNERT) #62: Fri Apr 12 09:33:40 MET DST 1996 hwr@snert.pilhuhn.de:/4pil/hwr/sys/arch/i386/compile/SNERT i386


>Description:
	netstat -g displays crap when no mrouted is running and therefore
	no virtual interfaces defined.

	netstat finds out, that there are no vifs, but does not act upon
	it but tries to read the forwarding table:

quaak!2> netstat -g

Virtual Interface Table is empty

Multicast Forwarding Cache
 Hash  Origin           Mcastgroup       Traffic  In-Vif  Out-Vifs/Forw-ttl
netstat: kvm_read kvm_read: Bad address
    0  0.0.0.0          0.0.0.0            1042m       0 
^C

>How-To-Repeat:
	On a 1.1 machine just run netstat -g when no mrouted is running.
>Fix:
	Stop output after finding out that there are no vifs.

>Audit-Trail:
>Unformatted: