From owner-freebsd-net@FreeBSD.ORG Wed Aug 21 21:28:49 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9D5CA75A for ; Wed, 21 Aug 2013 21:28:49 +0000 (UTC) (envelope-from will@firepipe.net) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5D98F2C6B for ; Wed, 21 Aug 2013 21:28:49 +0000 (UTC) Received: by mail-ve0-f171.google.com with SMTP id pa12so876657veb.30 for ; Wed, 21 Aug 2013 14:28:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=nikVHuwJ3ew4jPOQY8Kuqqh/UbWr9ADyvQmh1HPRuNQ=; b=WvVLlSci0eWqv/h19m+JB6XpeJyraWCF3cpk1nh+1E7p1AVnLemI2kTWwVzA71cT+e tSWAfYobE9A3VB2Qt+agt5xovpqx7EC6zgJK0EvKnXBWUt1iHRj+GlDBH8hcVewtUzn+ dt/k3usC9EjmtvwWN6rLRM+/B8qGNQFccYCSDomIgeJT7yTYzDaxK7+1Sbu7FFttMf4A OsEVkF9/TQTnHRvqJx1GGzYSJOnQrG1Y1k+hLZ9rOb37eyGOa4NVlg3MpfBIqUnbZPRx N0pOSqek/bkLeQ0QzIg2tVZBFeZCBGRXRcMy+TGc8MD1PzYu9SEB1DUt+f7Mr1kccE5Y 1npQ== X-Gm-Message-State: ALoCoQk617M0TypDSZfzJ7OOqiiXb1rWrOKxUfJBh0VwDKv9uPaxxfCD64LIzt0imGIZc/bqbbgw MIME-Version: 1.0 X-Received: by 10.220.250.4 with SMTP id mm4mr54200vcb.47.1377120522622; Wed, 21 Aug 2013 14:28:42 -0700 (PDT) Received: by 10.58.226.66 with HTTP; Wed, 21 Aug 2013 14:28:42 -0700 (PDT) In-Reply-To: <20130822.032022.481255110184207810.hrs@allbsd.org> References: <20130822.032022.481255110184207810.hrs@allbsd.org> Date: Wed, 21 Aug 2013 15:28:42 -0600 Message-ID: Subject: Re: CFR: FIB handling improvements From: Will Andrews To: Hiroki Sato Content-Type: text/plain; charset=UTF-8 Cc: freebsd-net@freebsd.org, "Justin T. Gibbs" , 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:28:49 -0000 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? --Will.