diff options
Diffstat (limited to 'src/startup.rs')
| -rw-r--r-- | src/startup.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/startup.rs b/src/startup.rs index b9e0191..5caaa86 100644 --- a/src/startup.rs +++ b/src/startup.rs @@ -1,6 +1,6 @@ // Here we iniitialize systems crucial for nsc use std::io::Read; -use sniffing::headers::sniff_raw_packets; +use crate::sniffing::headers::sniff_raw_packets; pub fn init() -> Result<(), Box<dyn std::error::Error + Send + Sync + 'static>> { let mut config = tun::Configuration::default(); @@ -21,8 +21,9 @@ pub fn init() -> Result<(), Box<dyn std::error::Error + Send + Sync + 'static>> loop { let amount = dev.read(&mut buf)?; - sniff_raw_packets(&buf[0..amount]); - dbg!("{:?}", &buf[0..amount]); - + // dbg!(sniff_raw_packets(&buf[0..amount])?); + let govno = sniff_raw_packets(&buf[0..amount])?; + println!("{govno:?}") + // dbg!("{:?}", &buf[0..amount]); } } |
