mirror of
https://github.com/arampoire/onetun.git
synced 2025-12-01 01:00:24 -05:00
One interface/server for all. Doesn't quite work for repeats.
This commit is contained in:
parent
da8b216fb0
commit
f2e6ec1e3f
5 changed files with 335 additions and 203 deletions
|
|
@ -1,9 +1,7 @@
|
|||
use std::collections::VecDeque;
|
||||
|
||||
use smoltcp::phy::{ChecksumCapabilities, Device, DeviceCapabilities, Medium};
|
||||
use smoltcp::phy::{Device, DeviceCapabilities, Medium};
|
||||
use smoltcp::time::Instant;
|
||||
use smoltcp::wire::{Ipv4Packet, Ipv4Repr};
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct VirtualIpDevice {
|
||||
/// Channel for packets sent by the interface.
|
||||
ip_tx: crossbeam_channel::Sender<Vec<u8>>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue