From owner-freebsd-net@FreeBSD.ORG Wed Aug 21 21:52: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 A010F5B6; Wed, 21 Aug 2013 21:52:08 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-qc0-x22e.google.com (mail-qc0-x22e.google.com [IPv6:2607:f8b0:400d:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2E02C2F34; Wed, 21 Aug 2013 21:52:08 +0000 (UTC) Received: by mail-qc0-f174.google.com with SMTP id c1so578545qcz.33 for ; Wed, 21 Aug 2013 14:52:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:cc:content-type; bh=J+G0z/u31vS405APnpWwTmxT2BPBEdyceOIbxWgIn4w=; b=0P6MAC0BaubxSSPudDJwkgvQdsBO03sf99VvR6WloJ50Olwhp8oVdysBLDnvtmME12 ATJ6iWE5/WAZsdbpQ0LUrJOei47a1pm+CE9s+1MqlPHT8Pzf2xq4Zb8uqPn1O/732uhb fOnUInvR2t6ukw/4P980mf8/nYcQ0vGn2W45IAGICE+CXxK++IzYoz5X+oKe3aTF0dmq OjJMVvPqKtayy0dQ4nltJKhlRAm9skHLfD8s8BBWD5WFGURo6IhH2mqAX8V01oZifAfd 9KjxQ/d8zaKTKtN32ISmV813lYgJau77cKryvOTkIJrYuAUOwco6vdXvh6dio2Nju8B6 o1YQ== MIME-Version: 1.0 X-Received: by 10.49.105.74 with SMTP id gk10mr11665582qeb.8.1377121927284; Wed, 21 Aug 2013 14:52:07 -0700 (PDT) Sender: asomers@gmail.com Received: by 10.49.39.101 with HTTP; Wed, 21 Aug 2013 14:52:07 -0700 (PDT) Date: Wed, 21 Aug 2013 15:52:07 -0600 X-Google-Sender-Auth: bqrYz139068bXaidGIxi4gg47io Message-ID: Subject: Re: CFR: FIB handling improvements From: Alan Somers To: Will Andrews Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "Justin T. Gibbs" , freebsd-net@freebsd.org, Hiroki Sato , Alan Somers 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: Wed, 21 Aug 2013 21:52:08 -0000 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? > 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" >