Repository navigation
Conversation
…mbly's output (#2961) IPv4 reassembly follows Wireshark, by the owner's ruling: only a fragment, MF set or a non-zero fragment offset, enters it, whatever its DF flag. - toolkit.pcap and toolkit.pcapng: both IPv4 adapters read the layer through a new _ipv4_fragment, which hands over fragments only, DF set or clear, rather than every datagram with DF clear. - IP.reassembly: a whole IPv4 datagram handed over by another engine is ignored. It is not reported and flushes no buffer, its BUFID's included, which replaces the RFC 791 flush of #2270; its timestamp still advances the timeout. IPv6 atomic fragments are unchanged. - Docs and tests that relied on a whole datagram coming out as a one-fragment datagram now use two fragments or expect none.
Documentation build overview
10 files changed ·
|
Owner
Author
|
Good to go at
|
Contributor
|
Coverage: 94.93% (unit tier, Python 3.15,
Per-file detail: the |
This branch has not been deployed
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 defectfeat— 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
IPv4 reassembly follows Wireshark, by the owner's ruling on #2961 (option C): only a fragment, MF set or a non-zero offset, enters it, and DF plays no part.
toolkit.pcap,toolkit.pcapng: both IPv4 adapters read the layer through a new_ipv4_fragment, which hands over fragments only, DF set or clear, rather than every datagram with DF clear.IP.reassembly: a whole IPv4 datagram another engine hands over is ignored. It is not reported and flushes no buffer, its BUFID's included, replacing the RFC 791 flush of fix(reassembly): unfragmented datagram with a buffered BUFID is dropped and flushes IPv6 #2270. Its timestamp still advances the timeout, as each frame's does in an extraction. IPv6 atomic fragments are unchanged.Every test in the new
test_ipv4_unfragmented_datagrams_2961_unit.pyhas subtests that fail on an untoucheddevelopexport. The DPKT and Scapy adapters, owned by #3188, still dismiss a fragment with DF set.Closes #2961