From owner-freebsd-rc@FreeBSD.ORG Mon Oct 11 05:45:07 2010 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 61319106566B; Mon, 11 Oct 2010 05:45:07 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id C4C558FC0A; Mon, 11 Oct 2010 05:45:06 +0000 (UTC) Received: by ywh2 with SMTP id 2so643705ywh.13 for ; Sun, 10 Oct 2010 22:45:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :organization:user-agent:mime-version:to:cc:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=Cgxm1YPkfHfacz3m6SHMdChw7/wpp6LTodaw1xgbV5g=; b=YnzziOcGNr8di/wJkGJJKLXKSB1jNgA9Jphsl7HmJjCH8n2W4cL/MpWrQltsdWDudO RWkMapRl2rgVfoxXZo42plgIY327BJca7lLMyBFjRifO1Q7VN9NODjB6d7AgqOR48/3p q2YNTeWFIeTXf5AcQIWlBUe27jfUVTDQWcEXs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:organization:user-agent:mime-version:to :cc:subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=E2BD4OKad/ElsiArcFUIWx2KJzl48R9JGy52Fql3NWkBIOoa7MBB+vEV0AieFN0jCy Uwnd24cPpIc5SGeBOrYcB+3jZcjgFxpwIYrVCNGLZ4LkV2ocLfusUL0JFlpiCeCEYYhg HjllIySeHF41BeBGpUrmpeWVPFZn95tgNaBNo= Received: by 10.236.108.34 with SMTP id p22mr10795856yhg.72.1286775905834; Sun, 10 Oct 2010 22:45:05 -0700 (PDT) Received: from centel.dataix.local (adsl-99-181-144-115.dsl.klmzmi.sbcglobal.net [99.181.144.115]) by mx.google.com with ESMTPS id f43sm4817742yhc.26.2010.10.10.22.45.03 (version=SSLv3 cipher=RC4-MD5); Sun, 10 Oct 2010 22:45:04 -0700 (PDT) Sender: "J. Hellenthal" Message-ID: <4CB2A45E.8070602@DataIX.net> Date: Mon, 11 Oct 2010 01:45:02 -0400 From: jhell Organization: http://www.DataIX.net User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.9) Gecko/20100917 Lightning/1.0b1 Thunderbird MIME-Version: 1.0 To: Garrett Cooper References: <4C76CA06.5010001@FreeBSD.org> <4CB135F5.20804@DataIX.net> <4CB2A0E9.50108@DataIX.net> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Current , Doug Barton , freebsd-rc@FreeBSD.org, Sergey Kandaurov Subject: Re: [RFC] ifconfig description support in 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, 11 Oct 2010 05:45:07 -0000 On 10/11/2010 01:34, Garrett Cooper wrote: > On Sun, Oct 10, 2010 at 10:30 PM, jhell wrote: >> On 10/10/2010 13:23, Garrett Cooper wrote: >>> >>> I'm not sure it would get resolved after this commit, but one >>> minor annoyance is that restarting the netif rc.d script purges all >>> gateways set, so I have to do and restart the routing rc.d script (if >>> my connectivity doesn't get whacked). I think there was something else >>> with natd and ipfw that I've run into in the past where I've restarted >>> those scripts and things weren't all puppydogs and rainbows on my >>> CURRENT systems. >>> >>> Thanks, >>> -Garrett >> >> Is that the dynamic routes only or also the static routes ? >> >> Either or if it would be any of the above it would be nice if these were >> kept if it was only a restart of the interface, but offhand nothing >> comes to mind that could prevent this from happening since the routes >> are acting according to when the interface becomes inactive then the >> route becomes meaningless. >> >> Maybe if the action of 'restart' to etc/rc.d/netif could also call >> etc/rc.d/routing with 'restart' if the configuration of the interface >> happens to match one of the recorded routes in rc.conf(5). > > I just tested it on my test machine and it happens with static > routes; dynamic routes automatically get reset by dhclient, et all. It > used to be for both though in earlier versions of FreeBSD, IIRC. > Thanks! > -Garrett That has been something that has bugged me for a while. Ill take a look at some possibilities (with just the scripts in rc.d) that might be a solution to this soon as I get a chance over this next week. It might just be meaningful to merge the correct areas of the routing script into the netif scripts restart and relevant sections. Ill look at this as soon as I get a chance. Unless if someone has another theory about whether those routes should be deleted at all if the ifnet address still exists on the parent interface ?. Regards, -- jhell,v