renet/src/iface/mod.rs

23 lines
748 B
Rust
Raw Normal View History

/*! Network interface logic.
The `iface` module deals with the *network interfaces*. It filters incoming frames,
provides lookup and caching of hardware addresses, and handles management packets.
*/
2016-12-15 01:39:44 +08:00
2021-06-27 15:31:59 +08:00
#[cfg(any(feature = "medium-ethernet", feature = "medium-ip"))]
mod interface;
#[cfg(feature = "medium-ethernet")]
mod neighbor;
mod route;
2016-12-12 10:39:46 +08:00
#[cfg(feature = "medium-ethernet")]
pub(crate) use self::neighbor::Answer as NeighborAnswer;
#[cfg(feature = "medium-ethernet")]
pub use self::neighbor::Cache as NeighborCache;
2021-06-27 15:31:59 +08:00
#[cfg(feature = "medium-ethernet")]
pub use self::neighbor::Neighbor;
pub use self::route::{Route, Routes};
#[cfg(any(feature = "medium-ethernet", feature = "medium-ip"))]
pub use self::interface::{Interface, InterfaceBuilder};