NetBSD Problem Report #26378

Received: (qmail 5487 invoked by uid 605); 20 Jul 2004 13:38:19 -0000
Message-Id: <200407201338.i6KDcE4Q017984@Plectere.com>
Date: Tue, 20 Jul 2004 06:38:14 -0700 (PDT)
From: paul@Plectere.com
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: paul@Plectere.com
To: gnats-bugs@gnats.NetBSD.org
Subject: wlanctl reports devices in the reverse order of ifconfig
X-Send-Pr-Version: 3.95

>Number:         26378
>Category:       bin
>Synopsis:       wlanctl reports devices in the reverse order of ifconfig
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 20 13:39:00 +0000 2004
>Closed-Date:    
>Last-Modified:  
>Originator:     Paul Shupak
>Release:        NetBSD 2.0G
>Organization:

>Environment:


System: NetBSD svcs 2.0G NetBSD 2.0G (SVCS) #239: Mon Jul 19 03:54:18 PDT 2004 root@svcs:/sys/arch/i386/compile/SVCS i386
Architecture: i386
Machine: i386
>Description:

	Faced with multiple devices "wlanctl" appears to order its output
in the reverse of the fashion used by ifconfig.
	Example below (in "repeat" section):

>How-To-Repeat:


	% wlanctl -a
	ath3: mac 00:00:00:00:00:00 bss 00:00:00:00:00:00
		node flags 0001<bss>
		ess <>
		chan 0 freq 0MHz flags 0000
		capabilities 0000
		beacon-interval 0 TU tsft 0 us
		rates
		assoc-id 0 assoc-failed 0 inactivity 0s
		rssi 0 txseq 0 rxseq 0
	ath2: mac 00:00:00:00:00:00 bss 00:00:00:00:00:00
		node flags 0001<bss>
		ess <>
		chan 0 freq 0MHz flags 0000
		capabilities 0000
		beacon-interval 0 TU tsft 0 us
		rates
		assoc-id 0 assoc-failed 0 inactivity 0s
		rssi 0 txseq 0 rxseq 0
	ath1: mac 00:00:00:00:00:00 bss 00:00:00:00:00:00
		node flags 0001<bss>
		ess <>
		chan 0 freq 0MHz flags 0000
		capabilities 0000
		beacon-interval 0 TU tsft 0 us
		rates
		assoc-id 0 assoc-failed 0 inactivity 0s
		rssi 0 txseq 0 rxseq 0
	ath0: mac 00:00:00:00:00:00 bss 00:00:00:00:00:00
		node flags 0001<bss>
		ess <>
		chan 0 freq 0MHz flags 0000
		capabilities 0000
		beacon-interval 0 TU tsft 0 us
		rates
		assoc-id 0 assoc-failed 0 inactivity 0s
		rssi 0 txseq 0 rxseq 0

	%
	% ifconfig -a
	fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
		address: 00:03:47:f2:b9:4d
		media: Ethernet autoselect (100baseTX)
		status: active
		inet 199.184.245.66 netmask 0xfffffff0 broadcast 199.184.245.79
		inet6 fe80::203:47ff:fef2:b94d%fxp0 prefixlen 64 scopeid 0x1
	ath0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
		ssid ""
		powersave off
		address: 00:0b:6b:31:63:dc
		media: IEEE802.11 autoselect
		status: no network
	ath1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
		ssid ""
		powersave off
		address: 00:0d:88:f5:3f:10
		media: IEEE802.11 autoselect
		status: no network
	lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33196
		inet 127.0.0.1 netmask 0xff000000
		inet6 ::1 prefixlen 128
		inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
	fw0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
		address: 00:01:08:00:38:00:6d:09
	ath2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
		ssid ""
		powersave off
		address: 00:20:a6:47:84:64
		media: IEEE802.11 autoselect
		status: no network
	ath3: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
		ssid ""
		powersave off
		address: 00:09:5b:c4:0d:c5
		media: IEEE802.11 autoselect
		status: no network
>Fix:

	No clue, I haven't looked at the code, but traversing the (probable)
	list in the opposite order should "fix" what I want.
>Release-Note:
>Audit-Trail:
>Unformatted:
 	wlanctl reports devices in the reverse order of ifconfig

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.