Skip to content

Feature/icmp_flow_extrat#30

Merged
AKOrojo merged 5 commits intomainfrom
feature/icmp_flow_extrat
Mar 5, 2026
Merged

Feature/icmp_flow_extrat#30
AKOrojo merged 5 commits intomainfrom
feature/icmp_flow_extrat

Conversation

@AKOrojo
Copy link
Contributor

@AKOrojo AKOrojo commented Mar 5, 2026

No description provided.

AKOrojo added 5 commits March 4, 2026 22:25
Add configurable tracking of maximum packet sizes during flow extraction.
Users can now enable tracking via FlowConfig parameters to measure:
- Maximum packet length per direction (forward_max_packet_len, reverse_max_packet_len)
- Maximum packet length across entire flow (max_flow_len)

Tracking is disabled by default for zero overhead. When enabled, adds
minimal O(1) overhead per packet.

Changes:
- FlowConfig: new track_max_packet_len and track_max_flow_len flags (default: false)
- DirectionStats: added max_packet_len field, updated record_packet() to track
- ConversationState: added max_flow_len field for overall maximum
- PyFlowConfig: expose tracking flags to Python API with defaults
- PyConversation: three new properties (forward_max_packet_len, reverse_max_packet_len, max_flow_len)

Added comprehensive test suite with 8 tests covering:
- Default behavior (no tracking)
- Single-direction tracking
- Bidirectional tracking
- Overall flow maximum
- Multiple packets verification
- Protocol isolation
- Enable/disable toggle

All tests passing: 32 total (24 existing + 8 new)
Add comprehensive documentation for:
- Maximum packet/flow length tracking (optional, off by default)
- ICMP and ICMPv6 echo request/reply correlation
- Message type handling for non-echo ICMP flows
@AKOrojo AKOrojo merged commit 00d957e into main Mar 5, 2026
1 check passed
@AKOrojo AKOrojo deleted the feature/icmp_flow_extrat branch March 5, 2026 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant