From owner-freebsd-current@FreeBSD.ORG Wed Jun 8 12:49:52 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 93B0416A41C for ; Wed, 8 Jun 2005 12:49:52 +0000 (GMT) (envelope-from snow+freebsd-current@teardrop.org) Received: from imladris.teardrop.org (imladris.teardrop.org [66.92.66.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3405E43D1D for ; Wed, 8 Jun 2005 12:49:52 +0000 (GMT) (envelope-from snow+freebsd-current@teardrop.org) Received: by imladris.teardrop.org (Postfix, from userid 100) id E7D73BE673; Wed, 8 Jun 2005 08:52:22 -0400 (EDT) Date: Wed, 8 Jun 2005 08:52:22 -0400 From: James Snow To: freebsd-current@freebsd.org Message-ID: <20050608125222.GA88177@teardrop.org> References: <20050607034620.GA32718@odin.ac.hmc.edu> <20050607045745.GC2338@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050607045745.GC2338@odin.ac.hmc.edu> User-Agent: Mutt/1.4.2.1i Subject: Re: HEADSUP: OpenBSD dhclient incoming X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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 Jun 2005 12:49:52 -0000 On Mon, Jun 06, 2005 at 09:57:45PM -0700, Brooks Davis wrote: > > In theory we're all clear. I'll start some buildworlds to verify that. > If you experience any issues, please post here and I'll try to figure > them out. I deleted a lot of code from the rc scripts, so unexpected, > subtle changes are no unlikely. I haven't read through the new man pages yet, so it's entirely likely that enough of dhclient.conf's syntax has changed to make mine incorrect. However, dhclient now dumps core when trying to process my media statements from dhclient.conf. From dmesg -a: ... Setting hostname: x40.teardrop.org. em0: no link ... giving up DHCPREQUEST on ath0 to 255.255.255.255 port 67 DHCPREQUEST on ath0 to 255.255.255.255 port 67 DHCPREQUEST on ath0 to 255.255.255.255 port 67 DHCPNAK from 192.168.1.1 Trying medium "ssid NET1 channel 5 wepmode on wepkey 0xWEPKEY" 1 DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 7 Segmentation fault em0: flags=8802 mtu 1500 options=b ether 00:0a:e4:2d:8b:0f media: Ethernet autoselect status: no carrier ath0: flags=8843 mtu 1500 inet6 fe80::20e:9bff:fe6e:60fc%ath0 prefixlen 64 scopeid 0x2 ether 00:0e:9b:6e:60:fc media: IEEE 802.11 Wireless Ethernet autoselect (DS/1Mbps) status: no carrier ssid NET1 channel 5 authmode OPEN privacy ON deftxkey UNDEF wepkey 1:104-bit txpowmax 51 protmode CTS bintval 100 lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 Additional routing options: . Starting devd. hw.acpi.cpu.cx_lowest: C1 -> C1 DHCPREQUEST on ath0 to 255.255.255.255 port 67 DHCPREQUEST on ath0 to 255.255.255.255 port 67 Trying medium "ssid NET1 channel 5 wepmode on wepkey 0xWEPKEY" 1 DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 5 Trying medium "ssid NET2 channel 11 wepmode on wepkey 0xWEPKEY" 0 DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 5 DHCPREQUEST on ath0 to 255.255.255.255 port 67 DHCPNAK from 192.168.0.1 Trying medium "ssid NET1 channel 5 wepmode on wepkey 0xWEPKEY" 1 DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 4 Segmentation fault dhclient ath0: already running? Mounting NFS file systems: ... If I comment the following lines out of /etc/dhclient.conf and manually setup the SSID and WEP keys for the ath0 interface, it works fine: interface "ath0" { media # NET1 "ssid NET1 channel 5 wepmode on wepkey 0xWEPKEY", # NET2 "ssid NET2 channel 11 wepmode on wepkey 0xWEPKEY", # NET3 "ssid NET3 channel 8 wepmode on wepkey 0xWEPKEY", # NET4 "ssid NET4 channel 4 wepmode on wepkey 0xWEPKEY", # NET5 "ssid NET5 channel 1 wepmode off"; } x40# /etc/rc.d/dhclient start ath0 DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 6 DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 5 DHCPOFFER from 192.168.0.1 DHCPREQUEST on ath0 to 255.255.255.255 port 67 DHCPACK from 192.168.0.1 bound to 192.168.0.103 -- renewal in 43200 seconds. x40# I will recompile my dhclient with debugging flags so the core dump is actually useful. I'll also go through the new man pages to see if I've missed something, but I figured that even if I am doing something wrong, dhclient shouldn't dump core. Please excuse me if I'm doing something dumb; I haven't had any coffee yet. -Snow