Gilad Ben-Yossef <gilad@codefidence.com> wrote:
No, it wont. What SO_BINDTODEVICE means is: "pick a route that goes via the specified device.". You can have several routes going out through the same device, and you msut swet up at least one such route but they are all limited to going via the specified device.
This is not true. See the fib_lookup failure handling in ip_route_output_slow().
OK, I stand corrected - if you bind a socket to a device and send a packet it will get sent via the device even if you have no route set up that goes via that interface at all.
Thank you for enlighting me :-)
Cheers, Gilad
-- Gilad Ben-Yossef <gilad@codefidence.com> Codefidence. A name you can trust(tm) Web: http://codefidence.com | SIP: gilad@pbx.codefidence.com Tel: +972.9.8650475 ext. 201 | Fax: +972.9.8850643
"I am Jack's Overwritten Stack Pointer" -- Hackers Club, the movie
- : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html