Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 2.34 KB

README.md

File metadata and controls

48 lines (33 loc) · 2.34 KB

NetCalyx flow reporting pkt (Netflow V9 and IPFIX)

Crates.io Documentation Apache licensed

Supported RFCs

  1. Specification of the IP Flow Information Export (IPFIX) Protocol for the Exchange of Flow Information RFC 7011
  2. Information Model for IP Flow Information Export RFC 5102
  3. Cisco Systems NetFlow Services Export Version 9 RFC 3954
  4. 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 netcalyx-ipfix-code-generator When 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 NetCalyx to generate the necessary code at build time. To use this functionality, the custom-upstream-build feature must be enabled and the environment variable NETCALYX_CUSTOM_XML_PATHS must be set. NETCALYX_CUSTOM_XML_PATHS takes the paths and PENs with the format NETCALYX_CUSTOM_XML_PATHS="path=pen" or to specify more registries NETCALYX_CUSTOM_XML_PATHS="path=pen,path2=pen2,path3=pen3".

Examples

  1. IPFIX ipfix.rs

    cargo run --example ipfix

  2. Netflow V9 netflow.rs

    cargo run --example netflow