Skip to content
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

Scope ID should be on Ipv6Addr, not SocketAddrV6 #82923

Open
sadmac7000 opened this issue Mar 9, 2021 · 1 comment
Open

Scope ID should be on Ipv6Addr, not SocketAddrV6 #82923

sadmac7000 opened this issue Mar 9, 2021 · 1 comment
Labels
C-bug Category: This is a bug. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@sadmac7000
Copy link

Currently std::net::Ipv6Addr, which is meant to represent individual IPv6 addresses, does not contain a field for Scope ID. Meanwhile, std::net::SocketAddrV6, which is meant to include all the information necessary for establishing a connection, does include a Scope ID.

This is incorrect layering. IPv6 Addresses which have a Scope ID are meaningless without it. The scope is not an additional qualifier for connection establishment, it is part of the address itself.

@sadmac7000 sadmac7000 added the C-bug Category: This is a bug. label Mar 9, 2021
@sadmac7000
Copy link
Author

In .NET the equivalent structs are IPAddress and IPEndpoint. The Scope ID is on the former.

https://docs.microsoft.com/en-us/dotnet/api/system.net.ipaddress.scopeid?view=net-5.0#System_Net_IPAddress_ScopeId

@ChrisDenton ChrisDenton added the needs-triage-legacy Old issue that were never triaged. Remove this label once the issue has been sufficiently triaged. label Jul 16, 2023
@jieyouxu jieyouxu added T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. and removed needs-triage-legacy Old issue that were never triaged. Remove this label once the issue has been sufficiently triaged. labels Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants