diff options
| author | zedddie <rust@zedddie.rs> | 2026-03-15 17:17:24 +0100 |
|---|---|---|
| committer | tuturuu <zedddiezxc@gmail.com> | 2026-03-15 17:17:24 +0100 |
| commit | 891a76eaf5ada282fd0568f856b63635d2a173e4 (patch) | |
| tree | 68b3ae5d5e211fe800d5c6e81d90e26e3e4f9aa9 /src/startup.rs | |
| parent | 59a17c547563dab8a70830185ba763d8343ac109 (diff) | |
somewhat wip sniffing
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]); } } |
