Subject: bin/2365: netstat -g displays crap when no vif in kernel
To: None <gnats-bugs@NetBSD.ORG>
From: None <>
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
>Originator:     Heiko W.Rupp
Private Site
>Release:        1.1
System: NetBSD 1.1 NetBSD 1.1 (SNERT) #62: Fri Apr 12 09:33:40 MET DST 1996 i386

	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            1042m       0 

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