On Wednesday 01 April 2015 17:03:14 Carsten Bormann wrote: > Hence hacks such as SO_BINDTODEVICE (which appears to be Linux only). > According to RFC 3542 [1], IPV6_PKTINFO does have an outgoing interface > index. I haven't done the necessary research here to see how well that > is implemented. It will probably pay to talk to the DHCP and DNS > implementer community; they have lots of experience with this issue.
Works fine on Linux and the code compiled fine on OS X, FreeBSD and Windows for me. IPv4's equivalent (IP_PKTINFO) is a non-standard extension. It works on OS X and Windows, but breaks on FreeBSD due to lack of support. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center
