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(ipv6_ext): IPv6_Ext's version gate reads 'got version=4', not the house form #2302
Describe the bug IPv6_Ext.__post_init__ rejects a non-IPv6 version with IPv6_Ext: only valid for IPv6, got version=4. It has a prefix, but the tail doesn't follow the <prefix>: <lowercase description>: … {value!r} form that #2232 and #2257 use ("must be X, not Y"). The method's own Note: quotes the message too (ESP: only valid for IPv6, got version=4), so it has to change along with it.
Reproduction (main9d504ead5)
>>> IPv6_Ext(b'\x06\x00\x00\x00\x00\x00\x00\x00', version=4)
ProtocolError: IPv6_Ext: only valid for IPv6, got version=4
Expected behavior IPv6_Ext: invalid version: must be 6, not 4, with the Note: quote updated to match. No test pins the text.
System information
Linux, CPython 3.14.9, checkout main9d504ead5.
Activity
JarryShaw commentedon Oct 26, 2026
Blocked until the #2286 fix PR merges. That fix edits
IPv6_Extinipv6_ext.py, and this one edits the same file, so it starts from the merged tree.JarryShaw commentedon Oct 27, 2026
Unblocking — #2286 merged. Open to pick up now.