tech-net archive

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

Re: binding a socket to a specific interface



>That works if you don't need to receive broadcasts or multicasts... :)

D'oh!  I missed that part.

I guess there's not really a good way, is there?  You have to bind to the
wildcard address and using something like IP_RCVDSTADDR and filter out
packets from the "wrong" interface at the application level.

--Ken


Home | Main Index | Thread Index | Old Index