joyent/libuv — Issue #271: IPv6: support link-local addresses
Author: bnoordhuis
Created: 2011-12-09 00:33:34+00:00
State: open
Labels: Unix

@tshinnic pointed out that on at least Linux link-local addresses require that the interface is specified. In other words, we need to:

1. Parse the address in `uv_ip6_addr()`
2. Look up the interface ID with `ioctl(SIOCGIFINDEX)`
3. Set `sin6_scope_id` to the interface ID to use

For the record, a qualified link-local address looks like this: `fe80::20c:29ff:fe31:8d4e%eth0`