Subject: bin/26378: wlanctl reports devices in the reverse order of ifconfig
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <paul@Plectere.com>
List: netbsd-bugs
Date: 07/20/2004 06:38:14
>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 UTC 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