link-local IPv6 addresses are rejected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nc6 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
getaddrinfo(3) refuses to resolve IPv6 addresses if hint flag AI_ADDRCONFIG is specified and when there are no IPv6 addresses other than link-local are configured. Unfortunately that happens even with AI_NUMERICHOST. This makes it impossible to use nc6 with IPv6 loopback or link-local addresses on such systems, e.g.
$ nc6 -n fe80::a00:
nc6: forward host lookup failed for remote endpoint fe80::a00:
The code to resolve addresses in network.c does
#ifdef HAVE_GETADDRINF
#endif
if (ca_is_
this should be perhaps changed to the (untested):
if (ca_is_
#ifdef HAVE_GETADDRINF
else
#endif
so that AI_ADDRCONFIG is not specified when numeric host address is used.