smoltcp::interface → smoltcp::phy.

v0.7.x
whitequark 2016-12-10 18:33:19 +00:00
parent b1149e746c
commit 683652a9a6
4 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

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

View File

@ -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"))]