2018-01-06 03:38:23 +08:00
|
|
|
/*! 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;
|
2020-12-28 06:52:37 +08:00
|
|
|
#[cfg(feature = "medium-ethernet")]
|
2017-11-21 18:52:53 +08:00
|
|
|
mod neighbor;
|
2018-06-10 05:18:36 +08:00
|
|
|
mod route;
|
2016-12-12 10:39:46 +08:00
|
|
|
|
2020-12-28 06:52:37 +08:00
|
|
|
#[cfg(feature = "medium-ethernet")]
|
2017-11-21 18:52:53 +08:00
|
|
|
pub(crate) use self::neighbor::Answer as NeighborAnswer;
|
2020-12-28 06:52:37 +08:00
|
|
|
#[cfg(feature = "medium-ethernet")]
|
2017-11-21 18:52:53 +08:00
|
|
|
pub use self::neighbor::Cache as NeighborCache;
|
2021-06-27 15:31:59 +08:00
|
|
|
#[cfg(feature = "medium-ethernet")]
|
|
|
|
pub use self::neighbor::Neighbor;
|
2018-06-10 05:18:36 +08:00
|
|
|
pub use self::route::{Route, Routes};
|
2020-06-04 09:00:49 +08:00
|
|
|
|
2020-12-28 06:52:37 +08:00
|
|
|
#[cfg(any(feature = "medium-ethernet", feature = "medium-ip"))]
|
2020-06-04 09:00:49 +08:00
|
|
|
pub use self::interface::{Interface, InterfaceBuilder};
|