Subject: bin/21604: ifconfig -b tests wrong interface flag
To: None <>
From: None <>
List: netbsd-bugs
Date: 05/17/2003 10:28:26
>Number:         21604
>Category:       bin
>Synopsis:       ifconfig -b  tests wrong interface flag
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 17 00:29:02 UTC 2003
>Originator:     Luke Mewburn
>Release:        NetBSD 1.6T
System: NetBSD 1.6T NetBSD 1.6T (ARGO from GENERIC-$Revision: 1.558 $) #0: Wed May 14 19:27:36 EST 2003 i386
Architecture: i386
Machine: i386
	"ifconfig -l -b" is documented as:
		 -b (only list broadcast interfaces)

	However, this is implemented by skipping interfaces with the
	POINTTOPOINT or LOOPBACK flags set, not by only including
	interfaces with the BROADCAST flag set.  This means we get
	interfaces such as "stripN" in the "-b" output.

	Run "ifconfig -lb" on a GENERIC system and notice that strip0

	Change the tests in ifconfig(8) from
		! (ifa_flags & IFF_BROADCAST)