Skip to content

Commit

Permalink
reduce the visibility to the parent module
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Jul 18, 2023
1 parent 7b4bf1d commit 4a0a5ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/executor/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
8 changes: 4 additions & 4 deletions src/executor/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ pub(crate) static NIC: InterruptTicketMutex<NetworkState<'_>> =
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")]
Expand Down

0 comments on commit 4a0a5ab

Please sign in to comment.