Repository navigation
release: ship 1.9.0 - #3190
Merged
Merged
release: ship 1.9.0#3190
Conversation
Pushed by Sync Develop (#3102): https://github.com/JarryShaw/PyPCAPKit/actions/runs/45911084480
Pushed by Sync Develop (#3102): https://github.com/JarryShaw/PyPCAPKit/actions/runs/45931382228
Pushed by Sync Develop (#3102): https://github.com/JarryShaw/PyPCAPKit/actions/runs/45931658848
Pushed by Sync Develop (#3102): https://github.com/JarryShaw/PyPCAPKit/actions/runs/45936621723
Pushed by Sync Develop (#3102): https://github.com/JarryShaw/PyPCAPKit/actions/runs/45946805445
Pushed by Sync Develop (#3102): https://github.com/JarryShaw/PyPCAPKit/actions/runs/45952186097
Pushed by Sync Develop (#3102): https://github.com/JarryShaw/PyPCAPKit/actions/runs/45959149873
…oads (#2937) (#3136) MH parses the payloads that belong to other protocols through two class-level maps, each entry a protocol class and Raw where none is registered: * MH.__selector__, keyed on ts_format, for the RFC 6088 traffic selectors of the flow identification sub-option and the QoS attribute; * MH.__multicast__, keyed on the option type and the octet naming its payload's format, for options 54, 56, 57, 60 and 61, holding exactly the pairs RFC 7028, RFC 7161 and RFC 7411 define. MH.register_selector, MH.register_multicast and the register_mh_selector and register_mh_multicast wrappers write them, and refuse TS format 0 and a pair the RFCs do not define. On read, such a key warns and keeps the payload Raw with the reason as its error. The payload is parsed apart from the frame, so it joins no protocol chain. BREAKING CHANGE: those data model fields hold a ProtocolBase, Raw by default, rather than bytes; read the octets with .data. The makers take either.
- add foundation.reassembly.sctp.SCTP: a DATA message is a run of consecutive TSNs from B to E on one stream, U bit and ordered SSN (RFC 9260 6.9); an I-DATA message is keyed by stream, U bit and MID and ordered by FSN (RFC 8260 2.2.3); duplicates keep the first copy - buffer per ports and verification tag, so fragments sent over any path of a multi-homed association join (RFC 9260 6.4); a message reports its lowest fragment's addresses; no timeout by default; strict=False reports the octets up to the first hole - feed it from the default engines through toolkit.pcap and toolkit.pcapng sctp_reassembly, registered as 'sctp' - add foundation.analysis.sctp.sctp_message, parsing user data by PPID through SCTP.analyze, which a datagram's deferred packet also runs - ReassemblyData gains the sctp field; docs and the reassembly integration page list SCTP Tests: tests/foundation/reassembly/test_sctp_reassembly_2935_unit.py, plus the shipped-reassembler tables it extends.
…3140) - HIP.read(), given a HIPContext, verifies HIP_MAC, HIP_MAC_2, HIP_SIGNATURE and HIP_SIGNATURE_2 over the scope RFC 7401 section 6.4 gives, and records a HIPAuthStatus as the parameter's hmac_status or signature_status; nothing else of the parse changes. - HIPAssociation holds an association's HIP-gl and HIP-lg integrity keys, or derives them from Kij through KEYMAT (section 6.5); HMACs use RHASH from the standard library. - HIPIdentity holds a host's HIT and HOST_ID, for its signatures and the Responder's HIP_MAC_2; RSA-PSS, DSA, ECDSA P-256/P-384 and Ed25519/Ed448 verify through the optional cryptography extra. - hip.const gains the HIT Suite, cipher and curve tables; the HIP page documents the context and the algorithm support. New test_hip_auth_2939_unit: 24 tests, all failing on develop; only its signature class needs cryptography, and test_tier_guard pins it as the third module with a crypto gate.
Pushed by Sync Develop (#3102): https://github.com/JarryShaw/PyPCAPKit/actions/runs/46031396782
#3143) - LLC (IEEE 802.2): DSAP with its I/G bit, SSAP and its C/R bit, and the I, S and U control field formats; an I or UI PDU's information field is dispatched by DSAP through LLC.__proto__, and any other PDU's kept raw. - LLC.__paired__ flags a DSAP handed on only with the same SSAP, C/R masked: SNAP ships paired (RFC 1042); LLC.register and register_lsap take paired, and a restored shipped entry keeps its flag. - SNAP (IEEE 802): OUI and PID; under OUI 00-00-00 the PID is an EtherType dispatched through Link.__proto__ (RFC 9542 Section 3), else raw. - Ethernet: a Length/Type up to 0x05DC bounds an LLC PDU, and the octets past it are the trailer, declared on the data model; make() refuses a length or trailer it would not read back. - 802.11: the body of an unprotected data frame of a subtype carrying an MSDU, not an A-MSDU, is LLC. - Bind LLC at LinkType ATM_RFC1483; crawl the IEEE RA's LSAP listing and the 802.2 supervisory and modifier functions into pcapkit.const.llc. - Docs pages, the llc dispatch family, and unit tests.
Pushed by Sync Develop (#3102): https://github.com/JarryShaw/PyPCAPKit/actions/runs/46031740863
…sh builds (#3148) (#3149) - 2284: drop `test_get_stays_case_sensitive`, whose code 908's `test_value_lookup_stays_case_sensitive` repeats. - 923: drop the `CriticalityGetDeletionTests` value miss, absent override and name miss, which 877's `CriticalityGetTests` asserts the same way. - test_ip: drop the conflict-on-completion test, a subset of `test_conflicting_full_overlap_records_conflict_and_last_write_wins` on the same fragments, and keep its point in that test's docstring. - MH reserved padding: bracket the reserved field in each capture and derive the fresh build from it, so `CASES` holds one string per row. Each drop was mutation-checked against its surviving twin; no pcapkit line or branch loses coverage.
…lder (#3148) (#3150) - 2298: drop TestHTTPv2SettingsMessage, whose one test is the same code as 2274's test_other_settings_types_are_still_rejected. - ssl_tls_dtls: drop VersionDispatchTests' test_malformed_client_hello_raises_through_dispatch_same_as_before, the same code as SSLFamilyUnitTests' odd cipher_suites test; that docstring now names the dispatch sniff. - tls_dtls_roundtrip: merge the two unfragmented-ClientHello tests, which parse one record, into one asserting cookie and cipher_suites. - tls_extensions_2514: move the alias and supported_versions asserts into test_malformed_bodies_stay_raw_and_rebuild's table and drop test_a_malformed_extension_leaves_version_detection_alone. - New tests/protocols/application/_http2.py holds http2_frame_bytes, copied in test_http_unit, test_httpv2_negative_length and test_httpv2_payload_length. A named pcapkit mutation turns the kept test red for each drop and merge.
- test_sweeps_on_latest_only_1732: TestTheStepSelectsByLeg's five tests become one, each a subtest under its old name, so setUpClass runs the steps on one xdist worker rather than on each that drew a test. - TestTheIgnoresAreTheLatestTier moves to test_latest_ignores_by_pytest_1732: its child pytest imports pcapkit, so the rest of 1732 is now a project pin. - tests/_sources.py: text, comments and per-file products of a parse, cached per process and checked against each file's inode, size, mtime and ctime; a file changed within RACY_NS is never kept, trees are not kept, and paths outside the checkout are never cached. - test_sources_loader_3148_unit pins that a same-size rewrite is read again. - ext_len 2854, per_class_import_guard, docs epilog 1936, docs roles 1103, issue refs in comments and unit_tests_queue's docs readers scan through it, so a repeated tree scan in one process parses each file once. The touched modules, tests/project and the root suites pass.
#3152) - Add `install_hook_sentinels(test)`, which installs stand-ins for both exception hooks and registers the restore as a cleanup on `test`. - Use it in place of the copied block in seven places: the six exact setUp copies and `DecoratorTests._sentinel_hooks`, which is removed. - Teach the #2637 import-order scan that the helper call installs the sentinels, so the converted setUps stay under it, and pin the helper's restore, which no test checked before. - Leave the A5 trio and `_HookGuard` in 1845 alone: their sentinels forward to the hooks they replaced instead of swallowing. pcapkit coverage of the touched modules is unchanged, file for file.
…#3148) (#3154) - pcapng truncation, #2711 and #2703: the every-offset loops move to LATEST siblings, as the tier rule has a sweep (#1732, #1958). ALL keeps hand-picked cuts that reach every line and branch the sweeps reach. - #1610: the cut-frame bytes and warn-once loops are one SHAPES x PAST loop, asserting both, for the chains shape too. - #1619: drop the frame-limit-first guard; the both-limits test fails on the over-broad fix it guarded against. - tests/protocols/_rebuild.py: Logged, reported and depth, which these modules each copied. Coverage of every pcapkit file, ALL alone and ALL with LATEST, is unchanged.
Pushed by Sync Develop (#3102): https://github.com/JarryShaw/PyPCAPKit/actions/runs/46058620903
…2938) (#3138) - add pcapkit.foundation.reassembly.tls.TLS, registered as 'tls': each TCP direction is one octet stream, followed from its SYN or from a segment whose payload opens a record header, and cut into records by their headers (RFC 9846 section 5.1); out-of-order octets wait and the first received win (RFC 9293 sections 3.4 and 3.10); a FIN or RST closes it - report every record of the stream, COMPLETE, or PARTIAL/TIMEOUT with no packet when a hole or the stream's end cuts it - add TLS.record_header and TLS.analyze_record, and the public wrapper pcapkit.foundation.analysis.tls.tls_record - refuse a TLS or legacy DTLS record declaring more than 2^14 + 2048 octets (RFC 5246 section 6.2.3), and a DTLS 1.3 unified-header one more than 2^14 + 256 (RFC 9147 section 4), in parse and make, first or further - add tls_reassembly adapters for pcap, pcapng, dpkt, scapy and pypcapfile, keeping the TCP adapter's record of a segment on a port TCP binds to TLS - add ReassemblyData.tls; Deferred admits the TLS record header - move TCP reassembly's _unwrap to pcapkit.utilities.seqnum.unwrap, which both reassemblers read - document the reassembler, its analysis and the toolkit adapters Tests: new TLS reassembly and seqnum tests fail on origin/develop; tests/project, tests/foundation, tests/toolkit, tests/protocols/application pass.
ICMPv6 decoded MLD but kept Neighbor Discovery, types 133 to 137 (RFC 4861 section 4), and their options as raw message bodies. * Decode the five messages and, through a new ICMPv6.__option__ map with register_icmpv6_option and the icmpv6-nd-option family, the options of RFC 4861 section 4.6, RFC 4191, 8106, 5175, 8910, 8781, 6275 and 3971. Any other option keeps its octets. * Crawl IANA's ND option registry into NDOption, and RFC 4191's preference values into RouterPreference. * Move DNS's name codec, which the DNSSL option reads too, to pcapkit.corekit.schema.domainname, and POINTER_LIMIT to pcapkit.corekit.const.domainname, with no re-export. Every message and option round-trips byte-exact, whole and cut at every octet; tests/project and the affected protocol suites pass.
Pushed by Sync Develop (#3102): https://github.com/JarryShaw/PyPCAPKit/actions/runs/46075315361
…42 (#3115) (#3156) - STP: the abstract base of the Spanning Tree Protocol family, bound in LLC.__proto__ at LSAP 0x42 and flagged in LLC.__paired__, so a PDU is handed on only with DSAP and SSAP both 0x42. It picks the member as IEEE 802.1Q-2022 clause 14.4 validates a BPDU; `version` (0, 2, 3) names the member on both paths, and from_data reads the data model. - STPv0: Configuration and TCN BPDUs (IEEE 802.1D-2004 clause 9), read whatever their Protocol Version Identifier, as clause 14.4 does. - RSTP: RST BPDUs of version 2, and of version 3 or more failing the MST checks, the 35-octet form without a Version 1 Length included. - MSTP: version 3 MST BPDUs with the MST Configuration Identifier and their MSTI Configuration Messages; a later version holding one is the SPT BPDU, which no member reads or builds, so it is left raw. - Shared Bridge and Port Identifier and flag data models; reserved bits kept, so parse -> rebuild and make -> parse are byte-exact. - pcapkit.const.stp and its DATA crawlers: Protocol Version Identifiers, BPDU Types and Port Roles; docs pages, convention rows, the llc dispatch case, sweep table rows and unit tests.
…py (#3148) (#3157) - New tests/vendor/_crawler.py holds normalize(), the whitespace pass Vendor.__init__ writes a constant file through; import_from_checkout(), the skip unless the modules come from this checkout; make_crawler(), a crawler with NAME, DOCS and record set but no fetch or write; and defined_crawlers() and is_crawler(), the filesystem crawler discovery. - The batch's vendor modules and test_const_enum_lookup drop their copies for them; every assertion stays. test_const_enum_lookup keeps the _normalize name, which test_const_enum_builtin_parity and the #923 provenance test import from it. - Copies whose meaning differs stay: ftp's count(None) crawler, radiotap's multi-page regeneration, the ipx no-network constructions, and each module's HAS_* dependency gate. Tests: the touched modules, tests/project, the root suites and the vendor and const unittest legs pass; coverage of pcapkit is unchanged.
Bumps [sphinx-autodoc-typehints](https://github.com/tox-dev/sphinx-autodoc-typehints) from 3.17.6 to 3.17.7. - [Release notes](https://github.com/tox-dev/sphinx-autodoc-typehints/releases) - [Changelog](https://github.com/tox-dev/sphinx-autodoc-typehints/blob/main/docs/changelog.rst) - [Commits](tox-dev/sphinx-autodoc-typehints@3.17.6...3.17.7) --- updated-dependencies: - dependency-name: sphinx-autodoc-typehints dependency-version: 3.17.7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [sphinx-autodoc-typehints](https://github.com/tox-dev/sphinx-autodoc-typehints) from 3.17.6 to 3.17.7. - [Release notes](https://github.com/tox-dev/sphinx-autodoc-typehints/releases) - [Changelog](https://github.com/tox-dev/sphinx-autodoc-typehints/blob/main/docs/changelog.rst) - [Commits](tox-dev/sphinx-autodoc-typehints@3.17.6...3.17.7) --- updated-dependencies: - dependency-name: sphinx-autodoc-typehints dependency-version: 3.17.7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…3171) Bumps [packaging](https://github.com/pypa/packaging) from 26.3 to 26.4. - [Release notes](https://github.com/pypa/packaging/releases) - [Changelog](https://github.com/pypa/packaging/blob/main/CHANGELOG.rst) - [Commits](pypa/packaging@26.3...26.4) --- updated-dependencies: - dependency-name: packaging dependency-version: '26.4' dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…s sleep (#3148) (#3183) - test_graalpy_shards_1963: test_every_test_runs_once collects the whole tier and four of the script's parts (#2899) side by side, rather than 28 collections in series; each part checks its own run count and skips. Each collection runs in a session of its own, so a timeout kills the part's pytest as well as the script. - The timeout test's stub ends its background sleep in its INT trap; the sleep held the step's output open for 30 s. - PROJECT_BOUNDARY stays at test_pypy_w: the two later cuts measured gave a slower half 1. The comment above project-tests names the runs. tests/project and the root suites pass locally at -n 2.
1.9.0 decodes Neighbor Discovery in ICMPv6, adds dissectors for IEEE 802.2 LLC and SNAP and for the Spanning Tree Protocol family LLC carries, reassembles SCTP user messages and TLS records split across TCP segments, and verifies HIP's HMAC and signature parameters given the keys (#2934, #2936, #3115, #2935, #2938, #2939). Its breaking changes move pcapkit.corekit's multi-word modules and DNS's name codec, parse the Mobility Header's option payloads as protocols, and drop the optional dependencies from the conda package (#2934, #2937, #3133). __version__ and CITATION.cff say 1.9.0, released 2026-11-28; SECURITY.md lists 1.9.x as the current stable line, 1.8.x and older as unpatched; 1.9.0.rst, changelog.rst and the regenerated CHANGELOG.md date 1.9.0 2026-11-28.
Owner
Author
|
Good to go at
Merge it before 2026-11-29 00:00 UTC, or re-date it first. |
5 of 14 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.
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 — the release bump only dates the central 1.9.0 entry, as 1.8.0's didWhat 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
The 1.9.0 version bump, the one manual step of the release process. It is one commit,
bbbf1174a0, made ondevelopat90edfae1d0, shaped like 1.8.0's (#3100):__version__andCITATION.cffmove to1.9.0, withdate-releasedset to2026-11-28in UTC, andconda/buildreads0.SECURITY.mdnames 1.9.x as current stable and 1.8.x and older as no longer patched.1.9.0.rst,changelog.rstand the regeneratedCHANGELOG.mdreplace "unreleased" with 2026-11-28.develop. After chore: merge develop into main for 1.9.0 (#2944) #3189's merge commit lands, it shrinks to the six-file bump.githubjob waits for approval. If it merges after 2026-11-28 UTC,date-releasedand the changelog dates need moving to that day.