From 7a75c1d17120d96182045299991b04953ed83d6d Mon Sep 17 00:00:00 2001 From: asxalex Date: Sat, 26 Oct 2024 11:22:02 +0800 Subject: [PATCH] stdout's info --- src/network/arp.rs | 6 ------ src/network/tun_linux.rs | 4 ---- src/network/tun_win.rs | 6 ------ 3 files changed, 16 deletions(-) diff --git a/src/network/arp.rs b/src/network/arp.rs index 1819879..cfd5785 100644 --- a/src/network/arp.rs +++ b/src/network/arp.rs @@ -186,12 +186,6 @@ impl ArpInfo { let host_netmask = net_bit_len_to_mask(edge.device_config.get_net_bit()); if (ip & host_netmask) == (host_ip & host_netmask) { - println!( - "hostip = {:?}, ip={:?}", - host_ip.to_be_bytes(), - // host_ip.to_be_bytes(), - ip.to_be_bytes(), - ); target_ip = ip; } diff --git a/src/network/tun_linux.rs b/src/network/tun_linux.rs index 66a5840..15978b1 100644 --- a/src/network/tun_linux.rs +++ b/src/network/tun_linux.rs @@ -473,10 +473,6 @@ impl TunTapPacketHandler for Iface { let size = msg.len(); send_packet_to_net(eee, mac, &msg, pkt_size as u64).await; // let dstip = u32::from_be_bytes(ipv4hdr.0.destination); - println!( - "{:?} => {:?}, size={}", - ipv4hdr.0.source, ipv4hdr.0.destination, size - ); } _ => {} } diff --git a/src/network/tun_win.rs b/src/network/tun_win.rs index bfbce54..742324d 100644 --- a/src/network/tun_win.rs +++ b/src/network/tun_win.rs @@ -225,8 +225,6 @@ impl TunTapPacketHandler for Iface { } } - println!("got ip packet"); - println!("got data: {:?}", rest); match edge.device.send(rest) { Ok(size) => { debug!("send to tun {} bytes", size); @@ -350,10 +348,6 @@ impl TunTapPacketHandler for Iface { let size = msg.len(); send_packet_to_net(eee, mac, &msg, pkt_size as u64).await; // let dstip = u32::from_be_bytes(ipv4hdr.0.destination); - println!( - "{:?} => {:?}, size={}", - ipv4hdr.0.source, ipv4hdr.0.destination, size - ); } _ => {} }