Allow interface names as scope-id in IPv6 link-local addresses.
authorflorian <florian@openbsd.org>
Fri, 19 Nov 2021 16:42:01 +0000 (16:42 +0000)
committerflorian <florian@openbsd.org>
Fri, 19 Nov 2021 16:42:01 +0000 (16:42 +0000)
commit6eb1180042a776779f0c3888266a8b246dd72277
treecc62c3bd823cdcfbc72403b612de51acae0afc52
parentbb05a9b4aceaef5cde8937bc0b86e1ac5f532f74
Allow interface names as scope-id in IPv6 link-local addresses.

For example, this makes
    forward-zone:
        name: "."
        forward-addr: fe80::20d:b9ff:fe46:c7f4%vio0
        forward-first: yes

work instead of using fe80::20d:b9ff:fe46:c7f4%1 for the forward-addr.

This has been submitted upstream.
sthen@ is fine with carrying this as a local diff.

Requested by & OK kn
usr.sbin/unbound/config.h.in
usr.sbin/unbound/configure
usr.sbin/unbound/configure.ac
usr.sbin/unbound/util/net_help.c