From owner-freebsd-bugs Sat May 25 21:40: 8 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7E94F37B40E for ; Sat, 25 May 2002 21:40:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4Q4e1D37133; Sat, 25 May 2002 21:40:01 -0700 (PDT) (envelope-from gnats) Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117]) by hub.freebsd.org (Postfix) with ESMTP id 69E3A37B405 for ; Sat, 25 May 2002 21:36:01 -0700 (PDT) Received: from www.freebsd.org (localhost [127.0.0.1]) by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g4Q4a1hG036570 for ; Sat, 25 May 2002 21:36:01 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.2/8.12.2/Submit) id g4Q4a180036569; Sat, 25 May 2002 21:36:01 -0700 (PDT) Message-Id: <200205260436.g4Q4a180036569@www.freebsd.org> Date: Sat, 25 May 2002 21:36:01 -0700 (PDT) From: "Jan L. Peterson" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: conf/38559: rc.network hangs for a long time attempting dhcp setup of disconnected interface Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 38559 >Category: conf >Synopsis: rc.network hangs for a long time attempting dhcp setup of disconnected interface >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat May 25 21:40:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Jan L. Peterson >Release: 4.5-RELEASE >Organization: >Environment: FreeBSD aurora.corp.flipdog.com 4.5-RELEASE FreeBSD 4.5-RELEASE #2: Thu May 2 13:28:39 MDT 2002 root@aurora.corp.flipdog.com:/usr/src/sys/compile/AURORA i386 >Description: When booting my laptop with the lan disconnected, the system hangs for a short while right after printing Doing initial network setup; hostname This happens because the interface, which has been set for DHCP, is not connected to a cable. The system hangs until dhclient times out (or I press ctrl-C on the console :-), then proceeds with normal startup. >How-To-Repeat: Boot a machine configured for DHCP with the network cable unplugged. >Fix: I will attach a patch to the PR once it is issued. A brief synopsis of the patch is: In /etc/rc.network, there is a loop where it goes through all configured interfaces, looking for those set for DHCP. When it finds one, it adds it to the dhcp_interfaces variable. The patch first checks if there is carrier present on the interface, and if not, doesn't add it to dhcp_interfaces. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message