CVSROOT:        /cvs
Module name:    src
Changes by:     k...@cvs.openbsd.org    2021/11/13 10:32:46

Modified files:
        sbin/resolvd   : resolvd.c 

Log message:
Install missing scope identifier for IPv6 link-local addresses

RTM_PROPOSAL's list of IP addresses does not contain scope IDs by design.
This is not a problem as the proposal is always bound to an interface,
as long as we use it...

Fill in the scope ID for link-local IPs and replace inet_ntop(3) usage with
getnameinfo(3) in the IPv6 case such that it actually turns up in the string
representation.

Otherwise resolv.conf(5) ends up with "nameserver fe80::1" entries and
libc/asr won't be able to resolve without an interface.

Reply via email to