This change allows binding an outgoing TCP connection to a specific network interface. My use-case for that is that I need to support situations where two interfaces are configured for link-local addressing. In that case the system has two different routes into the link-local subnet.
On Windows the interface is determined by the IP address passed to bind(). On Linux this is not sufficient as the routing table takes precedence. Therefore we must explicitly bind the socket to the interface.
This change allows binding an outgoing TCP connection to a specific network interface. My use-case for that is that I need to support situations where two interfaces are configured for link-local addressing. In that case the system has two different routes into the link-local subnet.
On Windows the interface is determined by the IP address passed to
bind()
. On Linux this is not sufficient as the routing table takes precedence. Therefore we must explicitly bind the socket to the interface.Depends on #153