Update embassy
This commit is contained in:
@ -1,8 +1,7 @@
|
||||
#![feature(type_alias_impl_trait)]
|
||||
|
||||
use embassy::executor::{Spawner, task};
|
||||
use embassy::io::{AsyncBufReadExt, AsyncWriteExt};
|
||||
use embassy::time::{Duration, Timer};
|
||||
use embassy::executor::{task, Spawner};
|
||||
use embassy::io::AsyncWriteExt;
|
||||
use embassy::util::Forever;
|
||||
use embassy_net::*;
|
||||
use embassy_std::Executor;
|
||||
|
@ -1,11 +1,11 @@
|
||||
use async_io::Async;
|
||||
use embassy::util::WakerRegistration;
|
||||
use libc;
|
||||
use log::*;
|
||||
use smoltcp::wire::EthernetFrame;
|
||||
use std::io;
|
||||
use std::io::{Read, Write};
|
||||
use std::os::unix::io::{AsRawFd, RawFd};
|
||||
use log::*;
|
||||
|
||||
pub const SIOCGIFMTU: libc::c_ulong = 0x8921;
|
||||
pub const SIOCGIFINDEX: libc::c_ulong = 0x8933;
|
||||
@ -142,8 +142,8 @@ impl TunTapDevice {
|
||||
}
|
||||
}
|
||||
|
||||
use embassy_net::{LinkState, DeviceCapabilities, Packet, PacketBox, PacketBuf};
|
||||
use core::task::Waker;
|
||||
use embassy_net::{DeviceCapabilities, LinkState, Packet, PacketBox, PacketBuf};
|
||||
|
||||
impl crate::Device for TunTapDevice {
|
||||
fn is_transmit_ready(&mut self) -> bool {
|
||||
@ -197,4 +197,8 @@ impl crate::Device for TunTapDevice {
|
||||
fn link_state(&mut self) -> LinkState {
|
||||
LinkState::Up
|
||||
}
|
||||
|
||||
fn ethernet_address(&mut self) -> [u8; 6] {
|
||||
[0x02, 0x03, 0x04, 0x05, 0x06, 0x07]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user