v058 - #130
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR updates the IPFIX parsing functionality to version 0.5.8 by introducing a new Application ID data type, changing the mapping for Protocol Identifier to ProtocolType, and adding support for new Cisco PEN fields. Key changes include:
- Updating the IPFIX field enum and conversion logic to support Cisco fields.
- Introducing a new ApplicationId struct and extending FieldValue support.
- Refreshing tests and snapshots to align with the updated protocol field definitions.
Reviewed Changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/variable_versions/snapshots/netflow_parser__variable_versions__ipfix_lookup__ipfix_lookup_tests__it_tests_field_lookup.snap | Updated unknown field value annotations in test snapshots. |
| src/variable_versions/snapshots/netflow_parser__variable_versions__ipfix_lookup__ipfix_lookup_tests__it_tests_field_data_type_lookup.snap | Revised field data type mapping (ProtocolType and ApplicationId). |
| src/variable_versions/ipfix_lookup.rs | Removed a previously derived Nom attribute and added extensive Cisco field mappings. |
| src/variable_versions/ipfix.rs | Adjusted template field parsing to use IPFixField::from(field_type_number) instead of a hardcoded enterprise branch. |
| src/variable_versions/data_number.rs | Introduced a new ApplicationId struct and updated FieldValue to support it. |
| Various snapshot files | Updated snapshot contents to reflect new field type names and field values. |
| RELEASES.md, Cargo.toml | Updated release notes and bumped package version to 0.5.8. |
Comments suppressed due to low confidence (4)
src/variable_versions/ipfix.rs:330
- Changing the enterprise field mapping from a fixed IPFixField::Enterprise to IPFixField::from(field_type_number) is a significant behavioral update. Please verify that this new mapping correctly handles both enterprise and non‐enterprise cases as intended by the protocol specification.
IPFixField::from(field_type_number)
src/variable_versions/data_number.rs:181
- Consider adding documentation comments for the ApplicationId struct and its fields to clarify their roles, expected value ranges, and how they integrate with the overall IPFIX parser.
pub struct ApplicationId {
src/snapshots/netflow_parser__tests__base_tests__it_parses_ipfix_options_template_with_data.snap:23
- [nitpick] Please verify that the new field type name 'AssignedforNetFlowv9compatibility' is clear and consistent with project naming conventions. If possible, consider a naming that more explicitly describes its purpose or origin.
field_type: AssignedforNetFlowv9compatibility
src/variable_versions/ipfix_lookup.rs:9
- The removal of the #[derive(Nom)] attribute could affect parsing functionality. Please confirm that the necessary parsing behavior is maintained or that equivalent functionality is implemented elsewhere.
#[derive(Debug, Hash, PartialEq, Eq, Clone, Ord, PartialOrd, Copy, Serialize)]
…eld Type and not UnsignedDataNumber, IPix added Application ID Data Type, IPFix now supports some Cisco PEN fields listed below:
added 2 commits
June 30, 2025 23:33
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.
0.5.8