How to bind to specific interface

Leon Pollak leonp at plris.com
Mon Feb 4 18:11:23 UTC 2008


Hello all.

I have two ethernet interfaces in my box eth0 and eth1.

How can I bind a UDP broadcasting socket to a specific interface?

An option SO_BINDTODEVICE does not exist in FreeBSD stack. 
And SO_DONTROUTE, I think is useless, as this is broadcasting.

Thanks ahead.

-- 
Leon



More information about the users mailing list