support no tun mode (#141)

This commit is contained in:
Sijie.Sun
2024-06-10 10:27:24 +08:00
committed by GitHub
parent fede35cca4
commit 8aa57ebc22
21 changed files with 1722 additions and 170 deletions

View File

@@ -417,7 +417,7 @@ impl PeerManager {
if hdr.packet_type == PacketType::Data as u8 {
tracing::trace!(?packet, "send packet to nic channel");
// TODO: use a function to get the body ref directly for zero copy
self.nic_channel.send(packet).await.unwrap();
let _ = self.nic_channel.send(packet).await;
None
} else {
Some(packet)

View File

@@ -1441,7 +1441,7 @@ impl Route for PeerRoute {
return Some(peer_id);
}
tracing::info!(?ipv4_addr, "no peer id for ipv4");
tracing::debug!(?ipv4_addr, "no peer id for ipv4");
None
}