Subject: bin/5400: Bug bin/2365 is alive again (netstat -g woes)
To: None <gnats-bugs@gnats.netbsd.org>
From: Heiko W.Rupp <hwr@pilhuhn.de>
List: netbsd-bugs
Date: 05/04/1998 08:48:16
>Number: 5400
>Category: bin
>Synopsis: Bug bin/2365 is alive again (netstat -g woes)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun May 3 23:50:00 1998
>Last-Modified:
>Originator: Heiko W.Rupp
>Organization:
private
>Release: NetBSD-1.3.1
>Environment:
System: NetBSD snert 1.3.1 NetBSD 1.3.1 (SNERT) #1: Thu Apr 30 19:50:31 MEST 1998 hwr@snert:/usr/src/sys/arch/i386/compile/SNERT i386
>Description:
netstat -g displays crap when no mrouted is running and therefore
no multicast vifs are in the kernel:
snert# netstat -g |head
netstat: kvm_read: Bad address
[snip]
netstat: kvm_read: Bad address
Virtual Interface Table is empty
Multicast Forwarding Cache
Hash Origin Mcastgroup Traffic In-Vif
Out-Vifs/Forw-ttl
0 0.0.0.0 0.0.0.0 0 0
1 0.0.0.0 0.0.0.0 0 0
or
snert# !!
netstat -g | head
netstat: kvm_read: Bad address
[snip]
Virtual Interface Table is empty
Multicast Forwarding Cache
Hash Origin Mcastgroup Traffic In-Vif
Out-Vifs/Forw-ttl
0 0.0.0.0 0.0.0.0 0 0
1 0.0.0.0 0.0.0.0 0 0
2 0.232.124.240 239.190.173.222 1856m 48879 0/173
>How-To-Repeat:
Run netstat -g when MROUTING defined in the kernel, but no mrouted is
running. I guess at least one physical interface with MULTICAST
enabled must be present in the system as in
snert# ifconfig -a
we0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
>Fix:
>Audit-Trail:
>Unformatted: