Skip to content

fix(ipv6-opts): RPL option 0x23 raises AttributeError in _read_opt_unassigned #1196

Closed

Description

@JarryShaw

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

  1. JarryShaw commented on Oct 7, 2026

    @JarryShaw
    OwnerAuthor

    Blocked until #1194 merges, because both edit hopopt.py and ipv6_opts.py.

  2. added
    fixPull requests that fix a defect (fix: subject prefix)
    blockedDeferred pending another issue or decision; see the last comment for what unblocks it
    on Oct 7, 2026
  3. moved this to Blocked in PyPCAPKiton Oct 7, 2026
  4. JarryShaw commented on Oct 7, 2026

    @JarryShaw
    OwnerAuthor

    Unblocked: #1194 merged. A worker is on it now.

  5. added
    wipWork in flight - a covering PR is open or an agent is actively on it
    and removed
    blockedDeferred pending another issue or decision; see the last comment for what unblocks it
    on Oct 7, 2026
  6. removed
    wipWork in flight - a covering PR is open or an agent is actively on it
    on Oct 7, 2026
  7. added this to the PyPCAPKit v1.5 milestone on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixPull requests that fix a defect (fix: subject prefix)

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions