aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-03-14 20:22:26 +0100
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-03-14 20:22:26 +0100
commite1c6c668a57e8c67e858a4500d5ba228a87827c7 (patch)
treeb1faf0da380dc7542d732a57bce56ab23293fd7f
parentebff27c4f8e2388328f8d1300a75900dc42a9456 (diff)
prepend ethertype with 0x
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index ff2680a..7a6f0f6 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -28,7 +28,7 @@ fn tun2ppp(clt: Client, tun: Arc<Iface>) -> Result<()> {
let ether_type = NE::read_u16(&buf[2..4]);
if ether_type != IPV4 {
println!(
- "dropping outbound non-IPv4 packet, EtherType: {:04x}",
+ "dropping outbound non-IPv4 packet, EtherType: 0x{:04x}",
ether_type
);
continue;