1.9.0 – 2026-11-28¶
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. Its breaking changes, each marked a breaking
change to and ending with how to migrate, are to where pcapkit.corekit’s
multi-word modules and DNS’s name codec live, to the Mobility Header’s option
payloads, which parse as protocols rather than stay octets, and to the conda
package, which no longer bundles the optional dependencies.
pcapkit.corekit¶
Changed¶
a breaking change to the names of the
pcapkit.corekitmodules that follow, whose words an underscore now separates, ruled in review of #3142 (#2934), with the list taken on #3153 (#3172):pcapkit.corekit.schema.shortreadispcapkit.corekit.schema.short_read,pcapkit.corekit.schema.extlenispcapkit.corekit.schema.ext_len,pcapkit.corekit.const.ipheaderispcapkit.corekit.const.ip_headerandpcapkit.corekit.const.tcpheaderispcapkit.corekit.const.tcp_header. A common joined name, aspcapkit.corekit.schema.byteorder, keeps its form. The old paths raiseImportError, with no alias. To migrate, import from the new path, asfrom pcapkit.corekit.schema.short_read import hoist_short_read.a breaking change to where DNS’s name codec lives, now that ICMPv6’s DNS Search List option reads names too (#2934, #3142).
read_name,make_name,name_to_textandtext_to_labelsmove frompcapkit.protocols.application.dns.schemato the newpcapkit.corekit.schema.domain_name, andPOINTER_LIMITfrompcapkit.protocols.application.dns.consttopcapkit.corekit.const.domain_name.POINTER_LIMIT, with no re-export, so the old paths raiseImportError. DNS reads and writes names as before. To migrate,from pcapkit.protocols.application.dns.schema import read_namebecomesfrom pcapkit.corekit.schema.domain_name import read_name.
pcapkit.foundation¶
Added¶
SCTP user-message reassembly,
'sctp'in an extraction’sreassembly, bySCTP, whichpcapkit.foundation.reassemblyexports asSCTP_Reassembly, under the PCAP and PCAP-NG engines (#2935, #3137). It joins a message’s DATA chunks, a run of consecutive TSNs from theBbit to theEbit on one stream (RFC 9260 Section 6.9), or its I-DATA chunks by message ID, in FSN order (RFC 8260). A buffer is keyed by the ports and verification tag, so the fragments sent on any path of a multi-homed association join, and of a TSN or FSN received twice the first copy is kept; there is no timeout unless one is given. The messages areReassemblyData.sctp, each one’spacketits user data dispatched on its PPID bySCTP.analyze, as the newsctp_message()parses it. An incomplete message is reported as its received runs understrict=Trueand as its octets up to the first hole otherwise.TLS record reassembly,
'tls'in an extraction’sreassembly, byTLS, whichpcapkit.foundation.reassemblyexports asTLS_Reassembly, under the PCAP, PCAP-NG, DPKT, Scapy and PyPCAPFile engines (#2938, #3138), so a record split across TCP segments, which no segment’s TLS layer can parse, is parsed whole. Each direction of a connection on a port TCP binds to TLS is one octet stream in sequence order, from its SYN or a segment opening a record header to its FIN or RST, a segment ahead of the octets held waiting for them and the first copy of octets received twice kept. The newTLS.record_headercuts it into records, and every record is reported, asReassemblyData.tls, one a single segment holds included, since a boundary is known only from the record before it. A complete record’spacketis the record parsed by the newTLS.analyze_record, astls_record()parses it, and an incomplete one’s isNone, as DTLS reassembly leaves it. TCP reassembly’s sequence-number arithmetic moves to the newpcapkit.utilities.seqnum.unwrap(), which both read.
pcapkit.protocols¶
Added¶
Neighbor Discovery (RFC 4861) in
ICMPv6: types 133 to 137 decode intoRouterSolicitation,RouterAdvertisement,NeighborSolicitation,NeighborAdvertisementandRedirect, where 1.8.x kept their bodies as octets, with the flags IANA’s registries assign and a router preference as the newRouterPreference(RFC 4191), and rebuild byte-exact, whole or cut (#2934, #3142). Their options decode through the newICMPv6.__option__: those of RFC 4861 Section 4.6, Route Information (RFC 4191), RDNSS and DNSSL (RFC 8106), RA Flags Extension (RFC 5175), Captive-Portal (RFC 8910), PREF64 (RFC 8781), Advertisement Interval and Home Agent Information (RFC 6275), and Nonce (RFC 3971). Any other option keeps its octets asUnknownOption, and a Length of zero, or one the option’s layout does not fill, raisesProtocolError.register_icmpv6_option()registers a parser for a further option. The option types are the newNDOption, crawled from IANA; it andRouterPreferenceare exported asICMPv6_NDOptionandICMPv6_RouterPreference.LLC(IEEE Std 802.2) andSNAP(RFC 1042), dissectors for Logical Link Control and the Subnetwork Access Protocol (#2936, #3143). An Ethernet frame whose Length/Type field is a length, up to0x05DC, the body of an IEEE 802.11 data frame carrying an MSDU, and a PCAP or PCAP-NG frame ofLINKTYPE_ATM_RFC1483, whose payloads 1.8.x kept asRaw, dispatch to LLC; a protected, A-MSDU, reserved or no-data 802.11 body staysRaw. LLC reads the DSAP, the SSAP with its C/R bit and the I, S or U control field, and hands an I or UI PDU’s information field on by its DSAP throughLLC.__proto__; a DSAPLLC.__paired__flags, as SNAP’s and STP’s are, is handed on only when the SSAP, less its C/R bit, is the same.register_lsap()registers a protocol for a further DSAP, itspairedsetting the flag. SNAP hands its payload on by its protocol identifier as an EtherType under the OUI00-00-00(RFC 9542 Section 3), and keeps itRawunder any other.Ethernetkeeps the octets past a length, its pad among them, astrailer, and itsmake()takestrailerand refuses a length or trailer it would not read back. The SAPs and the S and U functions arepcapkit.const.llc, generated bypcapkit.vendor.llcand exported asLLC_LSAP,LLC_SupervisoryFunctionandLLC_ModifierFunction.STP, the abstract base of a versioned family, and its membersSTPv0(IEEE Std 802.1D-2004),RSTPandMSTP(IEEE Std 802.1Q-2022), dissectors for the Spanning Tree Protocol’s BPDUs, carried by an LLC PDU whose DSAP and SSAP are both0x42(#3115, #3156). A parse gives STPv0 for a Configuration or Topology Change Notification BPDU whatever its version, MSTP for a version 3 BPDU that passes MST’s length checks, and RSTP for an RST BPDU or a later-version one those checks reject; any other BPDU, Shortest Path Bridging’s SPT BPDU included, is kept asRawwith the reason as its error.version0, 2 or 3 names the member on a parse or a build, andprotocol_versionkeeps the octet as captured. The protocol versions, BPDU types and port roles arepcapkit.const.stp, generated bypcapkit.vendor.stpand exported asSTP_ProtocolVersion,STP_BPDUTypeandSTP_PortRole.verification of HIP’s
HIP_MAC,HIP_MAC_2,HIP_SIGNATUREandHIP_SIGNATURE_2parameters, over the scope RFC 7401 Section 6.4 gives (#2939, #3140). Given aHIPContextascontext,HIPrecords each outcome, aHIPAuthStatus, as the parameter’shmac_statusorsignature_status, warning with aProtocolWarningon one that fails or whose key cannot be applied; a parse with no context records nothing, and a parse and a rebuild are otherwise unchanged. The context holdsHIPAssociationinstances, an association’s HIP-gl and HIP-lg integrity keys, given or derived byHIPAssociation.from_keymat(RFC 7401 Section 6.5), for the HMACs, which need only the standard library; andHIPIdentityinstances, a host’s HIT and parsedHOST_ID, for the RSA, DSA, ECDSA and EdDSA signatures, which need thecryptoextra. ECDSA_LOW, pre-hashed EdDSA and HIP version 1 are reported asUNSUPPORTED. An association’s keys stay out of its__repr__()and of the data model, so no dump carries them.
Changed¶
a breaking change to the Mobility Header’s option payloads that belong to other protocols, which
MHparses as the protocol class its new registries hold, where 1.8.x kept their octets (#2937, #3136). TheselectorofTrafficSelectorSuboptionandQoSTrafficSelectorAttributeis parsed asMH.__selector__holds for itsts_format(RFC 6088). Thedataof options 54, 60 and 61 and thecontextof options 56 and 57, the multicast options of RFC 7028, RFC 7161 and RFC 7411, are parsed asMH.__multicast__holds for the option and the octet naming the payload’s format. Each field holds aProtocolBase, aRawwhere no dissector is registered, as every key is by default, and a dump nests it.MH.register_selector,MH.register_multicast,register_mh_selector()andregister_mh_multicast()register a dissector, refusing TS format 0 and a pair the RFCs do not define. A parse given one warns with aProtocolWarningand keeps the payloadRaw, its reason as the error. The makers takebytesor a parsed protocol. To migrate, read the octets one level down, asoption.selector.datawhere it wasoption.selector, and likewiseoption.data.datafor options 54, 60 and 61 andoption.context.datafor options 56 and 57.
pcapkit.vendor¶
Changed¶
Vendor.split_referenceswrites a registry’s citation of a dated IEEE standard, such asIEEE Std 802.1Q-2014, as the documentation’s newieeerole, which links the standard’s IEEE SA page as therfcrole links an RFC; an undated one, such asIEEE Std 802.3, stays text (#3168, #3173). The generated enumerations’ docstrings cite them that way, as do the docstrings and pages citing a dated IEEE standard.
Project infrastructure¶
Changed¶
a breaking change to the conda package: a release is published to Anaconda as one
noarch: pythonpackage, carrying the core functionality alone, where each release had a package per platform and Python that vendored every optional dependency, and outgrew the storage quota, so 1.8.1’s uploads failed (#3133, #3145). It takesaenum,chardetandtyping_extensionsfrom conda-forge and vendorsdictdumperandtbtrim, so it no longer carries thecryptography,emojiandpycratethat 1.8.1’s bundled. Without them an encrypted ESP payload is not decrypted, a HIP signature is reported asUNSUPPORTED, NGAP is kept asRaw, and the command line prints plain text. To migrate, install them frompipin the environment, aspip install pycrate cryptography emoji.every build of the documentation, on GitHub Pages and on Read the Docs, names its version in the sidebar and opens the same page in
stable,latest(develop) or its own release on Read the Docs, and the changelog’s index and each entry link that release’s documentation, unless Read the Docs holds no build of it (#3134, #3144, #3139, #3155). The documentation’s front page has a table of the versions, which the README links.the
docsextra pinssphinx-autodoc-typehints3.17.7, where 1.8.1 pinned 3.17.6 (#3169).