From owner-freebsd-net@FreeBSD.ORG Fri Aug 23 06:44:08 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C84CD313; Fri, 23 Aug 2013 06:44:08 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7E2E220A9; Fri, 23 Aug 2013 06:44:08 +0000 (UTC) Received: from Julian-MBP3.local (etroy.elischer.org [121.45.226.51]) (authenticated bits=0) by vps1.elischer.org (8.14.7/8.14.6) with ESMTP id r7N6hqdZ091147 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 22 Aug 2013 23:43:58 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <521704A3.7080000@freebsd.org> Date: Fri, 23 Aug 2013 14:43:47 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Alan Somers Subject: Re: CFR: FIB handling improvements References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, Will Andrews , "Justin T. Gibbs" , Hiroki Sato X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Aug 2013 06:44:08 -0000 On 8/22/13 5:52 AM, Alan Somers wrote: > On Wed, Aug 21, 2013 at 3:28 PM, Will Andrews wrote: > >> On Wed, Aug 21, 2013 at 12:20 PM, Hiroki Sato wrote: >>> wi> * Always add loopback routes for non-zero FIBs, for both IPv4 and >>> wi> IPv6. Arguably, this could be a policy issue, but it is currently >>> wi> less-than-trivial to specify (in rc.conf) that a route needs to be >>> wi> applied to every FIB. >>> >>> I am not sure why this is needed. Are the loopback host routes >>> installed into all of the FIBs automatically when lo0 is initialized? >>> >>> Even if it is required, get_fibmod() is not necessary. The following >>> should work: >>> >>> # route add -inet 127.0.0.1/8 -iface lo0 -fib all >> Other places in rc.d/routing can make use of 'all' in that case. >> >> No, loopback host routes are not installed into all FIBs, only FIB 0. >> This is with rt_add_addr_allfibs == 0 (see rtinit1()), which probably >> explains why. We could add an override for lo0 addresses, but perhaps >> this is something that should be configurable? i.e. allow the >> administrator to specify in rc.conf which FIBs lo0's host route should >> be placed on? if rt_add_addr_allfibs ==0 then non 0 fibs should be entirely empty by default. it's up to the user to put the required contents into them. at least that was how I felt about it when I wrote it.. :-) > When would you ever want lo0 to be inaccessible from some fibs? I can't > think of any reasons. > >> --Will. >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >