Subject: ifconfig "flags" and OACTIVE and wireless issues
To: None <netbsd-help@netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-help
Date: 07/13/2006 08:47:40
Where is the documentation for the ifconfig output "flags" (not command 
line options)?

When my wireless goes down, I often see "OACTIVE".

In if.h I see:
define      IFF_OACTIVE     0x0400 /* transmission in progress */

Where are these documented? What man page should they be in?

I am tring to figure out why my wireless connection often stops working 
(when another system with some other operating system continues to work). 
I am running 3.99.21 on i386 with:

ral0 at uhub2 port 2
ral0: Cisco-Linksys Wireless-G USB Network Adapter, rev 2.00/0.04, addr 2
ral0: MAC/BBP RT2570 (rev 0x03), RF RT2526, address 00:0c:41:6a:20:16
ral0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ral0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 
24Mbps 36Mbps 48Mbps 54Mbps
ral0: device timeout
ral0: could not transmit buffer: TIMEOUT
ral0: device timeout
ral0: could not transmit buffer: TIMEOUT
ral0: device timeout
ral0: could not transmit buffer: TIMEOUT
ral0: at uhub2 port 2 (addr 2) disconnected
ral0 detached

**Maybe that is when I unplugged it and plugged it back in to see if it 
would help.

ral0 at uhub2 port 2
ral0: Cisco-Linksys Wireless-G USB Network Adapter, rev 2.00/0.04, addr 2
ral0: MAC/BBP RT2570 (rev 0x03), RF RT2526, address 00:0c:41:6a:20:16
ral0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ral0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 
24Mbps 36Mbps 48Mbps 54Mbps

It is a Linksys wireless G.

ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        ssid Laser nwkey *****
        powersave off
        bssid 00:40:05:24:89:fd chan 6
        address: 00:0c:41:6a:20:16
        media: IEEE802.11 autoselect (DS11 mode 11g)
        status: active
        inet 192.168.0.129 netmask 0xffffff00 broadcast 192.168.0.255
        inet6 fe80::20c:41ff:fe6a:2016%ral0 prefixlen 64 scopeid 0x3


(No OACTIVE now but not working either ... a moment later and now it does 
work :)

What tools or techniques can be used to figure out why it sometimes works 
and sometimes does not?

- Jeremy C. Reed