From e89f5f17e2c28b0790e84f0050944468fbb8cf5d Mon Sep 17 00:00:00 2001 From: John Goerzen Date: Thu, 24 Sep 2020 22:27:12 -0500 Subject: [PATCH] reduce debugging --- src/tun.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/tun.rs b/src/tun.rs index 8dd8a79..37e2d96 100644 --- a/src/tun.rs +++ b/src/tun.rs @@ -74,25 +74,20 @@ impl XBTun { } pub fn get_xb_dest_mac(&self, ipaddr: &IpAddr) -> u64 { - trace!("Looking up destination for {}", ipaddr); if self.broadcast_everything { - trace!("broadcast_everything is on, so broadcast"); return XB_BROADCAST; } match self.dests.lock().unwrap().get(ipaddr) { // Broadcast if we don't know it None => { - trace!("Destination not in map"); XB_BROADCAST }, Some((dest, expiration)) => { if Instant::now() >= *expiration { // Broadcast it if the cache entry has expired - trace!("Destination expired"); XB_BROADCAST } else { - trace!("Destination {} found", dest); *dest } }