Skip to content

perf(foundation): size each IP reassembly buffer to the fragments it holds #2957

Done

Description

@JarryShaw

Is your feature request related to a problem? Please describe.
Planned item 2 of 1.10.0 (batch 1, size M), from the release plan on #2805 (plan 7142070132, ruled 7142604771).

Describe the solution you'd like
PEP: Reassembly Beyond IP and TCP (Timing a partial datagram out: "narrowed rather than removed"). Depends: #2933 / PR #2940 (1.7). Today each held buffer costs 72.3 KiB, measured. The fix grows datagram and RCVBT up to IP_MAX_LENGTH. "Grown past IP_MAX_LENGTH" gets its own flag, the #1566 clip moves to the maximum length, and loose mode still zero-fills to TDL. Files: foundation/reassembly/ip. (F-ip-reassembly-prealloc)

Describe alternatives you've considered
The plan's leftovers (#2805, 7142071757) list what was deliberately left out.

Additional context
Tracked in #2948.

Activity

  1. added this to the PyPCAPKit v1.10 milestone on Nov 24, 2026
  2. added
    perf
    blocked
    on Nov 24, 2026
  3. moved this to Blocked in PyPCAPKiton Nov 24, 2026
  4. added
    wip
    and removed
    blocked
    on Nov 28, 2026
  5. moved this from Blocked to WIP in PyPCAPKiton Nov 28, 2026
  6. removed
    wip
    on Nov 29, 2026
  7. JarryShaw commented on Nov 29, 2026

    @JarryShaw
    OwnerAuthor

    Done in #3194, merged into develop as e4404400c for 1.10.0.

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

    perf

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions