Repository navigation
Open
Conversation
…ANA registry, and pytest suite
This was referenced Nov 21, 2026
- Fix PEP 639 pyproject.toml metadata (hatchling>=1.27, license-files, drop conflicting License classifier) and align CI/docs ruff target & copyright - Fix accepted_tids cache invalidation across restore_state, tuple/namedict transitions, add_template, and multiple domains (Fixes #38) - Prevent empty 4-byte set headers on EndOfMessage/flush and keep delete_template atomic on EndOfMessage (Fixes #39) - Enforce strict ADT-based RLE validation, allow fixed string/octetArray resize to VARLEN, reject non-int in _make_int_encoder, and normalize aware datetimes in valstr (Fixes #40) - Check bounds and tuple arity explicitly in Template.encode_to instead of masking struct.error as EndOfMessage in export_record (Fixes #41) - Support RFC 3954 §6.1 NetFlow v9 Options Templates without ID collision, require v9 PDU header in StreamPduBuffer, fix v9 sequence double-counting, and reject 0-field v9 templates (Fixes #42) - Initialize MessageStreamWriter default ODID 0, reset curtid on set_domain, and reject export without active template (Fixes #43) - Count IPFIX messages rather than records in MessageStreamReader.msgcount (Fixes #44) - Validate withdrawal TID matching setid and Options Template scopecount bounds; share template-set iteration, spec stream loading, and XML parsing helpers; avoid global IE pollution in ipfixstat
This was referenced Nov 23, 2026
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.
Summary
Reclaims
python-ipfixfor a backwards-compatiblev0.10.0stabilization release (first of a two-release plan leading tov1.0.0):Packaging, CI & Python 3.11+ Modernization
setup.py/setup.cfg/MANIFEST.intopyproject.toml(PEP 621 / PEP 639,hatchling>=1.27,requires-python = ">=3.11",license = "LGPL-3.0-or-later",license-files = ["LICENSE.txt"], console scriptsipfix2csvandipfixstatviaipfix/cli.py).ipfix/compat.py,from __future__,doctest-ignore-unicode), defunct.travis.yml,README.txt, and brokenvis-package/..github/workflows/ci.yml) testing Python 3.11–3.14 withruff(ipfix tests scripts) andpytest.iana.iespec/rfc5103.iespecloading toimportlib.resources.intersphinx_mappingformat (incorporates Fix build with new sphinx #33) and updatedcopyright.2026 IANA Registry & Data Types
unsigned256(RFC 9740, Data Type ID 23) and arbitrary-width integer Reduced-Size Encoding (RFC 7011 §6.2).ipfix/ieutils.pyto fetch over HTTPS (CSV and XML) with RFC 5103 reversibility filtering and direct-child namespace XML parsing.ipfix/iana.iespec(482 IEs up to Element ID 533; note ID 278 renamedconnectionCountNew->newConnectionDeltaCountand ID 263messageScopechanged tounsigned8) andipfix/rfc5103.iespec(441 reverse IEs).Security Hardening & Bug Fixes
setlen < 4, truncated set/template/IE/PEN headers, zero-length IE fields,minlength == 0templates, and varlen fields extending pastsetend(preventing infinite-loop DoS and stale-buffer reads); stop registering unknown template IEs into the global_ieForNumcache; replace@lru_cacheonTemplate.packplan_for_ielistwith a per-instance cache; capMessageBuffer.mtutobuf_szand clampsetend.delete_template()export, Options Templatescopecountbuilder & bounds validation,Template.identical_to()length checks,begin_export(0)ODID/sequence ordering, and mod-2^32 sequence wrapping.dateTime*and integeripv4Address), resizing fixedstring/octetArrayback toVARLENand reduced integers back to native width, fixed-lengthstringNUL-padding/oversize handling (core root cause of Better support for fixed length strings in SVG message drawing code. #21),use_integer_ipv4()typo,IE.__hash__/InformationElementList.__hash__,boolean{1, 2}validation,super()anti-patterns,datetime.UTCinternal handling (accepts aware & naive-as-UTC on encode/parse/unparse while keeping naive UTC decode returns for0.10.0),accepted_tidscache invalidation across iterators/domains/restore_state(), empty 4-byte set prevention onEndOfMessage/flush(), explicit bounds/arity checks inTemplate.encode_to()so encoding errors are not masked asEndOfMessage,MessageStreamWriterdefault domain initialization/flush()/add_template()bugs,MessageStreamReader.msgcountcounting messages instead of records, and cleanipfixstattraversal without polluting the global IE registry.ipfix/v9pdu.py): FixedNameErrors, key-arity mismatches,TimeAdapter1000x unit bug,SinglePduBufferEOF handling,setlen < 4DoS, RFC 3954 §6.1 Options Templates (distinct scope namespace),StreamPduBufferinitial version-9 header enforcement, 0-field template rejection, and sequence counting.Test Coverage
tests/suite underpytest+pytest-cov(filterwarnings = ["error"],--doctest-modules): 42 passed, 0 warnings, 93% total coverage acrossipfix/.ruff check ipfix tests scripts: all checks passed.Fixes #24, #32, #38, #39, #40, #41, #42, #43, #44, #45, #46, #47, #48, #49, #50, #51, #52
Incorporates #25, #30, #33