Re: CFR: FIB handling improvements

2013-08-23 Thread Julian Elischer
On 8/22/13 2:20 AM, Hiroki Sato wrote: Will Andrews wrote in : 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 ev

Re: CFR: FIB handling improvements

2013-08-22 Thread Julian Elischer
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> le

Re: CFR: FIB handling improvements

2013-08-22 Thread Andrey V. Elsukov
21.08.2013 19:42, Will Andrews wrote: > Hi, > > I'm working to port forward to FreeBSD/head, improvements made to FIB > handling by my colleagues Alan Somers and Justin Gibbs. > > Please review: http://people.freebsd.org/~will/fix-fib-issues.1.diff > > This patch includes fixes for several issu

Re: CFR: FIB handling improvements

2013-08-21 Thread Sam Fourman Jr.
On Wed, Aug 21, 2013 at 5:52 PM, Alan Somers wrote: > On Wed, Aug 21, 2013 at 3:28 PM, Will Andrews wrote: > > When would you ever want lo0 to be inaccessible from some fibs? I can't > think of any reasons. > > I can't think of a use case either, that is why I mentioned he has my wheels turning

Re: CFR: FIB handling improvements

2013-08-21 Thread Sam Fourman Jr.
On Wed, Aug 21, 2013 at 5:28 PM, Will Andrews wrote: > > 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

Re: CFR: FIB handling improvements

2013-08-21 Thread Alan Somers
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 (i

Re: CFR: FIB handling improvements

2013-08-21 Thread Will Andrews
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.

Re: CFR: FIB handling improvements

2013-08-21 Thread Alan Somers
On Wed, Aug 21, 2013 at 12:20 PM, Hiroki Sato wrote: > Will Andrews wrote > in : > > wi> Please review: http://people.freebsd.org/~will/fix-fib-issues.1.diff > wi> > wi> This patch includes fixes for several issues relating to FIBs: > wi> > wi> * Use of dhclient with non-zero FIBs. With this

Re: CFR: FIB handling improvements

2013-08-21 Thread Hiroki Sato
Will Andrews wrote in : wi> Please review: http://people.freebsd.org/~will/fix-fib-issues.1.diff wi> wi> This patch includes fixes for several issues relating to FIBs: wi> wi> * Use of dhclient with non-zero FIBs. With this patch, it is possible wi> to use DHCP on a specific interface with a n

Re: CFR: FIB handling improvements

2013-08-21 Thread Alan Somers
On Wed, Aug 21, 2013 at 11:48 AM, Sam Fourman Jr. wrote: > > * Use of dhclient with non-zero FIBs. With this patch, it is possible > >> to use DHCP on a specific interface with a non-zero FIB and have it >> work correctly with this rc.conf snippet: >> >> ifconfig_em1="SYNCDHCP" >> dhclient_fib_em

Re: CFR: FIB handling improvements

2013-08-21 Thread Sam Fourman Jr.
* Use of dhclient with non-zero FIBs. With this patch, it is possible > to use DHCP on a specific interface with a non-zero FIB and have it > work correctly with this rc.conf snippet: > > ifconfig_em1="SYNCDHCP" > dhclient_fib_em1=1 > This patch is needed, I have a situation where we have 2 inte

Re: CFR: FIB handling improvements

2013-08-21 Thread Andre Oppermann
On 21.08.2013 17:42, Will Andrews wrote: Hi, I'm working to port forward to FreeBSD/head, improvements made to FIB handling by my colleagues Alan Somers and Justin Gibbs. Please review: http://people.freebsd.org/~will/fix-fib-issues.1.diff This patch includes fixes for several issues relating