From owner-freebsd-bugs@FreeBSD.ORG Mon Dec 12 15:00:05 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86395106564A for ; Mon, 12 Dec 2011 15:00:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 20C428FC0A for ; Mon, 12 Dec 2011 15:00:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pBCF03cJ047315 for ; Mon, 12 Dec 2011 15:00:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pBCF033I047314; Mon, 12 Dec 2011 15:00:03 GMT (envelope-from gnats) Resent-Date: Mon, 12 Dec 2011 15:00:03 GMT Resent-Message-Id: <201112121500.pBCF033I047314@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ralf Wenk Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5369106564A for ; Mon, 12 Dec 2011 14:50:04 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 9910F8FC15 for ; Mon, 12 Dec 2011 14:50:04 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pBCEo37L028004 for ; Mon, 12 Dec 2011 14:50:03 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id pBCEo3qZ028003; Mon, 12 Dec 2011 14:50:03 GMT (envelope-from nobody) Message-Id: <201112121450.pBCEo3qZ028003@red.freebsd.org> Date: Mon, 12 Dec 2011 14:50:03 GMT From: Ralf Wenk To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/163206: dhclient stopped working on wlan0 because of changes in CURRENT kernel between 2011-11-29 and 2011-12-12 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2011 15:00:05 -0000 >Number: 163206 >Category: kern >Synopsis: dhclient stopped working on wlan0 because of changes in CURRENT kernel between 2011-11-29 and 2011-12-12 >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 12 15:00:03 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Ralf Wenk >Release: FreeBSD 10.0-CURRENT >Organization: Hochschule Karlsruhe, University of Applied Sciences >Environment: FreeBSD IZ-T193196065251a 10.0-CURRENT FreeBSD 10.0-CURRENT #4: Mon Dec 12 10:11:00 CET 2011 root@IZ-T193196065251a:/usr/obj/usr/src/sys/GENERIC i386 >Description: After upgrading from a current world and kernel from 2011-11-29 to todays version dhclient is now unable to aquire an IP address from an wlan0 interface. It is working fine on an em0 interface with the same kernel. The messages in /var/log/messages are Dec 12 15:08:31 IZ-T193196065251a dhclient[1625]: wlan0: not found Dec 12 15:08:31 IZ-T193196065251a dhclient[1625]: exiting. Dec 12 15:08:31 IZ-T193196065251a dhclient[1626]: connection closed Dec 12 15:08:31 IZ-T193196065251a dhclient[1626]: exiting. Dec 12 15:08:31 IZ-T193196065251a root: /etc/rc.d/dhclient: WARNING: failed to start dhclient Reverting the kernel to the old CURRENT version fixes the problem. Because of successfully using world of today with an old kernel I think the problem is caused by changes made to the kernel between the two dates. Stopping the dhclient with "/etc/rc.d/dhclient stop wlan0" shows dhclient not running? (check /var/run/dhclient.wlan0.pid). as expected. Starting with "/etc/rc.d/dhclient start wlan0" shows Starting dhclient. ifconfig: ioctl (SIOCAIFADDR): File exists wlan0: not found exiting. /etc/rc.d/dhclient: WARNING: failed to start dhclient Adding "set -xv" to /sbin/dhclient-script leads to the $IFCONFIG $interface inet alias 0.0.0.0 netmask 0.0.0.0 broadcast 255.255.255.255 up line as the cause of the "ifconfig: ioctl (SIOCAIFADDR): File exists" error message. # ifconfig wlan0" wlan0: flags=8843 metric 0 mtu 1500 ether 00:22:5f:fa:85:0b nd6 options=29 media: IEEE 802.11 Wireless Ethernet OFDM/6Mbps mode 11g status: associated ssid HsKA-8021x channel 1 (2412 MHz 11g) bssid 0a:0b:6b:2b:2e:c6 regdomain ETSI country DE indoor ecm authmode WPA2/802.11i privacy ON deftxkey UNDEF TKIP 2:128-bit txpower 30 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme burst roaming MANUAL # >How-To-Repeat: Set up interfaces in /etc/rc.conf as ifconfig_em0="DHCP" wlans_ath0="wlan0" ifconfig_wlan0="WPA DHCP country Germany" use a CURRENT kernel of today and than a CURRENT kernel at least of 2011-11-29. >Fix: >Release-Note: >Audit-Trail: >Unformatted: