19 releases (11 breaking)
Uses new Rust 2024
| new 0.12.1 | May 22, 2026 |
|---|---|
| 0.11.0 | Apr 21, 2026 |
| 0.10.0 | Mar 10, 2026 |
| 0.8.0 | Nov 25, 2025 |
| 0.1.0 | Mar 5, 2023 |
#1486 in Parser implementations
60 downloads per month
Used in 3 crates
445KB
9K
SLoC
NetGauze flow reporting pkt (Netflow V9 and IPFIX)
Supported RFCs
- Specification of the IP Flow Information Export (IPFIX) Protocol for the Exchange of Flow Information RFC 7011
- Information Model for IP Flow Information Export RFC 5102
- Cisco Systems NetFlow Services Export Version 9 RFC 3954
- Information Elements are pulled automatically at compile time from IANA
registry IP Flow Information Export (IPFIX) Entities. The crate
to download and generate the necessary rust code
is
netgauze-ipfix-code-generatorWhen the IANA registry introduces changes, such as a new data type, generation may fail. If your project depends on this crate and requires stable generation, you can enable the backwards-compatibility-snapshot feature in your Cargo.toml file. This feature uses a snapshot of registry files taken at the time of the crate's release, ensuring a reliable generation even if the registry is updated. In addition to this, users can define a single custom local registry or multiple custom local registries, allowing NetGauze to generate the necessary code at build time. To use this functionality, thecustom-upstream-buildfeature must be enabled and the environment variableNETGAUZE_CUSTOM_XML_PATHSmust be set.NETGAUZE_CUSTOM_XML_PATHStakes the paths and PENs with the formatNETGAUZE_CUSTOM_XML_PATHS="path=pen"or to specify more registriesNETGAUZE_CUSTOM_XML_PATHS="path=pen,path2=pen2,path3=pen3".
Examples
-
IPFIX ipfix.rs
cargo run --example ipfix -
Netflow V9 netflow.rs
cargo run --example netflow
Dependencies
~10–22MB
~302K SLoC