mirror of https://github.com/aya-rs/aya
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
441 B
Rust
18 lines
441 B
Rust
pub mod config;
|
|
pub mod event_handler;
|
|
pub mod ip_utils;
|
|
|
|
pub use config::TrafficMonitorConfig;
|
|
pub use ip_utils::{format_ip_info, ip_in_cidr, parse_cidr};
|
|
|
|
// Simplified version of TrafficEvent for demo
|
|
#[derive(Debug, Clone)]
|
|
pub struct TrafficEvent {
|
|
pub src_ip: std::net::Ipv4Addr,
|
|
pub dst_ip: std::net::Ipv4Addr,
|
|
pub src_port: u16,
|
|
pub dst_port: u16,
|
|
pub protocol: u8,
|
|
pub packet_size: u16,
|
|
pub action: u8,
|
|
} |