renet/src/iface/mod.rs

31 lines
982 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-04-29 18:04:46 +08:00
#[cfg(any(
feature = "medium-ethernet",
feature = "medium-ip",
feature = "medium-ieee802154"
))]
2021-06-27 15:31:59 +08:00
mod interface;
2021-04-29 18:04:46 +08:00
#[cfg(any(feature = "medium-ethernet", feature = "medium-ieee802154"))]
mod neighbor;
mod route;
2016-12-12 10:39:46 +08:00
2021-04-29 18:04:46 +08:00
#[cfg(any(feature = "medium-ethernet", feature = "medium-ieee802154"))]
pub(crate) use self::neighbor::Answer as NeighborAnswer;
2021-04-29 18:04:46 +08:00
#[cfg(any(feature = "medium-ethernet", feature = "medium-ieee802154"))]
pub use self::neighbor::Cache as NeighborCache;
2021-04-29 18:04:46 +08:00
#[cfg(any(feature = "medium-ethernet", feature = "medium-ieee802154"))]
2021-06-27 15:31:59 +08:00
pub use self::neighbor::Neighbor;
pub use self::route::{Route, Routes};
2021-04-29 18:04:46 +08:00
#[cfg(any(
feature = "medium-ethernet",
feature = "medium-ip",
feature = "medium-ieee802154"
))]
pub use self::interface::{Interface, InterfaceBuilder};