From owner-freebsd-current@FreeBSD.ORG Wed Jun 2 23:58:20 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35524106566C for ; Wed, 2 Jun 2010 23:58:20 +0000 (UTC) (envelope-from andy@fud.org.nz) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id D7DD88FC16 for ; Wed, 2 Jun 2010 23:58:19 +0000 (UTC) Received: by vws12 with SMTP id 12so397059vws.13 for ; Wed, 02 Jun 2010 16:58:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.107.5 with SMTP id z5mr6149857vco.243.1275523099055; Wed, 02 Jun 2010 16:58:19 -0700 (PDT) Sender: andy@fud.org.nz Received: by 10.220.165.74 with HTTP; Wed, 2 Jun 2010 16:58:19 -0700 (PDT) Date: Thu, 3 Jun 2010 11:58:19 +1200 X-Google-Sender-Auth: uINJuvBgXPWZ3jEv7FxHHhINytA Message-ID: From: Andrew Thompson To: freebsd-current@freebsd.org, brooks@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: bridge & dhcp 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, 02 Jun 2010 23:58:20 -0000 Hi, > r179003 | brooks | 2008-05-15 13:06:10 +1200 (Thu, 15 May 2008) | 9 lines > >Change the default value of synchronous_dhclient to NO. > >To preserve the existing behavior of etc/rc.d/netif, add code to wait >up to if_up_delay seconds (30 seconds by default) for a default route to >be configured if there are any dhcp interfaces. This should be extended >to test that the interface is actually up. As far as I can see this means a bridge interface no longer works when set to dhcp on boot, as the above assumes devd will start dhclient. Firstly it does not generate link-state events which I patched for (same as the recent tap(4) change) but the bridge also doesn't support the SIOCGIFMEDIA ioctl to match "ethernet" in the 2nd part of the rule. notify 0 { match "system" "IFNET"; match "type" "LINK_UP"; media-type "ethernet"; action "/etc/rc.d/dhclient quietstart $subsystem"; }; What is the best way to fix this? Andrew