From owner-freebsd-rc@FreeBSD.ORG Thu Sep 22 15:26:18 2011 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C9CE91065676; Thu, 22 Sep 2011 15:26:18 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-qw0-f44.google.com (mail-qw0-f44.google.com [209.85.216.44]) by mx1.freebsd.org (Postfix) with ESMTP id 701E58FC12; Thu, 22 Sep 2011 15:26:18 +0000 (UTC) Received: by qwb8 with SMTP id 8so6545201qwb.3 for ; Thu, 22 Sep 2011 08:26:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Vm0aYcndims+yzlmx2M/BgIgNPbXPf/nCNCc4GKX4d0=; b=Cyza3B8ggCuFW4U58xwGtjlzdtFwDAOhrU/X+F0GWVT6yespGa9K3oVQ/h1QuAIFWX LYoEQYMDL5xT3PM9PnnLn2ekGhJEMdZVoG8EfdSZjrTIUgsXwdv10cqBrU+FBU8AI6xY 3IehtvN3Tt8SMibPiR5kzKI0w09q1H+ob/7Y0= MIME-Version: 1.0 Received: by 10.224.87.82 with SMTP id v18mr2034641qal.74.1316705177568; Thu, 22 Sep 2011 08:26:17 -0700 (PDT) Received: by 10.224.74.82 with HTTP; Thu, 22 Sep 2011 08:26:17 -0700 (PDT) In-Reply-To: <20110922.145338.1972727087248882715.hrs@allbsd.org> References: <4E7A75EB.80308@delphij.net> <20110922.145338.1972727087248882715.hrs@allbsd.org> Date: Thu, 22 Sep 2011 08:26:17 -0700 Message-ID: From: Garrett Cooper To: Hiroki Sato Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-rc@freebsd.org, delphij@delphij.net, d@delphij.net Subject: Re: [RFC] Use noafif in dhcpif and sycndhcpif X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2011 15:26:18 -0000 On Wed, Sep 21, 2011 at 10:53 PM, Hiroki Sato wrote: > Xin LI wrote > =A0in <4E7A75EB.80308@delphij.net>: > > de> -----BEGIN PGP SIGNED MESSAGE----- > de> Hash: SHA256 > de> > de> Hi, > de> > de> While developing FreeNAS we have hit a problem -- when > de> ifconfig_DEFAULT is set to "DHCP", all interfaces including pfsync0 > de> and pflog0 would be probed by dhclient. > de> > de> It seems to be reasonable to check noafif in both dhcpif and > de> syncdhcpif, as did in ipv6_autoconfif based on same reasoning. > > =A0I think the patch is reasonable. =A0Using "ifconfig -l AF" does not > =A0work for this purpose because 1) it depends on an already-configured > =A0address (ifa->ifa_addr->sa_family) on 9.X and 2) it does not work on > =A08.X as intended. Please note that the patch Xin included disables several wireless chipsets from doing dhcp by default. Is this desired? Thanks, -Garrett