Re: IPv6 link local

Sylvain BERTRAND <[email protected]> Thu, 18 Dec 2014 15:30:55 +0100
Newsgroups gmane.network.lsh.bugs
Message-ID <[email protected]>
On Thu, Dec 18, 2014 at 01:06:51PM +0100, Niels M=F6ller wrote:
> Hmm. Adding an interface option to specify an ip address, and using
> bind(2) to bind that as the local address of the socket before
> connecting, should be straightforward.
> =

> Not sure how to deal with interface identifiers, though. How should that
> work? I'm aware of the SO_BINDTODEVICE setsockopt, but I'm not sure
> that's what you are asking for.

By its nature, you cannot connect to an IPv6 link local address without
specifying the interface. Basically, to be able to connect to a server
on a LAN without a public IPv6 prefix and an IPv4 address.
I have not idea of how linux exposes that feature to user space.

regards,

-- =

Sylvain