blob: 7ed1a88496552ba374812ee64900b16e27faae1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Here we will recieve bytes and try to get their destanation & apply Rules for them.
use crate::config::Config;
struct PacketInfo;
pub fn sniff_raw_packets(packet: &[u8]) -> Result<PacketInfo, Box<dyn std::error::Error + Send + Sync + 'static>> {
todo!()
}
pub fn apply_rules(config: Config, pinfo: PacketInfo) {
todo!()
}
|