[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to bind to specific interface



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