A simple parser for the Netflow v9 protocol. It collects the flows and outputs each in a JSON format.
In your Cargo.toml file:
netflow_v9 = { git = "https://github.com/VersBinarii/netflow_v9.git" }
``` let mut parser = Parser::new();
if let Ok(sets) = parser.parsenetflowpacket(&packet1) { for set in sets { let s = set.tojson(); println!("{}",s); } } ```