mod.rs 760 B

12345678910111213141516171819202122
  1. /*! Network interface logic.
  2. The `iface` module deals with the *network interfaces*. It filters incoming frames,
  3. provides lookup and caching of hardware addresses, and handles management packets.
  4. */
  5. #[cfg(feature = "medium-ethernet")]
  6. mod neighbor;
  7. mod route;
  8. #[cfg(any(feature = "medium-ethernet", feature = "medium-ip"))]
  9. mod interface;
  10. #[cfg(feature = "medium-ethernet")]
  11. pub use self::neighbor::Neighbor as Neighbor;
  12. #[cfg(feature = "medium-ethernet")]
  13. pub(crate) use self::neighbor::Answer as NeighborAnswer;
  14. #[cfg(feature = "medium-ethernet")]
  15. pub use self::neighbor::Cache as NeighborCache;
  16. pub use self::route::{Route, Routes};
  17. #[cfg(any(feature = "medium-ethernet", feature = "medium-ip"))]
  18. pub use self::interface::{Interface, InterfaceBuilder};