CFR: FIB handling improvements

Julian Elischer julian at freebsd.org
Fri Aug 23 07:23:34 UTC 2013


On 8/22/13 2:20 AM, Hiroki Sato wrote:
> Will Andrews <will at firepipe.net> wrote
>    in <CADBaqmi6c7v8ojry8uViRi9tK18n8_RaDrP+UjvcmEN9guWm3w at mail.gmail.com>:
>
> 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
>
I agree that this one bothers me.
I think that you are making assumptions about what the user will want.
POLA in my experience is that an empty FIB starts out EMPTY,
unless you *specify* it should be initialized with all the interface 
routes, in which case lo0
should be done as well.




More information about the freebsd-net mailing list