Alan, Not sure what is real usecase for this requirements for ipv4.
For ipv6 it should be done by sendmsg() and msg_control. -Dmitry On 2013-05-06 11:28, Alan Bateman wrote: > On 05/05/2013 12:19, Dmitry Samersoff wrote: >> Alan, >> >> SO_BINDTODEVICE shouldn't be used in modern applications because it >> causes more problems than solves. >> >> e.g. prevents application from handling on-fly device changes. >> > The use-case is where an application wants to control the network or > source address. > > -Alan. -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * Give Rabbit time, and he'll always get the answer