diff --git a/Cargo.toml b/Cargo.toml index e11f5c06c..637188613 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,7 +48,7 @@ defmt = ["dep:defmt", "heapless/defmt-03"] "medium-ieee802154" = ["socket", "proto-sixlowpan"] "phy-raw_socket" = ["std", "libc"] -"phy-tuntap_interface" = ["std", "libc", "medium-ethernet"] +"phy-tuntap_interface" = ["std", "libc"] "proto-ipv4" = [] "proto-ipv4-fragmentation" = ["proto-ipv4", "_proto-fragmentation"] diff --git a/src/phy/sys/tuntap_interface.rs b/src/phy/sys/tuntap_interface.rs index 3019cadea..0649e82d8 100644 --- a/src/phy/sys/tuntap_interface.rs +++ b/src/phy/sys/tuntap_interface.rs @@ -1,5 +1,5 @@ use super::*; -use crate::{phy::Medium, wire::EthernetFrame}; +use crate::phy::Medium; use std::io; use std::os::unix::io::{AsRawFd, RawFd}; @@ -80,7 +80,7 @@ impl TunTapInterfaceDesc { #[cfg(feature = "medium-ip")] Medium::Ip => ip_mtu, #[cfg(feature = "medium-ethernet")] - Medium::Ethernet => ip_mtu + EthernetFrame::<&[u8]>::header_len(), + Medium::Ethernet => ip_mtu + crate::wire::EthernetFrame::<&[u8]>::header_len(), #[cfg(feature = "medium-ieee802154")] Medium::Ieee802154 => todo!(), };