diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-03-14 20:22:26 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-03-14 20:22:26 +0100 |
commit | e1c6c668a57e8c67e858a4500d5ba228a87827c7 (patch) | |
tree | b1faf0da380dc7542d732a57bce56ab23293fd7f | |
parent | ebff27c4f8e2388328f8d1300a75900dc42a9456 (diff) |
prepend ethertype with 0x
-rw-r--r-- | src/main.rs | 2 |
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; |