You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
#native results in incorrect mask, breaking #prefix #27
Calling native leaves the internal @mask_addr as its ipv6 mask instead of converting it to an ipv4 mask. This is most easily seen when calling prefix, but also breaks to_range and possibly other methods.
#ipv4_compat still returns an inconsistent mask. As it's been deprecated (in IETF and in this library), I don't think we need to maintain it.
However, this violation in object invariant ("the netmask must be consecutive 1s followed by consecutive 0s") may cause other problems and I'd propose fixing it like #ipv4_mapped if we cannot remove #ipv4_compat now.
#ipv4_compat still returns an inconsistent mask. As it's been deprecated (in IETF and in this library), I don't think we need to maintain it. However, this violation in object invariant ("the netmask must be consecutive 1s followed by consecutive 0s") may cause other problems and I'd propose fixing it like #ipv4_mapped if we cannot remove #ipv4_compat now.
Activity
hanazuki commentedon Nov 28, 2023
#34 fixed
#native.#31 fixed
#ipv4_mapped.#ipv4_compatstill returns an inconsistent mask. As it's been deprecated (in IETF and in this library), I don't think we need to maintain it.However, this violation in object invariant ("the netmask must be consecutive 1s followed by consecutive 0s") may cause other problems and I'd propose fixing it like
#ipv4_mappedif we cannot remove#ipv4_compatnow.hanazuki commentedon Nov 28, 2023
#18 also tried to resolve this issue regarding netmask conversion in a consistent way.
taketo1113 commentedon Sep 26, 2025
#ipv4_mappedwas also fixed in #86.The current behavior is as follows: