Scope ID should be on Ipv6Addr, not SocketAddrV6 #82923
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.
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.
The text was updated successfully, but these errors were encountered: