diff --git a/src/executor/device.rs b/src/executor/device.rs index b758c66eb5..5011169670 100644 --- a/src/executor/device.rs +++ b/src/executor/device.rs @@ -20,7 +20,7 @@ use crate::arch::kernel::mmio as hardware; use crate::drivers::pci as hardware; #[cfg(not(feature = "dhcpv4"))] use crate::env; -use crate::executor::network::{NetworkInterface, NetworkState}; +use super::network::{NetworkInterface, NetworkState}; /// Data type to determine the mac address #[derive(Debug, Copy, Clone)] diff --git a/src/executor/network.rs b/src/executor/network.rs index 92b1d385b4..2c39cc7fb6 100644 --- a/src/executor/network.rs +++ b/src/executor/network.rs @@ -42,11 +42,11 @@ pub(crate) static NIC: InterruptTicketMutex> = InterruptTicketMutex::new(NetworkState::Missing); pub(crate) struct NetworkInterface<'a> { - pub iface: smoltcp::iface::Interface, - pub sockets: SocketSet<'a>, - pub device: HermitNet, + pub(super) iface: smoltcp::iface::Interface, + pub(super) sockets: SocketSet<'a>, + pub(super) device: HermitNet, #[cfg(feature = "dhcpv4")] - pub dhcp_handle: SocketHandle, + pub(super) dhcp_handle: SocketHandle, } #[cfg(target_arch = "x86_64")]