HEADSUP: ifconfig updated
Tom Jensen
tom at motd.dk
Wed Dec 8 12:36:00 PST 2004
Any chances that these updates (ifconfig, ath, net80211) could be
applied/working with the 5.3 sources?
- T
-----Original Message-----
From: owner-freebsd-current at freebsd.org
[mailto:owner-freebsd-current at freebsd.org] On Behalf Of Sam Leffler
Sent: 8. december 2004 20:43
To: freebsd-current at freebsd.org
Subject: HEADSUP: ifconfig updated
I just committed a major overhaul of ifconfig. If you see any regression in
backwards compatiblity please let me know. I've been running it for a while
w/o issues but the command line parsing was completely redone and I didn't
test all the possible operations (e.g. ipv6 tunnel stuff).
The main visible change is in the handling of 802.11 interface.s You may
see many new parameters and there are many new controls for use with the
revised
net80211 layer and the update ath driver. There are also some experimental
commands for listing status for a device that might move to a different
program (based on feedback). For example when operating as a station you
can list the set of access points found in the last scan with
minky# ifconfig ath0 list scan
SSID BSSID CHAN RATE S:N INT CAPS
TestAP 00:02:6f:01:86:2a 3 11M 24:0 100 E
CurryNet1 00:09:5b:9f:0c:52 7 11M 1:0 100 Ec
samb 00:03:7f:00:c8:32 11 54M 57:0 100 ES
sama 00:03:7f:00:c8:31 60 54M 57:0 100 E
When operating as an access point or in adhoc mode you can get a similar
listing of the stations/neighbors using "list sta".
The default status for an 802.11 device is now a bit more minimal. To get
complete status there is a new -v option; for example:
minky# ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 10.0.0.142 netmask 0xffffff00 broadcast 10.0.0.255
ether 00:03:7f:04:a0:a4
media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/54Mbps)
status: associated
ssid samb channel 11 bssid 00:03:7f:00:c8:32
authmode OPEN privacy OFF txpowmax 48 protmode CTS wme bintval 100
minky# ifconfig -v ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 10.0.0.142 netmask 0xffffff00 broadcast 10.0.0.255
ether 00:03:7f:04:a0:a4
media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/54Mbps)
status: associated
ssid samb channel 11 (2462) bssid 00:03:7f:00:c8:32
authmode OPEN privacy OFF deftxkey UNDEF powersavemode OFF
powersavesleep 100 txpowmax 48 txpower 60 rtsthreshold 2312 protmode
CTS
wme roaming AUTO bintval 100
AC_BE cwmin 4 cwmax 10 aifs 3 txopLimit 0 -acm ack
cwmin 4 cwmax 10 aifs 3 txopLimit 0 -acm
AC_BK cwmin 4 cwmax 10 aifs 7 txopLimit 0 -acm ack
cwmin 4 cwmax 10 aifs 7 txopLimit 0 -acm
AC_VI cwmin 3 cwmax 4 aifs 2 txopLimit 94 -acm ack
cwmin 3 cwmax 4 aifs 2 txopLimit 94 -acm
AC_VO cwmin 2 cwmax 3 aifs 2 txopLimit 47 -acm ack
cwmin 2 cwmax 3 aifs 2 txopLimit 47 -acm
Finally, you can get some device capability-style information. To see the
set of available channels a device is capable of using, use "list chan":
minky# ifconfig ath0 list chan
Channel 1 : 2412 Mhz 11g Channel 48 : 5240 Mhz 11a
Channel 2 : 2417 Mhz 11g Channel 50 : 5250 Mhz 11a Turbo
Channel 3 : 2422 Mhz 11g Channel 52 : 5260 Mhz 11a
Channel 4 : 2427 Mhz 11g Channel 56 : 5280 Mhz 11a
Channel 5 : 2432 Mhz 11g Channel 58 : 5290 Mhz 11a Turbo
Channel 6 : 2437 Mhz 11g Channel 60 : 5300 Mhz 11a
Channel 7 : 2442 Mhz 11g Channel 64 : 5320 Mhz 11a
Channel 8 : 2447 Mhz 11g Channel 149 : 5745 Mhz 11a
Channel 9 : 2452 Mhz 11g Channel 152 : 5760 Mhz 11a Turbo
Channel 10 : 2457 Mhz 11g Channel 153 : 5765 Mhz 11a
Channel 11 : 2462 Mhz 11g Channel 157 : 5785 Mhz 11a
Channel 36 : 5180 Mhz 11a Channel 160 : 5800 Mhz 11a Turbo
Channel 40 : 5200 Mhz 11a Channel 161 : 5805 Mhz 11a
Channel 42 : 5210 Mhz 11a Turbo Channel 165 : 5825 Mhz 11a
Channel 44 : 5220 Mhz 11a
(when a channel is marked with a "*" that means you can only do a passive
scan--i.e. you can only listen for an ap and not actively send a probe
request frame). Similarly, "list active" will show the set of channels
currently enabled for use, taking into account restrictions due to locking
the band (e.g with "mode 11a") or through the channel list mechanism.
Finally, you can see the set of capabilites an 802.11 driver has specified
using "list caps":
minky# ifconfig ath0 list caps
ath0=783e50f<WEP,TKIP,AES,AES_CCM,IBSS,HOSTAP,TXPMGT,SHSLOT,SHPREAMBLE,MONIT
OR,T
KIPMIC,WPA1,WPA2,BURST,WME>
You can also change these so, for example, you can disable hardware crypto
support in a driver to test a software implementation.
The ifconfig manual page is currently lagging behind the code. I'll be
updating it as soon as I have time (volunteers welcome).
Sam
_______________________________________________
freebsd-current at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
More information about the freebsd-current
mailing list