Browse Source

smoltcp::interface → smoltcp::phy.

whitequark 8 years ago
parent
commit
ef87849068
4 changed files with 3 additions and 3 deletions
  1. 1 1
      examples/smoltcpdump.rs
  2. 1 1
      src/lib.rs
  3. 1 1
      src/phy/mod.rs
  4. 0 0
      src/phy/raw_socket.rs

+ 1 - 1
examples/smoltcpdump.rs

@@ -1,8 +1,8 @@
 extern crate smoltcp;
 
 use std::{env, io};
+use smoltcp::phy::RawSocket;
 use smoltcp::wire::{EthernetFrame, EthernetProtocolType, ArpPacket};
-use smoltcp::interface::RawSocket;
 
 fn get<T>(result: Result<T, ()>) -> io::Result<T> {
     result.map_err(|()| io::Error::new(io::ErrorKind::InvalidData,

+ 1 - 1
src/lib.rs

@@ -7,5 +7,5 @@ extern crate std;
 
 extern crate byteorder;
 
+pub mod phy;
 pub mod wire;
-pub mod interface;

+ 1 - 1
src/interface/mod.rs → src/phy/mod.rs

@@ -1,6 +1,6 @@
 //! Access to networking hardware.
 //!
-//! The `interface` module provides a way to capture and inject packets.
+//! The `phy` module provides a way to capture and inject packets.
 //! It requires the standard library, and currently only works on Linux.
 
 #[cfg(all(unix, feature = "std"))]

+ 0 - 0
src/interface/raw_socket.rs → src/phy/raw_socket.rs