Repository navigation
fix(foundation)!: a DF-clear whole IPv4 datagram releases the buffer its BUFID names, as RFC 791 section 3.2 requires (#3231) - #3250
Merged
Conversation
…its BUFID names, as RFC 791 section 3.2 requires (#3231)
Documentation build overview
14 files changed ·
|
Owner
Author
|
Good to go at
|
Contributor
|
Coverage: 94.98% (unit tier, Python 3.15,
Per-file detail: the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please follow the guide below
Put an
xinto 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 testpasses, and a test case covers the changeDescribed the user-visible change below and left its changelog entry to the maintainer, keeping
docs/source/changelog/andCHANGELOG.mdout of the diff, if the change is user-visible: N/A — centralisedWhat 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 featureperf— changes performance, not behaviourrefactor— changes neither behaviour nor performancetest— tests onlydocs— documentation onlyci— workflows or build toolingrelease— bumps the version or rolls up a distributionchore— anything elseAlso tick if it regenerates constant or registry tables, members keeping their numeric values (the
constlabel)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.IP.reassembly, so each now hands over a DF-clear one. The unreleased_ipv4_fragmentis renamed_ipv4_datagram, and Scapy's zero-length-frame guard (fix(toolkit): scapy ends the extraction on a zero-length RAW frame when IPv4 reassembly is on #1676) is back.wiresharkandscapyrelease nothing. Wireshark'sdissect_ip_v4(epan/dissectors/packet-ip.c, master) callsfragment_add_checkonly under MF or a non-zero offset. Scapy's_defrag_ip_pkt(scapy/layers/inet.py, 2.6.0 to master) buffers only those. DPKT has no reassembly, sodpktis as unset. Mimic Mode gains the site's rows, and its fix(foundation)!: keep unfragmented IPv4 datagrams out of IPv4 reassembly's output #2961 sentence is rewritten.Tests: the new
test_ipv4_whole_datagram_releases_buffer_3231_unit.py, plus the edited adapter, #2270,test_ipand engine-parity cases, fail on agit archive origin/developexport (43 failures). The #2961 module keeps only what #2961 still pins. Coverage of every touched module holds or rises. Pin moved:IPv4AdapterParityTestsnow expects frame 5 ofipv4-frag.pcap.tests/foundation,toolkit,utilities,integration,project,tests/protocols/*.py,tests/*.py, thefoundationunittest leg and the Sphinx-gated modules pass.test_conda_dev_release_gate_2458is the exception, and it fails the same way on the export.