Skip to content

Add support for resolving IPv4-mapped IPv6 addresses #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 11, 2025

Conversation

smdn
Copy link
Owner

@smdn smdn commented Apr 11, 2025

Description

The current implementation of MacAddressResolver.ResolveIPAddressToMacAddressAsync determines that if an entry in the address table is IPv4, the IPv4-mapped IPv6 address is not equivalent to that entry.

In order to be able to resolve IPv4-mapped IPv6 addresses to MAC addresses, this PR adds a new property MacAddressResolver.ShouldResolveIPv4MappedIPv6Address.

This PR also improves the AddressTableEntry.Equals method to be able to compare with IPv4-mapped IPv6 addresses to resolve this issue.

smdn added 2 commits April 11, 2025 20:10
…ped IPv6 addresses to be compared as IPv4 addresses
… be able to resolve IPv4-mapped IPv6 addresses
@smdn smdn merged commit 9e4750f into main Apr 11, 2025
11 checks passed
@smdn smdn deleted the ipv4-mapped-ipv6-addrs branch April 11, 2025 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant