From a08fd4002bfae92072f64f8d5e0084e6f248f139 Mon Sep 17 00:00:00 2001 From: Mathias Hall-Andersen Date: Sun, 13 Oct 2019 22:26:12 +0200 Subject: Work on Linux platform code --- src/main.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 3c59c67..aad8d02 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,14 +7,11 @@ extern crate jemallocator; static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; // mod config; -mod constants; -mod handshake; -mod router; -mod timers; -mod types; +mod platform; mod wireguard; -#[cfg(test)] -mod tests; +use platform::TunBind; -fn main() {} +fn main() { + let (readers, writers, mtu) = platform::PlatformTun::create("test").unwrap(); +} -- cgit v1.2.3-59-g8ed1b