From owner-freebsd-current@FreeBSD.ORG Mon Oct 11 05:34:25 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 33863106566C; Mon, 11 Oct 2010 05:34:25 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id CBCD28FC19; Mon, 11 Oct 2010 05:34:24 +0000 (UTC) Received: by iwn8 with SMTP id 8so4121114iwn.13 for ; Sun, 10 Oct 2010 22:34:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=PqOYSSeXvVolNAgpkvRhqbTUYaXP1pSokAmbhdPxdlc=; b=KAmLNkJc4qKx1Re5vaYCZGbhQgNGYjuaFSO/4chRo/zFSoRiFJHgZKc2vAVxrih9KQ 91srXtv+7R1GrAQ5jTiZMU8/crm2a1WzME7DGGCAOR0sBQTwD2qEHwPVRrSbfN/iTcuC I5BF1S/5eLGnETImEwNObUBj+MizEccx3kZq8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=CGIMBqnHNEqhz4i6ub/Nf52aTIaf/v74wla0gdPbyKbUDX3Rud5AzpsMa19vgvXLKn qDcksaGnegXYxvPGqCGIZC8rtvSk29GCrwrabdr0cw/xpdSdtvQNNRYZbyDlKnUYEfSD YAVkz7i+7WYLY4h8eMF6HV9Akj58y3nkKFM60= MIME-Version: 1.0 Received: by 10.231.150.139 with SMTP id y11mr4316284ibv.80.1286775263870; Sun, 10 Oct 2010 22:34:23 -0700 (PDT) Sender: yanegomi@gmail.com Received: by 10.231.184.3 with HTTP; Sun, 10 Oct 2010 22:34:23 -0700 (PDT) In-Reply-To: <4CB2A0E9.50108@DataIX.net> References: <4C76CA06.5010001@FreeBSD.org> <4CB135F5.20804@DataIX.net> <4CB2A0E9.50108@DataIX.net> Date: Sun, 10 Oct 2010 22:34:23 -0700 X-Google-Sender-Auth: sldb57rLgku4d62xtQZeOnSL-wQ Message-ID: From: Garrett Cooper To: jhell Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Doug Barton , freebsd-rc@freebsd.org, Sergey Kandaurov , FreeBSD Current Subject: Re: [RFC] ifconfig description support in rc.d 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: Mon, 11 Oct 2010 05:34:25 -0000 On Sun, Oct 10, 2010 at 10:30 PM, jhell wrote: > On 10/10/2010 13:23, Garrett Cooper wrote: >> >> =A0 =A0 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