Multiple routing table clarification

Angelo Turetta aturetta at commit.it
Tue Dec 9 10:06:53 PST 2008


Julian Elischer wrote:
> Angelo Turetta wrote:
>> - is it possible for a single process to listen for TCP connections 
>> using  more than one socket, each with its own 'fib'?
> 
> yes, but only if you have source.  you need to do a 
> setsockopt(SOO_SETFIB,...) on each socket before you do the listen().
> Otherwise all socekts from the same process get the same fib.

OK, shouldn't be too hard to hack squid for this.

> HOWEVER I have been asked to add a feature where setting a fib of -1
> on a socket will allow it to get its fib from the incoming SYN packet.. 
> Ithink that would bewhat you are asking for.

Yes, please! It would be much more general-purpose than hacking squid, 
of course if -1 be supported by setfib too...
I can help test a patch on RELENG_7, whenever "someone" writes it ;-)

Thanks a lot,
Angelo Turetta


More information about the freebsd-net mailing list