tap-test
This commit is contained in:
parent
4fdcfa5bee
commit
4aa33a4e26
@ -35,7 +35,7 @@ async fn main() {
|
|||||||
_allow_routing: true,
|
_allow_routing: true,
|
||||||
_drop_multicast: true,
|
_drop_multicast: true,
|
||||||
register_ttl: 1,
|
register_ttl: 1,
|
||||||
mtu: 1290,
|
mtu: 1400,
|
||||||
name: "tau".to_owned(),
|
name: "tau".to_owned(),
|
||||||
tos: 0,
|
tos: 0,
|
||||||
local_port: cmd.port,
|
local_port: cmd.port,
|
||||||
|
|||||||
@ -555,7 +555,7 @@ async fn loop_tap(eee: &'static Node, cancel: CancellationToken) {
|
|||||||
async fn get_tun_flow(eee: &'static Node, tx: Sender<Vec<u8>>) {
|
async fn get_tun_flow(eee: &'static Node, tx: Sender<Vec<u8>>) {
|
||||||
loop {
|
loop {
|
||||||
let buf = tokio::task::spawn_blocking(|| {
|
let buf = tokio::task::spawn_blocking(|| {
|
||||||
let mut buf = vec![0; 1800];
|
let mut buf = vec![0; 1500];
|
||||||
let Ok(size) = eee.device.recv(&mut buf) else {
|
let Ok(size) = eee.device.recv(&mut buf) else {
|
||||||
return vec![];
|
return vec![];
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user