From 321dad34544db4a0af292ab12b4e9554a97f366b Mon Sep 17 00:00:00 2001 From: Maxime Van Hees Date: Tue, 23 May 2023 11:58:50 +0000 Subject: [PATCH] removed debug print statement --- src/main.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 40ad324..8d82b21 100644 --- a/src/main.rs +++ b/src/main.rs @@ -99,7 +99,6 @@ async fn main() -> Result<(), Box> { let packet = match PacketHeaders::from_ip_slice(&buf) { Ok(packet) => packet, Err(e) => { - println!("buffer: {:?}", buf); eprintln!("Error from_ip_slice: {}", e); continue; } @@ -107,17 +106,14 @@ async fn main() -> Result<(), Box> { let dest_addr = if let Some(IpHeader::Version6(header, _)) = packet.ip { let dest_addr = Ipv6Addr::from(header.destination); - println!("Destination IPv6 address: {}", dest_addr); dest_addr } else { - println!("Non-IPv6 packet received, ignoring..."); continue; }; // Check if destination address is in 200::/7 range let first_byte = dest_addr.segments()[0] >> 8; // get the first byte if first_byte < 0x20 || first_byte > 0x3F { - println!("Packet not destined for 200::/7 range, ignoring..."); continue; }