smoltcp-rs / smoltcp

a smol tcp/ip stack
BSD Zero Clause License
3.63k stars 402 forks source link

`Ipv6Packet::scope` and `Scope` is private #897

Closed kgv closed 5 months ago

kgv commented 5 months ago

Constructor std::net::SocketAddrV6::new takes scope_id: u32, but Scope and Ipv6Packet::scope method is pub(crate). Maybe should change it to pub.

thvdveld commented 5 months ago

I think you mean Ipv6Address::scope. This is used for the multicast scope of the IPv6 address, which is not the same as scope id for the socket.