-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Qualify IPv6 link-local addresses with scope_id
When a service is advertised on an IPv6 address where the scope is link local, i.e. fe80::/64 (see RFC 4007) the resolved IPv6 address must be extended with the scope_id that identifies through the "%" symbol the local interface to be used when routing to that address. A new API is provided to return qualified addresses to avoid breaking compatibility on the existing arsed_addresses(). This patch: * Extracts the scope_id from an IPv6 link-local address and return it in the retrieved information in ServiceInfo. * Adjusts the browser test to be able to show IPv6 link-local addresses by using the new method parsed_scoped_addresses(). * Uses scope_id in unicast replies to IPv6 link-local addresses, and adds some unit tests to verify the new interface provided. Co-authored-by: Lokesh Prajapati <lokesh.prajapati@ncipher.com>
- Loading branch information
2 people
authored and
de Angelis, Antonio
committed
Oct 23, 2020
1 parent
4da1612
commit 620564f
Showing
3 changed files
with
166 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.