mod.rs 748 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(any(feature = "medium-ethernet", feature = "medium-ip"))]
  6. mod interface;
  7. #[cfg(feature = "medium-ethernet")]
  8. mod neighbor;
  9. mod route;
  10. #[cfg(feature = "medium-ethernet")]
  11. pub(crate) use self::neighbor::Answer as NeighborAnswer;
  12. #[cfg(feature = "medium-ethernet")]
  13. pub use self::neighbor::Cache as NeighborCache;
  14. #[cfg(feature = "medium-ethernet")]
  15. pub use self::neighbor::Neighbor;
  16. pub use self::route::{Route, Routes};
  17. #[cfg(any(feature = "medium-ethernet", feature = "medium-ip"))]
  18. pub use self::interface::{Interface, InterfaceBuilder};