smoltcp::interface → smoltcp::phy.
parent
b1149e746c
commit
683652a9a6
|
@ -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,
|
||||
|
|
|
@ -7,5 +7,5 @@ extern crate std;
|
|||
|
||||
extern crate byteorder;
|
||||
|
||||
pub mod phy;
|
||||
pub mod wire;
|
||||
pub mod interface;
|
||||
|
|
|
@ -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"))]
|
Loading…
Reference in New Issue