Skip to content

fix(foundation)!: a DF-clear whole IPv4 datagram releases the buffer its BUFID names, as RFC 791 section 3.2 requires (#3231) - #3250

Merged
JarryShaw merged 1 commit into
developfrom
fix/3231-whole-datagram-releases-buffer
Nov 30, 2026
Merged

JarryShaw merged 1 commit into
developfrom
fix/3231-whole-datagram-releases-buffer

Conversation

@JarryShaw

Copy link
Copy Markdown
Owner

Please follow the guide below

  • Put an x into every box [ ] that applies to your pull request (like this: [x])

  • Use the Preview tab to see how your pull request will look

  • Searched for similar pull requests

  • Followed the coding style (make pylint, make mypy, make isort)

  • make test passes, and a test case covers the change

  • Described the user-visible change below and left its changelog entry to the maintainer, keeping docs/source/changelog/ and CHANGELOG.md out of the diff, if the change is user-visible: N/A — centralised

What is the purpose of your pull request?

Tick the commit type your subject line carries.

  • fix — corrects a defect (fix!: breaking, the default changes)

  • feat — adds a feature

  • perf — changes performance, not behaviour

  • refactor — changes neither behaviour nor performance

  • test — tests only

  • docs — documentation only

  • ci — workflows or build tooling

  • release — bumps the version or rolls up a distribution

  • chore — anything else

  • Also tick if it regenerates constant or registry tables, members keeping their numeric values (the const label)


Description of your pull request and other information

Closes #3231.

A whole IPv4 datagram with DF clear now releases the buffer its BUFID names, reported PARTIAL (RFC 791 §3.2). It is still not reported itself (#2961), and one with DF set is atomic and still dismissed (RFC 6864 §4.1). Breaking for a DF-clear whole datagram that reuses a pending BUFID.

Tests: the new test_ipv4_whole_datagram_releases_buffer_3231_unit.py, plus the edited adapter, #2270, test_ip and engine-parity cases, fail on a git archive origin/develop export (43 failures). The #2961 module keeps only what #2961 still pins. Coverage of every touched module holds or rises. Pin moved: IPv4AdapterParityTests now expects frame 5 of ipv4-frag.pcap. tests/foundation, toolkit, utilities, integration, project, tests/protocols/*.py, tests/*.py, the foundation unittest leg and the Sphinx-gated modules pass. test_conda_dev_release_gate_2458 is the exception, and it fails the same way on the export.

…its BUFID names, as RFC 791 section 3.2 requires (#3231)
@JarryShaw JarryShaw added bug Issues reporting a defect (set by the bug report template; a default, not an assessment) breaking Breaks public-facing behaviour or API (apply alongside the type label) review: pending No verdict for the current head - never reviewed, or the head moved since the last one labels Nov 30, 2026
@JarryShaw JarryShaw moved this to In review in PyPCAPKit Nov 30, 2026
@JarryShaw JarryShaw added review: running A cross-review is in flight against the current head - no verdict yet and removed review: pending No verdict for the current head - never reviewed, or the head moved since the last one labels Nov 30, 2026
@github-actions github-actions Bot added this to the PyPCAPKit v1.10 milestone Nov 30, 2026
@JarryShaw

Copy link
Copy Markdown
Owner Author

Good to go at 09b88c340, from a Sonnet cross-review and my read of the diff.

@JarryShaw JarryShaw added review: good-to-go Cross-review at the current head says ready; CI state is separate and removed review: running A cross-review is in flight against the current head - no verdict yet labels Nov 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Coverage: 94.98% (unit tier, Python 3.15, 09b88c340, Unit Tests run success)

Package Statements Missed Branches Partial Cover
pcapkit (top level) 116 4 20 2 95.59%
pcapkit/const 22386 224 3186 191 98.28%
pcapkit/corekit 3162 83 1060 40 96.85%
pcapkit/dumpkit 423 3 148 5 98.60%
pcapkit/foundation 4355 24 1368 26 99.13%
pcapkit/interface 112 4 40 3 95.39%
pcapkit/protocols 29008 154 7678 128 99.22%
pcapkit/toolkit 1279 35 474 9 96.69%
pcapkit/utilities 669 7 186 5 98.60%
pcapkit/vendor 6575 2396 1478 258 60.24%

Per-file detail: the coverage-html artifact of this run.

@JarryShaw
JarryShaw merged commit 4c792ef into develop Nov 30, 2026
80 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in PyPCAPKit Nov 30, 2026
@JarryShaw
JarryShaw deleted the fix/3231-whole-datagram-releases-buffer branch November 30, 2026 18:40
@JarryShaw JarryShaw removed the review: good-to-go Cross-review at the current head says ready; CI state is separate label Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Breaks public-facing behaviour or API (apply alongside the type label) bug Issues reporting a defect (set by the bug report template; a default, not an assessment)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

fix(foundation)!: a DF-clear whole IPv4 datagram releases the buffer its BUFID names, as RFC 791 section 3.2 requires

1 participant