From owner-freebsd-rc@FreeBSD.ORG Mon Sep 19 11:07:13 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 1A4AF1065676 for ; Mon, 19 Sep 2011 11:07:13 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 077688FC2C for ; Mon, 19 Sep 2011 11:07:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8JB7CaG073610 for ; Mon, 19 Sep 2011 11:07:12 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8JB7Cj6073606 for freebsd-rc@FreeBSD.org; Mon, 19 Sep 2011 11:07:12 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 19 Sep 2011 11:07:12 GMT Message-Id: <201109191107.p8JB7Cj6073606@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-rc@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-rc@FreeBSD.org 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: Mon, 19 Sep 2011 11:07:13 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/160403 rc [rc] [patch] concurrently running rc-scripts during bo o conf/160240 rc rc.d/mdconfig and mdconfig2 should autoset $_type to v o conf/159846 rc [rc.conf] routing_stop_inet6() logic doesn't handle ip o conf/158557 rc [patch] /etc/rc.d/pf broken messages o conf/158127 rc [patch] remount_optional option in rc.initdiskless doe o conf/154554 rc [rc.d] [patch] statd and lockd fail to start o conf/153666 rc [rc.d][patch] mount filesystems from fstab over zfs da o conf/153200 rc post-boot /etc/rc.d/network_ipv6 start can miss neighb o conf/153123 rc [rc] [patch] add gsched rc file to automatically inser o conf/152784 rc services provide himself instead providing class of se o conf/150752 rc [rc.subr] [patch] be not needed to eval $_pidcmd on re o conf/150474 rc [patch] rc.d/accounting: Add ability to set location o o conf/149867 rc [PATCH] rc.d script to manage multiple FIBS (kern opti o conf/149831 rc [PATCH] add support to /etc/rc.d/jail for delegating Z o conf/148656 rc rc.firewall(8): {oip} and {iip} variables in rc.firewa o conf/147685 rc [rc.d] [patch] new feature for /etc/rc.d/fsck o conf/147444 rc [rc.d] [patch] /etc/rc.d/zfs stop not called on reboot o conf/146053 rc [patch] [request] shutdown of jails breaks inter-jail o conf/145445 rc [rc.d] error in /etc/rc.d/jail (bad logic) o conf/145440 rc [rc.d] [patch] add multiple fib support (setfib) in /e o conf/145399 rc [patch] rc.d scripts are unable to start/stop programs o conf/145009 rc [patch] rc.subr(8): rc.conf should allow mac label con o conf/144213 rc [rc.d] [patch] Disappearing zvols on reboot o conf/143637 rc [patch] ntpdate(8) support for ntp-servers supplied by o conf/143085 rc [patch] ftp-proxy(8) rc(8) with multiple instances o conf/143084 rc [jail] [patch]: fix rc.d/jail creating stray softlinks o conf/142973 rc [jail] [patch] Strange counter init value in jail rc o conf/142434 rc [patch] Add cpuset(1) support to rc.subr(8) o conf/142304 rc rc.conf(5): mdconfig and mdconfig2 rc.d scripts lack e o conf/141909 rc rc.subr(8): [patch] add rc.conf.d support to /usr/loca o conf/141907 rc [rc.d] Bug if mtu (maybe others?) is set as first argu o conf/141678 rc [patch] A minor enhancement to how /etc/rc.d/jail dete o conf/141275 rc [request] dhclient(8) rc script should print something o conf/140440 rc [patch] allow local command files in rc.{suspend,resum o conf/140261 rc [patch] Improve flexibility of mdconfig2 startup scrip o conf/138208 rc [rc.d] [patch] Making rc.firewall (workstation) IPv6 a o conf/137629 rc [rc.d] background_dhclient rc.conf option causing doub o conf/137470 rc [PATCH] /etc/rc.d/mdconfig2 : prioritize cli parameter o conf/137271 rc [rc.d] Cannot update /etc/host.conf when root filesyst s conf/136875 rc [request] _flags appending o conf/136624 rc [rc.d] sysctl variables for ipnat are not applied on b o conf/135338 rc [rc.d] pf startup order seems broken [regression] o conf/134918 rc [patch] rc.subr fails to detect perl daemons o conf/134660 rc [patch] rc-script for initializing ng_netflow+ng_ipfw o conf/134333 rc PPP configuration problem in the rc.d scripts in combi o conf/134006 rc [patch] Unload console screensaver kernel modules if s o conf/133890 rc [patch] sshd(8): add multiple profiles to the rc.d scr o conf/132483 rc rc.subr(8) [patch] setfib(1) support for rc.subr o conf/132476 rc [rc.d] [patch] add support setfib(1) in rc.d/routing o conf/128299 rc [patch] /etc/rc.d/geli does not mount partitions using o bin/126562 rc rcorder(8) fails to run unrelated startup scripts when o conf/126392 rc [patch] rc.conf ifconfig_xx keywords cannot be escaped p bin/126324 rc [patch] rc.d/tmp: Prevent mounting /tmp in second tim o conf/124747 rc [patch] savecore can't create dump from encrypted swap o conf/124248 rc [jail] [patch] add support for nice value for rc.d/jai o conf/123734 rc [patch] Chipset VIA CX700 requires extra initializatio o conf/123222 rc [patch] Add rtprio(1)/idprio(1) support to rc.subr(8). o conf/123119 rc [patch] rc script for ipfw does not handle IPv6 o conf/122968 rc [rc.d] /etc/rc.d/addswap: md swapfile multiplication a o conf/122477 rc [patch] /etc/rc.d/mdconfig and mdconfig2 are ignoring o conf/122170 rc [patch] [request] New feature: notify admin via page o o kern/121566 rc [nfs] [request] [patch] ethernet iface should be broug o conf/120431 rc [patch] devfs.rules are not initialized under certain o conf/120406 rc [devd] [patch] Handle newly attached pcm devices (eg. o conf/119874 rc [patch] "/etc/rc.d/pf reload" fails if there are macro o conf/119076 rc [patch] [rc.d] /etc/rc.d/netif tries to remove alias a o bin/118325 rc [patch] [request] new periodic script to test statuses o conf/118255 rc savecore never finding kernel core dumps (rcorder prob o conf/117935 rc [patch] ppp fails to start at boot because of missing o conf/113915 rc [patch] ndis wireless driver fails to associate when i o conf/109980 rc /etc/rc.d/netif restart doesn't destroy cloned_interfa o conf/109562 rc [rc.d] [patch] [request] Make rc.d/devfs usable from c o conf/109272 rc [request] increase default rc shutdown timeout o conf/108589 rc rtsol(8) fails due to default ipfw rules o conf/106009 rc [ppp] [patch] [request] Fix pppoed startup script to p o conf/105689 rc [ppp] [request] syslogd starts too late at boot o conf/105568 rc [patch] [request] Add more flexibility to rc.conf, to o conf/105145 rc [ppp] [patch] [request] add redial function to rc.d/pp o conf/104549 rc [patch] rc.d/nfsd needs special _find_processes functi o conf/102700 rc [geli] [patch] Add encrypted /tmp support to GELI/GBDE o conf/99721 rc [patch] /etc/rc.initdiskless problem copy dotfile in s o conf/99444 rc [patch] Enhancement: rc.subr could easily support star o conf/96343 rc [patch] rc.d order change to start inet6 before pf o conf/93815 rc [patch] Adds in the ability to save ipfw rules to rc.d o conf/92523 rc [patch] allow rc scripts to kill process after a timeo o conf/89870 rc [patch] [request] make netif verbose rc.conf toggle o conf/89061 rc [patch] IPv6 6to4 auto-configuration enhancement o conf/88913 rc [patch] wrapper support for rc.subr o conf/85819 rc [patch] script allowing multiuser mode in spite of fsc o kern/81006 rc ipnat not working with tunnel interfaces on startup o conf/77663 rc Suggestion: add /etc/rc.d/addnetswap after addcritremo o conf/73677 rc [patch] add support for powernow states to power_profi o conf/58939 rc [patch] dumb little hack for /etc/rc.firewall{,6} o conf/56934 rc [patch] rc.firewall rules for natd expect an interface o conf/45226 rc [patch] Fix for rc.network, ppp-user annoyance o conf/44170 rc [patch] Add ability to run multiple pppoed(8) on start 96 problems total. From owner-freebsd-rc@FreeBSD.ORG Mon Sep 19 16:10:30 2011 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id E0B72106566B; Mon, 19 Sep 2011 16:10:30 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 172-17-198-245.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id A6F1A14DEC3; Mon, 19 Sep 2011 16:10:29 +0000 (UTC) Message-ID: <4E776973.9000409@FreeBSD.org> Date: Mon, 19 Sep 2011 09:10:27 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0.2) Gecko/20110912 Thunderbird/6.0.2 MIME-Version: 1.0 To: Hiroki Sato References: <201109191555.p8JFtruR086396@svn.freebsd.org> In-Reply-To: <201109191555.p8JFtruR086396@svn.freebsd.org> X-Enigmail-Version: undefined OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, re@FreeBSD.org, svn-src-all@freebsd.org, src-committers@freebsd.org, freebsd-rc@FreeBSD.org Subject: Re: svn commit: r225669 - head/etc/rc.d 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: Mon, 19 Sep 2011 16:10:31 -0000 Please don't add new instances of BEFORE in base rc.d scripts. The proper way to do this is to add bridge to REQUIRE: in SERVERS. The BEFORE method is useful for local/ports rc.d scripts, but it makes debugging of dependency issues more difficult so ideally it should be avoided in the base if it's not absolutely necessary (which it is not here). Thanks, Doug On 09/19/2011 08:55, Hiroki Sato wrote: > Author: hrs > Date: Mon Sep 19 15:55:53 2011 > New Revision: 225669 > URL: http://svn.freebsd.org/changeset/base/225669 > > Log: > Fix the script order to run rc.d/bridge after the initial network > interface configuration and before running network daemons. > > Approved by: re (kib) > > Modified: > head/etc/rc.d/bridge > > Modified: head/etc/rc.d/bridge > ============================================================================== > --- head/etc/rc.d/bridge Mon Sep 19 15:31:12 2011 (r225668) > +++ head/etc/rc.d/bridge Mon Sep 19 15:55:53 2011 (r225669) > @@ -26,7 +26,8 @@ > # > > # PROVIDE: bridge > -# REQUIRE: netif > +# REQUIRE: netif faith ppp stf > +# BEFORE: SERVERS > # KEYWORD: nojail > > . /etc/rc.subr > -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/ From owner-freebsd-rc@FreeBSD.ORG Wed Sep 21 23:40:35 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 CFBCB106566B; Wed, 21 Sep 2011 23:40:35 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [IPv6:2001:470:1:117::25]) by mx1.freebsd.org (Postfix) with ESMTP id 94B348FC08; Wed, 21 Sep 2011 23:40:29 +0000 (UTC) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id 84C1115B71; Wed, 21 Sep 2011 16:40:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1316648429; bh=b/Ovuc4hrApOAOdr4osfz01GW4zEggxrWNoUR83NCNY=; h=Message-ID:Date:From:Reply-To:MIME-Version:To:CC:Subject: Content-Type; b=1ss7auhUGXxxduqBQq9rUJA7gxDIfQRnjqeAIf9Qdr7uOLIqX4j8SocQbEh6QoQf+ XLVhU/Z1gfdSwjpc7EarBk0TZeRKtKd7v8l6VCPK/YCeQhEqS1kJsWjUIKU9grhrFN 6REZE7SAkDXa5g/SA5dmpNsuk5I9YY/cj/ZJfFzk= Message-ID: <4E7A75EB.80308@delphij.net> Date: Wed, 21 Sep 2011 16:40:27 -0700 From: Xin LI Organization: The FreeBSD Project MIME-Version: 1.0 To: freebsd-rc@FreeBSD.ORG OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: multipart/mixed; boundary="------------040309090006060703000007" Cc: Hiroki Sato , Garrett Cooper Subject: [RFC] Use noafif in dhcpif and sycndhcpif X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net 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: Wed, 21 Sep 2011 23:40:35 -0000 This is a multi-part message in MIME format. --------------040309090006060703000007 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, While developing FreeNAS we have hit a problem -- when ifconfig_DEFAULT is set to "DHCP", all interfaces including pfsync0 and pflog0 would be probed by dhclient. It seems to be reasonable to check noafif in both dhcpif and syncdhcpif, as did in ipv6_autoconfif based on same reasoning. Comments? Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iQEcBAEBCAAGBQJOenXrAAoJEATO+BI/yjfBrf8IALBR6K/0IYMZbFgbcQ6xYCRt f6KKQ/S+sN4gge0/HAlv4i2oKGCkDBAkTmOk6vJ0d1I80sOalmIlWm8tMWahzKq+ SOw5YBOV4rx3CSVFq+X7vF+R9HH/y1wt4RgFYpeuVg6hlCi0Ea1pi18Wc+fmsbSU F+l8/8owRip/i9rvhrCyz5+HrYSESqXeAA7NTk6r6+llo8QcGzlqLFdSkVvRKE6B nYnYr5lCO+1xllXy5mTqDwZr00Fz1+d4ZBz62olABl2xtGcepHxRd9rKomlLDnY4 Cp10/ChR20I7X4FYNIX/C6gRwKAxxXOHwR3dPnEy2OFZU/4uvNFgIC6rtFapaSg= =WN1r -----END PGP SIGNATURE----- --------------040309090006060703000007 Content-Type: text/plain; name="dhcp-noafif.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="dhcp-noafif.diff" SW5kZXg6IGV0Yy9uZXR3b3JrLnN1YnIKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gZXRjL25ldHdvcmsu c3VicgkocmV2aXNpb24gMjI1NzA5KQorKysgZXRjL25ldHdvcmsuc3Vicgkod29ya2luZyBj b3B5KQpAQCAtMjk3LDYgKzI5NywxMCBAQCBkaGNwaWYoKQogCWxvY2FsIF90bXBhcmdzIF9h cmcKIAlfdG1wYXJncz1gX2lmY29uZmlnX2dldGFyZ3MgJDFgCiAKKwlpZiBub2FmaWYgJDE7 IHRoZW4KKwkJcmV0dXJuIDEKKwlmaQorCiAJZm9yIF9hcmcgaW4gJF90bXBhcmdzOyBkbwog CQljYXNlICRfYXJnIGluCiAJCVtEZF1bSGhdW0NjXVtQcF0pCkBAIC0zMjIsNiArMzI2LDEw IEBAIHN5bmNkaGNwaWYoKQogCWxvY2FsIF90bXBhcmdzIF9hcmcKIAlfdG1wYXJncz1gX2lm Y29uZmlnX2dldGFyZ3MgJDFgCiAKKwlpZiBub2FmaWYgJDE7IHRoZW4KKwkJcmV0dXJuIDEK KwlmaQorCiAJZm9yIF9hcmcgaW4gJF90bXBhcmdzOyBkbwogCQljYXNlICRfYXJnIGluCiAJ CVtObl1bT29dW1NzXVtZeV1bTm5dW0NjXVtEZF1bSGhdW0NjXVtQcF0pCg== --------------040309090006060703000007-- From owner-freebsd-rc@FreeBSD.ORG Thu Sep 22 01:19:44 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 3A23E1065670; Thu, 22 Sep 2011 01:19:44 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id D83638FC19; Thu, 22 Sep 2011 01:19:43 +0000 (UTC) Received: by qyk4 with SMTP id 4so2548492qyk.13 for ; Wed, 21 Sep 2011 18:19:43 -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=m3a5aQ+6jEJs0h/2TsX3jREUkBhze7rmCOTn8D5WZ/s=; b=NbjcRwSrWlWKAr+p3IVbrw6wiegcYnXf9ixZfgP5ndTipGK/GtU3AVDkGAqoLRjDLk DHUQr7TiP28qGr94dxTffOwPAgeLN2eIwvShrMed9IGMPupXG8OwqNBTgZgmRLb6kXwC 3VY7XnRgrfL+W3AkHyG/IYRUkVKRyyN+BABNU= MIME-Version: 1.0 Received: by 10.224.215.133 with SMTP id he5mr1264781qab.224.1316653945999; Wed, 21 Sep 2011 18:12:25 -0700 (PDT) Received: by 10.224.74.82 with HTTP; Wed, 21 Sep 2011 18:12:25 -0700 (PDT) In-Reply-To: References: <4E7A75EB.80308@delphij.net> Date: Wed, 21 Sep 2011 18:12:25 -0700 Message-ID: From: Garrett Cooper To: d@delphij.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-rc@freebsd.org 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 01:19:44 -0000 On Wed, Sep 21, 2011 at 6:08 PM, Garrett Cooper wrote: > On Wed, Sep 21, 2011 at 4:40 PM, Xin LI wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA256 >> >> Hi, >> >> While developing FreeNAS we have hit a problem -- when >> ifconfig_DEFAULT is set to "DHCP", all interfaces including pfsync0 >> and pflog0 would be probed by dhclient. >> >> It seems to be reasonable to check noafif in both dhcpif and >> syncdhcpif, as did in ipv6_autoconfif based on same reasoning. > > The problem, as I've noted offline, is that something like the > following should be done. I'm not fully convinced that this is the > best way to solve the problem; I'm definitely open to additional > suggestions.. > > Thanks! > -Garrett > > Index: etc/network.subr > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- etc/network.subr =A0 (revision 225558) > +++ etc/network.subr =A0 (working copy) > @@ -1260,11 +1260,16 @@ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0_lo=3D > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0for _if in ${_autolist} ; do > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if autoif $_if; then > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if [ "$_if"= =3D "lo0" ]; then > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 case "$_if"= in > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 lo0) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0_lo=3D"lo0 " > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 else > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 ;; > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ipfw[0-9]*|= \ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 pflog[0-9]*= |\ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 pfsync[0-9]= *) + ;; + *) _tmplist=3D"${_tmplist} ${_if}" > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 fi > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 ;; > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 esac > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0fi > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0done > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0_tmplist=3D"${_lo}${_tmplist# }" > I meant to use the above context :)... From owner-freebsd-rc@FreeBSD.ORG Thu Sep 22 01:31:07 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 D7AFE1065670; Thu, 22 Sep 2011 01:31:07 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 8C9978FC0A; Thu, 22 Sep 2011 01:31:07 +0000 (UTC) Received: by qyk10 with SMTP id 10so5710317qyk.13 for ; Wed, 21 Sep 2011 18:31:06 -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; bh=SWpV6uFH0dIBNiZtNF/JUU+tB5Db2ZBbHEIxnpVSAjo=; b=vkoOt6kwDFhrKNeMw8zw+CO45yH/r1bl2yzvDXEzeB9mjm5rbpMMTlYi6Gpv0Gg16X sTBBVhLNvJXWS1S3x0j3Gvs8mwvk6LDnC4vEb9SG1HCQC1av/hqxo1NMAY5irDz6fgSH 5S/fwnn+4ZsbrqPrwJ8WvfWbYulx40xlTLpR4= MIME-Version: 1.0 Received: by 10.224.215.133 with SMTP id he5mr1262533qab.224.1316653723663; Wed, 21 Sep 2011 18:08:43 -0700 (PDT) Received: by 10.224.74.82 with HTTP; Wed, 21 Sep 2011 18:08:43 -0700 (PDT) In-Reply-To: <4E7A75EB.80308@delphij.net> References: <4E7A75EB.80308@delphij.net> Date: Wed, 21 Sep 2011 18:08:43 -0700 Message-ID: From: Garrett Cooper To: d@delphij.net Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-rc@freebsd.org 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 01:31:07 -0000 On Wed, Sep 21, 2011 at 4:40 PM, Xin LI wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Hi, > > While developing FreeNAS we have hit a problem -- when > ifconfig_DEFAULT is set to "DHCP", all interfaces including pfsync0 > and pflog0 would be probed by dhclient. > > It seems to be reasonable to check noafif in both dhcpif and > syncdhcpif, as did in ipv6_autoconfif based on same reasoning. The problem, as I've noted offline, is that something like the following should be done. I'm not fully convinced that this is the best way to solve the problem; I'm definitely open to additional suggestions.. Thanks! -Garrett Index: etc/network.subr =================================================================== --- etc/network.subr (revision 225558) +++ etc/network.subr (working copy) @@ -1260,11 +1260,16 @@ _lo= for _if in ${_autolist} ; do if autoif $_if; then - if [ "$_if" = "lo0" ]; then + case "$_if" in + lo0) _lo="lo0 " - else + ;; + ipfw[0-9]*|\ + pflog[0-9]*|\ + pfsync[0-9]*) _tmplist="${_tmplist} ${_if}" - fi + ;; + esac fi done _tmplist="${_lo}${_tmplist# }" From owner-freebsd-rc@FreeBSD.ORG Thu Sep 22 02:16:34 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 C9D60106564A; Thu, 22 Sep 2011 02:16:34 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 6B8028FC0A; Thu, 22 Sep 2011 02:16:34 +0000 (UTC) Received: by qyk10 with SMTP id 10so5731383qyk.13 for ; Wed, 21 Sep 2011 19:16:33 -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=jrlwd97FdaAiy7nsKylx/Iz9yHIxu77ueUefbZ/MspU=; b=X+2aohIRC88PcAosUdQYy/2GGwW4/lcu3ZfiEY+w04ef6bGjUPPUijfPp6O1uL+ERA dVrx48nDYCklw6cRYQ8103X4OiEOdfGNPOPJ24d9M9KPuyVAVOdEGvtrhKAuguIlRy3k a4sofGHyW2fyy4jbAWOdG0iVvASjIQ86ZK/cU= MIME-Version: 1.0 Received: by 10.224.87.82 with SMTP id v18mr1400814qal.74.1316657793289; Wed, 21 Sep 2011 19:16:33 -0700 (PDT) Received: by 10.224.74.82 with HTTP; Wed, 21 Sep 2011 19:16:33 -0700 (PDT) In-Reply-To: References: <4E7A75EB.80308@delphij.net> Date: Wed, 21 Sep 2011 19:16:33 -0700 Message-ID: From: Garrett Cooper To: d@delphij.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-rc@freebsd.org 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 02:16:35 -0000 On Wed, Sep 21, 2011 at 6:12 PM, Garrett Cooper wrote: > On Wed, Sep 21, 2011 at 6:08 PM, Garrett Cooper wrot= e: >> On Wed, Sep 21, 2011 at 4:40 PM, Xin LI wrote: >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA256 >>> >>> Hi, >>> >>> While developing FreeNAS we have hit a problem -- when >>> ifconfig_DEFAULT is set to "DHCP", all interfaces including pfsync0 >>> and pflog0 would be probed by dhclient. >>> >>> It seems to be reasonable to check noafif in both dhcpif and >>> syncdhcpif, as did in ipv6_autoconfif based on same reasoning. >> >> The problem, as I've noted offline, is that something like the >> following should be done. I'm not fully convinced that this is the >> best way to solve the problem; I'm definitely open to additional >> suggestions.. >> >> Thanks! >> -Garrett >> >> Index: etc/network.subr >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> --- etc/network.subr =A0 (revision 225558) >> +++ etc/network.subr =A0 (working copy) >> @@ -1260,11 +1260,16 @@ >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0_lo=3D >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0for _if in ${_autolist} ; do >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if autoif $_if; then >> - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if [ "$_if= " =3D "lo0" ]; then >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 case "$_if= " in >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 lo0) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0_lo=3D"lo0 " >> - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 else >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 ;; >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ipfw[0-9]*= |\ >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 pflog[0-9]= *|\ >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 pfsync[0-9= ]*) > > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 ;; > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 *) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0_tmplist=3D"${_tmplist} ${_if}" > >> - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 fi >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 ;; >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 esac >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0fi >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0done >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0_tmplist=3D"${_lo}${_tmplist# }" >> > > I meant to use the above context :)... Arguably, changing ifconfig -l to ifconfig -l inet (or inet6) in the above invocation would work too, assuming that the kernel was compiled with INET support... Thanks, -Garrett From owner-freebsd-rc@FreeBSD.ORG Thu Sep 22 05:54:20 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 A684F1065672; Thu, 22 Sep 2011 05:54:20 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper-int.allbsd.org [IPv6:2001:2f0:104:e002::2]) by mx1.freebsd.org (Postfix) with ESMTP id 08AA18FC0A; Thu, 22 Sep 2011 05:54:16 +0000 (UTC) Received: from alph.allbsd.org ([IPv6:2001:2f0:104:e010:862b:2bff:febc:8956]) (authenticated bits=128) by mail.allbsd.org (8.14.4/8.14.4) with ESMTP id p8M5rnh8024244; Thu, 22 Sep 2011 14:53:59 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [IPv6:::1]) (authenticated bits=0) by alph.allbsd.org (8.14.4/8.14.4) with ESMTP id p8M5rgls051079; Thu, 22 Sep 2011 14:53:43 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Thu, 22 Sep 2011 14:53:38 +0900 (JST) Message-Id: <20110922.145338.1972727087248882715.hrs@allbsd.org> To: d@delphij.net, delphij@delphij.net From: Hiroki Sato In-Reply-To: <4E7A75EB.80308@delphij.net> References: <4E7A75EB.80308@delphij.net> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.3.51 on Emacs 23.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Thu_Sep_22_14_53_38_2011_725)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (mail.allbsd.org [IPv6:2001:2f0:104:e001::32]); Thu, 22 Sep 2011 14:54:00 +0900 (JST) X-Spam-Status: No, score=-104.6 required=13.0 tests=BAYES_00, CONTENT_TYPE_PRESENT, RDNS_NONE, SPF_SOFTFAIL, USER_IN_WHITELIST autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on gatekeeper.allbsd.org Cc: freebsd-rc@FreeBSD.org, gcooper@FreeBSD.org 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 05:54:20 -0000 ----Security_Multipart(Thu_Sep_22_14_53_38_2011_725)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Xin LI wrote in <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. I think the patch is reasonable. Using "ifconfig -l AF" does not work for this purpose because 1) it depends on an already-configured address (ifa->ifa_addr->sa_family) on 9.X and 2) it does not work on 8.X as intended. BTW, setting ifconfig_DEFAULT to DHCP may have to be revisited at a certain point in the future. It works, but a problem is that this variable does not support a per-AF configuration and the DHCP keyword is IPv4-specific. Having "ifconfig_DEFAULT_AF" may be a good candidate, but another issue is that it is difficult to maintain backward compatibility in that case... -- Hiroki ----Security_Multipart(Thu_Sep_22_14_53_38_2011_725)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEABECAAYFAk56zWIACgkQTyzT2CeTzy0LxQCgtIWQvsP2M2pzyi6HWoC3qYDG iGcAn0EH6Jn8eFlS/0RJtAq1ac42Ghcg =PeuY -----END PGP SIGNATURE----- ----Security_Multipart(Thu_Sep_22_14_53_38_2011_725)---- 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 From owner-freebsd-rc@FreeBSD.ORG Thu Sep 22 16:23:15 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 657DF106564A for ; Thu, 22 Sep 2011 16:23:15 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper-int.allbsd.org [IPv6:2001:2f0:104:e002::2]) by mx1.freebsd.org (Postfix) with ESMTP id B28528FC08 for ; Thu, 22 Sep 2011 16:23:13 +0000 (UTC) Received: from alph.allbsd.org ([IPv6:2001:2f0:104:e010:862b:2bff:febc:8956]) (authenticated bits=128) by mail.allbsd.org (8.14.4/8.14.4) with ESMTP id p8MGMq8I077079; Fri, 23 Sep 2011 01:23:02 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [IPv6:::1]) (authenticated bits=0) by alph.allbsd.org (8.14.4/8.14.4) with ESMTP id p8MGMp1N055812; Fri, 23 Sep 2011 01:22:52 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Fri, 23 Sep 2011 01:22:31 +0900 (JST) Message-Id: <20110923.012231.2025543114185889730.hrs@allbsd.org> To: yanegomi@gmail.com From: Hiroki Sato In-Reply-To: References: <4E7A75EB.80308@delphij.net> <20110922.145338.1972727087248882715.hrs@allbsd.org> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.3.51 on Emacs 23.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Fri_Sep_23_01_22_31_2011_144)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (mail.allbsd.org [IPv6:2001:2f0:104:e001::32]); Fri, 23 Sep 2011 01:23:04 +0900 (JST) X-Spam-Status: No, score=-104.2 required=13.0 tests=BAYES_00, CONTENT_TYPE_PRESENT,MIMEQENC,QENCPTR2,RDNS_NONE,SPF_SOFTFAIL, USER_IN_WHITELIST autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on gatekeeper.allbsd.org 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 16:23:15 -0000 ----Security_Multipart(Fri_Sep_23_01_22_31_2011_144)-- Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Garrett Cooper wrote in : ya> On Wed, Sep 21, 2011 at 10:53 PM, Hiroki Sato wro= te: ya> > Xin LI wrote ya> > =A0in <4E7A75EB.80308@delphij.net>: ya> > ya> > de> -----BEGIN PGP SIGNED MESSAGE----- ya> > de> Hash: SHA256 ya> > de> ya> > de> Hi, ya> > de> ya> > de> While developing FreeNAS we have hit a problem -- when ya> > de> ifconfig_DEFAULT is set to "DHCP", all interfaces including p= fsync0 ya> > de> and pflog0 would be probed by dhclient. ya> > de> ya> > de> It seems to be reasonable to check noafif in both dhcpif and ya> > de> syncdhcpif, as did in ipv6_autoconfif based on same reasoning= .= ya> > ya> > =A0I think the patch is reasonable. =A0Using "ifconfig -l AF" doe= s not ya> > =A0work for this purpose because 1) it depends on an already-conf= igured ya> > =A0address (ifa->ifa_addr->sa_family) on 9.X and 2) it does not w= ork on ya> > =A08.X as intended. ya> = ya> Please note that the patch Xin included disables several wireless ya> chipsets from doing dhcp by default. Is this desired? I think there is no problem because an wireless LAN interface always has a name like wlanN, not a name derived from the device driver. If the noafif() interface list includes a network interface which can have an address, it is a bug and the interface should be removed from the list, though. -- Hiroki ----Security_Multipart(Fri_Sep_23_01_22_31_2011_144)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEABECAAYFAk57YMcACgkQTyzT2CeTzy2n2gCgn0vGp6FY2wYCgmJbYkv3n9qW QfwAoL/6endJCd68AdRCwC/jj7ItCe6P =yDGA -----END PGP SIGNATURE----- ----Security_Multipart(Fri_Sep_23_01_22_31_2011_144)----