From owner-freebsd-stable@FreeBSD.ORG Wed Sep 9 15:52:34 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5942106566B for ; Wed, 9 Sep 2009 15:52:34 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (cl-162.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:a1::2]) by mx1.freebsd.org (Postfix) with ESMTP id 3FE878FC16 for ; Wed, 9 Sep 2009 15:52:34 +0000 (UTC) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.3/8.14.3) with ESMTP id n89FqvDK043494; Wed, 9 Sep 2009 10:52:57 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.3/8.14.3/Submit) id n89Fqvdt043493; Wed, 9 Sep 2009 10:52:57 -0500 (CDT) (envelope-from brooks) Date: Wed, 9 Sep 2009 10:52:57 -0500 From: Brooks Davis To: Pyun YongHyeon , freebsd-stable Message-ID: <20090909155257.GF42196@lor.one-eyed-alien.net> References: <20090904173811.GA45176@graf.pompo.net> <20090904214148.GB9950@michelle.cdnetworks.com> <20090904215747.GB82231@lor.one-eyed-alien.net> <20090905110635.GG87716@graf.pompo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090905110635.GG87716@graf.pompo.net> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Wed, 09 Sep 2009 10:52:57 -0500 (CDT) Cc: Subject: Re: ifconfig_ed0="DHCP" does not work on 8.0-BETA3 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Sep 2009 15:52:34 -0000 On Sat, Sep 05, 2009 at 01:06:35PM +0200, Thierry Thomas wrote: > Le Ven 4 sep 09 ? 23:57:47 +0200, Brooks Davis > ?crivait?: > > > This is a know issue with some devices supported by ed(4). You can work > > around it by changing DHCP to SYNCDHCP which will cause dhclient to > > alwasy start immediatly on that interface instead of waiting for a link > > state change that never happens. > > Thanks for the hint! > > What about the following patch? > > --- man4_ed.4.diff begins here --- > --- src/share/man/man4/ed.4.orig 2009-08-03 10:13:06.000000000 +0200 > +++ src/share/man/man4/ed.4 2009-09-05 12:51:51.000000000 +0200 > @@ -425,3 +425,11 @@ > .Pp > PC Card attachment supports the D-Link DMF650TX LAN/Modem card's Ethernet > port only at this time. > +.Pp > +If the line "ed0: link state changed to UP" does not show up in dmesg, the line > +.Pp > +ifconfig_ed0="DHCP" > +.Pp > +in > +.Xr rc.conf 5 > +will be ineffective. In this case, replace "DHCP" by "SYNCDHCP". > --- man4_ed.4.diff ends here --- > > Don't hesitate to reword it - my englsh can be terrible! I'd rather not mention the "link state changed" message since I'd love to see it go away. How's this? Index: ed.4 =================================================================== --- ed.4 (revision 196736) +++ ed.4 (working copy) @@ -425,3 +425,21 @@ .Pp PC Card attachment supports the D-Link DMF650TX LAN/Modem card's Ethernet port only at this time. +.Pp +Some devices supported by +.Nm +do no generate the link state change events used by +.Xr devd 8 +to start +.Xr dhclinet 8 . +If you have problems with +.Xr dhclient 8 +not starting and the device is always attached to the network it may +be possible to work around this by changing +.Dq Li DHCP +to +.Dq Li SYNCDHCP +in the +.Va ifconfig_ed0 +entry in +.Pa /etc/rc.conf . =- Brooks