From owner-freebsd-rc@FreeBSD.ORG Tue Feb 7 18:57:05 2012 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 3B612106564A for ; Tue, 7 Feb 2012 18:57:05 +0000 (UTC) (envelope-from erdgeist@erdgeist.org) Received: from elektropost.org (elektropost.org [217.13.206.130]) by mx1.freebsd.org (Postfix) with ESMTP id 72B588FC17 for ; Tue, 7 Feb 2012 18:57:04 +0000 (UTC) Received: (qmail 18233 invoked from network); 7 Feb 2012 19:01:06 -0000 Received: from elektropost.org (HELO elektropost.org) (erdgeist@erdgeist.org) by elektropost.org with CAMELLIA256-SHA encrypted SMTP; 7 Feb 2012 19:01:06 -0000 Message-ID: <4F3173FE.4020901@erdgeist.org> Date: Tue, 07 Feb 2012 19:57:02 +0100 From: Dirk Engling User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 References: <20120207.072925.1861639312875773760.hrs@allbsd.org> <4F3088C8.9090505@erdgeist.org> <20120207.170255.161251905285915806.hrs@allbsd.org> <20120207.232417.487789017555472392.hrs@allbsd.org> In-Reply-To: <20120207.232417.487789017555472392.hrs@allbsd.org> X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-rc@FreeBSD.org Subject: Re: Proposal ipv6_addrs_common 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: Tue, 07 Feb 2012 18:57:05 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07.02.12 15:24, Hiroki Sato wrote: > Comments are welcome. I am moving onto implementing address range > expansion to this framework. I noticed that in ipv4_down and ipv6_down first the aliases are taken down from the interface with the ifalias and ipv4_addrs_common function. Afterwards every single ip address is deleted in the loop calling ifconfig ${_if} ${_inet} delete Actually the order first was reversed: every address was taken down in the loop and only then did the code try to remove the addresses it configured with the _alias functions. Why first remove them chirurgical before killing the whole patient? Did I miss anything? erdgeist -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iEYEARECAAYFAk8xc/4ACgkQuN1wFypsMNPTuwCghycrPZryDFF5AhjWINTJNHTF kocAniZ08A7+BUtobjt01AhKc35HcSMW =5YfA -----END PGP SIGNATURE-----