[CFT/R] IPv4 source address selection
Bjoern A. Zeeb
bzeeb-lists at lists.zabbadoz.net
Sun Aug 24 11:51:51 UTC 2008
I have a patch, that was inspired by work from Y!, to do porper
IPv4 source address selection for unbound sockets (with multi-IP
You can temporary find it here:
People running my latest jail patches have been ``testing'' this
without really knowing the last weeks.
In case you wonder why, in the jail case, I loop over the ifa first
before simply falling back to the primary jail IP (which is the only
jail IP as in HEAD) -- this is because with the upcoming jail patches
I have to check if any of possibly lots of IPs match any IP on an
interface and only if none matches I have to fall back to the 'primary'
So the code has been prepared for upcoming changes already.
Feel free to test it and report problems or unexpected behavior.
Unless someone is going to cry it'll hit HEAD in a few days.
PS: in case you review this properly (not only glance at it or test
it) let me know so I can punish you in the Reviewed by: line;-)
Bjoern A. Zeeb Stop bit received. Insert coin for new game.
More information about the freebsd-current