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
fix(internet): MH options 6 and 27 raise a bare ValueError on values their data models cannot hold #2702
Found while reviewing #2700 and confirmed by a Sonnet cross-review. Identical on main. Two MH mobility options raise a plain ValueError, not a pcapkit BaseError, when parsed on their own:
Option 6 (MNP): a prefix with host bits set raises "has host bits set", from IPv6Network.
Option 27 (Timestamp): a time past year 9999 raises "year is out of range", from datetime.
Inside IPv6 both stay Raw and rebuild exactly. Standalone they should raise ProtocolError, or keep the value in a form the data model can hold, so that the round trip still matches.
Activity
JarryShaw commentedon Nov 3, 2026
A worker is on it now. Moved to
wip.JarryShaw commentedon Nov 3, 2026
The PR is #2709. A Sonnet review is running.
fix(internet)!: keep MH option 6 prefixes with host bits and option 2…
fix(internet)!: keep MH option 6 prefixes with host bits and option 2…
fix(internet)!: keep MH option 6 prefixes with host bits and option 2…