diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-07-31 12:30:33 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-07-31 12:30:33 +0000 |
| commit | 6caf62726219ec05fe387b870bfc1f0e631c6b40 (patch) | |
| tree | b5086abd2a2ef1780d61f71f032baa1a62ca633e /examples | |
| parent | 71fcea159f2b17d9acdaa5b4a5bde9b525de4167 (diff) | |
| parent | 3d68d42132e5589d19c52d078099e0933b4d6e99 (diff) | |
Merge pull request #1704 from rubdos/ieee802154-fixes
Expose IEEE802.15.4 address in Driver
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/std/src/tuntap.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/std/src/tuntap.rs b/examples/std/src/tuntap.rs index d918a2e62..167c3da5f 100644 --- a/examples/std/src/tuntap.rs +++ b/examples/std/src/tuntap.rs | |||
| @@ -4,7 +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_driver::{self, Capabilities, Driver, LinkState}; | 7 | use embassy_net_driver::{self, Capabilities, Driver, HardwareAddress, LinkState}; |
| 8 | use log::*; | 8 | use log::*; |
| 9 | 9 | ||
| 10 | pub const SIOCGIFMTU: libc::c_ulong = 0x8921; | 10 | pub const SIOCGIFMTU: libc::c_ulong = 0x8921; |
| @@ -180,8 +180,8 @@ impl Driver for TunTapDevice { | |||
| 180 | LinkState::Up | 180 | LinkState::Up |
| 181 | } | 181 | } |
| 182 | 182 | ||
| 183 | fn ethernet_address(&self) -> [u8; 6] { | 183 | fn hardware_address(&self) -> HardwareAddress { |
| 184 | [0x02, 0x03, 0x04, 0x05, 0x06, 0x07] | 184 | HardwareAddress::Ethernet([0x02, 0x03, 0x04, 0x05, 0x06, 0x07]) |
| 185 | } | 185 | } |
| 186 | } | 186 | } |
| 187 | 187 | ||
