[erlang-questions] Support for IPv6 link-local addresses

Per Hedeland per@REDACTED
Fri Jun 10 22:47:19 CEST 2016


Hi,

Has anyone implemented support for IPv6 link-local addresses in
gen_tcp/gen_udp and friends, or attempted to, or even thought about the
matter? The problem is that using such addresses require that you
provide a "scope-id" - normally (always?) in the form of
"%<interface-name>" appended to the address in the textual
representation, the "interface index" (which can be derived from the
interface name) in the actual OS API functions. And while making
inet_drv handle it should be straightforward, the pervasive 8-tuple
representation of an IPv6 address has no place for it.

--Per



More information about the erlang-questions mailing list