From owner-freebsd-current@FreeBSD.ORG Wed Dec 8 19:34:18 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 37C0916A4CE for ; Wed, 8 Dec 2004 19:34:18 +0000 (GMT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8ECE543D3F for ; Wed, 8 Dec 2004 19:34:17 +0000 (GMT) (envelope-from sam@errno.com) Received: from [66.127.85.91] ([66.127.85.91]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id iB8JYGWi026450 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Wed, 8 Dec 2004 11:34:17 -0800 (PST) (envelope-from sam@errno.com) From: Sam Leffler Organization: Errno Consulting To: freebsd-current@freebsd.org Date: Wed, 8 Dec 2004 11:42:48 -0800 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200412081142.48494.sam@errno.com> Subject: HEADSUP: ifconfig updated X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Dec 2004 19:34:18 -0000 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 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 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 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