Skip to content

fix(tcp): reserved bits in the TCP header and in POCSP/Quick-Start options are written back as zero #1211

Closed

Description

@JarryShaw

Describe the bug
The header's reserved nibble and the reserved bits of the POCSP and Quick-Start options are neither mapped by the schema nor carried by the data model, so a rebuild writes them as zero. See schema/transport/tcp.py:1118-1121 (header), :598-601 (POCSP) and :678-685 (QS), and the reader at transport/tcp.py:472.

To Reproduce
A header with byte 12 = 5e rebuilds with 50. A POCSP option 0a033f00 rebuilds as 0a030000. QS 1b08834012345679 rebuilds as 1b08034012345678.

Expected behavior
The reserved bits round-trip unchanged.

Found by the transport round-trip audit (#1202). I re-ran the repro on main at 630f0a581.

Activity

  1. added
    fixPull requests that fix a defect (fix: subject prefix)
    pendingAccepted and unstarted - nobody is on it and nothing blocks it
    on Oct 7, 2026
  2. moved this to Pending in PyPCAPKiton Oct 7, 2026
  3. JarryShaw commented on Oct 7, 2026

    @JarryShaw
    OwnerAuthor

    Blocked until the MPTCP PR for #1212–#1217/#1220 merges, because both edit transport/tcp.py and its schema and data modules.

  4. added
    blockedDeferred pending another issue or decision; see the last comment for what unblocks it
    and removed
    pendingAccepted and unstarted - nobody is on it and nothing blocks it
    on Oct 7, 2026
  5. JarryShaw commented on Oct 7, 2026

    @JarryShaw
    OwnerAuthor

    Unblocked: #1254 merged at 19:08Z, so the file conflict is gone. Back to pending until a worker picks it up.

  6. added
    pendingAccepted and unstarted - nobody is on it and nothing blocks it
    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
    pendingAccepted and unstarted - nobody is on it and nothing blocks it
    on Oct 7, 2026
  7. removed
    wipWork in flight - a covering PR is open or an agent is actively on it
    on Oct 7, 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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions