Repository navigation
fix(reassembly): abandon an IPv6 datagram on an overlapping fragment (#2547) - #2569
Merged
Merged
Conversation
…2547) - IP.__discard_overlap__ (False; IPv6 sets True) makes reassembly abandon a datagram once a fragment overlaps another, per RFC 8200 section 4.5; IPv4 keeps RFC 791's newest-wins overwrite. - An exact duplicate (same offset, length, M flag and data) is dropped: only its frame number is kept in index, and its header is not taken. - Completion.OVERLAP reports the abandoned datagram via IP.submit(overlap=); the overlapping fragment is not written, and the event is logged. - Buffer.extent records each merged fragment's (start, stop, mf), sorted, for IP._find_overlap; it stays empty for IPv4. - Tests: new test_ipv6_overlap_2547_unit.py; the #1566, #1585 and payload round-trip suites now expect OVERLAP for their overlapping IPv6 cases. - Docs: IPv6 datagram and buffer structures, departures list, ip.rst.
Owner
Author
|
Cross-review (Sonnet) at |
Contributor
|
Coverage: 93.95% (unit tier, Python 3.15,
Per-file detail: the |
JarryShaw
added a commit
that referenced
this pull request
Nov 1, 2026
- Added: one's-complement checksum verification and computation (#2543), and the IPX and SCTP registration wrappers (#2521). - Folded into unreleased entries: LinuxSLL/FRAD/Netlink registries (#2527), the IGMP class names (#2542), TLS record chaining and the SSLv2 trial's warnings (#2537), DTLS reassembly via Extractor and toolkit (#2528), and IP_Pseudo's walk at any depth (#2543). ICMP drops its stale checksum line. - Breaking: make() checksums, DRARP's module (#2540), IPv6 overlapping fragments (#2569), TCP_GAP_LIMIT replacing TCP.__window__ (#2579), and Extractor/extract's positional dtls (#2528). - Changed: member order (#2490), conventions (#2542, #2521, #2570), CI -n logical (#2572). Fixed: AppType.get (#2568), trial warnings (#2519, #2577). - CHANGELOG.md regenerated; util/changelog_md.py --check passes.
1 of 5 tasks
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.
make pylint,make mypy,make isort)make testpasses, and a test case covers the changeWhat is the purpose of your pull request?
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 elseconst— regenerates constant or registry tables, members keeping their numeric valuesDescription of your pull request and other information
Closes #2547.
Completion.OVERLAP. Exact duplicates are dropped and the other fragments kept, as the RFC allows. IPv4 keeps RFC 791's newest-wins.IP.__discard_overlap__, set onIPv6, following__isolate_atomic__(fix(reassembly): unfragmented datagram with a buffered BUFID is dropped and flushes IPv6 #2270). Overlap is checked to the octet against the declared extents in the newBuffer.extent.Buffergains a requiredextentfield, andCompletiongainsOVERLAP.