diff options
| author | Ruben De Smet <[email protected]> | 2023-07-31 10:40:48 +0200 |
|---|---|---|
| committer | Ruben De Smet <[email protected]> | 2023-07-31 14:21:26 +0200 |
| commit | 4afdce4ec5e39324f8a690961070a25f16397f56 (patch) | |
| tree | cd0c35f8eb67001349bc48cd7d643565760a6eff /examples | |
| parent | 69c0a89aa5d52e048fdd8ddc5d47b767da07e88b (diff) | |
Introduce driver::HardwareAddress without smoltcp dependency
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/std/src/tuntap.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/std/src/tuntap.rs b/examples/std/src/tuntap.rs index 932bdaf96..167c3da5f 100644 --- a/examples/std/src/tuntap.rs +++ b/examples/std/src/tuntap.rs | |||
| @@ -4,8 +4,7 @@ use std::os::unix::io::{AsRawFd, RawFd}; | |||
| 4 | use std::task::Context; | 4 | use std::task::Context; |
| 5 | 5 | ||
| 6 | use async_io::Async; | 6 | use async_io::Async; |
| 7 | use embassy_net::HardwareAddress; | 7 | use embassy_net_driver::{self, Capabilities, Driver, HardwareAddress, LinkState}; |
| 8 | use embassy_net_driver::{self, Capabilities, Driver, LinkState}; | ||
| 9 | use log::*; | 8 | use log::*; |
| 10 | 9 | ||
| 11 | pub const SIOCGIFMTU: libc::c_ulong = 0x8921; | 10 | pub const SIOCGIFMTU: libc::c_ulong = 0x8921; |
| @@ -182,7 +181,7 @@ impl Driver for TunTapDevice { | |||
| 182 | } | 181 | } |
| 183 | 182 | ||
| 184 | fn hardware_address(&self) -> HardwareAddress { | 183 | fn hardware_address(&self) -> HardwareAddress { |
| 185 | HardwareAddress::Ethernet(EthernetAddress([0x02, 0x03, 0x04, 0x05, 0x06, 0x07])) | 184 | HardwareAddress::Ethernet([0x02, 0x03, 0x04, 0x05, 0x06, 0x07]) |
| 186 | } | 185 | } |
| 187 | } | 186 | } |
| 188 | 187 | ||
