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-opts): RPL option 0x23 raises AttributeError in _read_opt_unassigned #1196
Describe the bug
Parsing any RPL option (type 0x23) in HOPOPT or IPv6-Opts raises AttributeError: 'RPLOption' object has no attribute 'data'. The RPLOption schema is routed to _read_opt_unassigned, which reads schema.data, a field that the RPL schema does not have. This happens at pcapkit/protocols/internet/hopopt.py:576 and ipv6_opts.py:564.
To Reproduce
On origin/main (a2f989fbd), run HOPOPT(io.BytesIO(bytes.fromhex('3b00230001020000'))). It raises the AttributeError above. IPv6_Opts behaves the same way. Only a zero-length option was tested, but the failure looks independent of the option's length.
Expected behavior
An RPL option (RFC 6553) is parsed by an RPL reader, or at least parsed without raising.
The #1194 cross-review found this, and I re-ran it on main.
Activity
JarryShaw commentedon Oct 7, 2026
Blocked until #1194 merges, because both edit
hopopt.pyandipv6_opts.py.JarryShaw commentedon Oct 7, 2026
Unblocked: #1194 merged. A worker is on it now.
docs(changelog): add the missing 1.5.0 entries and fix its markup (#1103
docs(changelog): second pass over the 1.5.0 changelog (#1103) (#1787)