Repository navigation
Draft
Conversation
…ted IEs, typing, fuzz tests, and migration guide
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
Stacked on #34 (
v0.10.0) — marked Draft untilv0.10.0is merged and tagged. Once #34 merges intomaster, GitHub will automatically retarget this PR tomaster(or retarget viagh pr edit --base master).What's in
v1.0.0ipfix.session.Session) — Fixes Separate session state handling #13, UDP IPFIX Collector not Working #27, Template caching #31:MessageBuffer.MessageBuffer(session=...)creates a default internalSessionwhen omitted and keeps.templates,.sequences, and.setlistaccessible for backwards compatibility.ipfix.reader.DatagramReaderwith per-peerSessionisolation and configurable template lifetime (default 1800s).ipfix.writer.DatagramWriterwith UDP-safe default MTU (1400B) and automatic RFC 7011 §10.3.6 periodic template refresh.ipfix2csv --collect udpusingDatagramReader.Session.check_sequence()verifies received message header sequence numbers against expected counts and invokes optionalsequence_gap_hookon gaps/reordering (non-fatal by default for UDP).datetimeReturns & NTP Era 1 (2036) Rollover (Breaking):dateTime*IEs,get_export_time(), datetimeIE.parse(), andv9pdu.TimeAdapternow return timezone-aware UTCdatetimeobjects (tzinfo=datetime.UTC).dateTimeMicroseconds/dateTimeNanosecondshandle RFC 5905 NTP Era 1 rollover (Feb 7, 2036).decode_namedict_from()returns alistof values for repeated IE names (unique names stay scalar);encode_namedict_to()andpackplan_for_ielist()/tuple_iterator()handle multiplicity in order.ipfix/py.typed), Hypothesis Fuzz Tests & Migration Guide:ipfix/py.typed, type annotations, andtests/test_fuzz.py(600 Hypothesis cases fuzzing IPFIX and NetFlow v9 decoders).README.mdandCHANGES.txt.Verification
pytest(withfilterwarnings = ["error"],--doctest-modules, and Hypothesis fuzz tests): 46 passed, 0 warnings, 92% coverage.ruff check ipfix tests scripts: all checks passed.Fixes #5, #6, #10, #13, #22, #27, #31