two freebsd 10 wlan0 oddities

Matthew Luckie mjl at luckie.org.nz
Tue Jul 15 17:59:08 UTC 2014


Hi,

Two oddities with wlan0:

From dmesg:

ath0: <Atheros 9285> mem 0xfeaf0000-0xfeafffff irq 18 at device 0.0 on pci3
[ath] AR9285 Main LNA config: LNA2
[ath] AR9285 Alt LNA config: LNA1
[ath] LNA diversity enabled, Diversity enabled
[ath] Enabling diversity for Kite
ath0: [HT] enabling HT modes
ath0: [HT] 1 stream STBC receive enabled
ath0: [HT] 1 RX streams; 1 TX streams
ath0: AR9285 mac 192.2 RF5133 phy 14.0
ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0

$ ifconfig wlan0
wlan0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:24:2c:36:90:55
        inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255 
        inet6 fe80::224:2cff:fe36:9055%wlan0 prefixlen 64 scopeid 0x7 
        inet6 2001:470:d:4de::1 prefixlen 64 
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
        status: running
        ssid mjl channel 11 (2462 MHz 11g) bssid 00:24:2c:36:90:55
        regdomain 106 indoor ecm authmode WPA privacy MIXED deftxkey 3
        TKIP 2:128-bit TKIP 3:128-bit txpower 20 scanvalid 60 protmode CTS wme
        burst dtimperiod 1 -dfs

First, since I updated to FreeBSD 10, the system does not seem to be
counting ifOutOctets, but does count ifInOctets.  Looking at it with
netstat:

$ netstat -I wlan0 -b
Name    Mtu Network       Address              Ipkts Ierrs Idrop     Ibytes    Opkts Oerrs     Obytes  Coll
wlan0  1500 <Link#7>      00:24:2c:36:90:55  2715328    56     0  930414649  3549300  2965          0     0
wlan0  1500 192.168.2.0   spandex             266442     -     -  183610706   186618     -   77852137     -
wlan0  1500 fe80::224:2cf fe80::224:2cff:fe        1     -     -         72       17     -       1304     -
wlan0  1500 2001:470:d:4d 2001:470:d:4de::1        0     -     -          0        1     -        136     -

Is this a bug, or am I polling the wrong interface for Obytes?  When I
look at ath0, it does not seem to be counting bytes out either.

Second, for whatever reason rtadvd does not seem to be advertising on
wlan0.  My /etc/rtadvd.conf:

wlan0:\
        :addrs#1:addr="2001:470:d:4d3::":prefixlen#64:tc=ether:

If I /etc/rc.d/rtadvd restart, then route advertisements begin
to flow.

$ sudo rtadvctl show
Password:
wlan0: flags=<UP,TRANSITIVE,PERSIST> status=<RA_SEND> mtu 1500
        DefaultLifetime: 30m
        MinAdvInterval/MaxAdvInterval: 3m20s/10m
        AdvLinkMTU: <none>, Flags: <none>, Preference: medium
        ReachableTime: 0s, RetransTimer: 0s, CurHopLimit: 64
        AdvIfPrefixes: yes
        Next RA send: Tue Jul 15 10:52:29 2014
        Last RA send: Tue Jul  8 16:00:38 2014

Thoughts?

Matthew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20140715/69010b4d/attachment.sig>


More information about the freebsd-net mailing list