mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Testing timeout
This commit is contained in:
@@ -4,6 +4,7 @@ use pnet::packet::arp::{ArpHardwareTypes, ArpOperations, ArpPacket, MutableArpPa
|
||||
use pnet::packet::ethernet::{EtherTypes, EthernetPacket, MutableEthernetPacket};
|
||||
use pnet::packet::{MutablePacket, Packet};
|
||||
use pnet::util::MacAddr;
|
||||
use tokio::time::{Duration, sleep, timeout};
|
||||
|
||||
pub async fn send_packet(
|
||||
mut tx: Box<dyn DataLinkSender>,
|
||||
@@ -46,6 +47,7 @@ pub async fn send_packet(
|
||||
);
|
||||
// thread::sleep(Duration::from_millis(2));
|
||||
}
|
||||
sleep(Duration::from_secs(5)).await;
|
||||
// thread::sleep(Duration::from_millis(2));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user