Wrong outgoing interface with multiple routing tables

Julian Elischer julian at elischer.org
Mon Jul 27 20:34:21 UTC 2009


Oleg Sharoyko wrote:
> 
> Julian Elischer wrote:
> 
>> great.. in your simple server, can you do the sockopt on the socket 
>> AFTER you did the listen()?
>> (just as a test).
> 
> Doesn't help. I have also tried to add setsockopt() after accept() (for 
> a new socket) and in this case the only packet that is being sent out 
> via wrong interface is the SYN+ACK from server.


this is very important. it means I'm not setting the fibnum in the 
syncache code correctly.

> 
> I'll try to look into the kernel code tomorrow and will report any 
> findings.
> 
> -- 
> Oleg



More information about the freebsd-net mailing list