router refactor

This commit is contained in:
Maxime Van Hees
2023-05-15 14:58:14 +00:00
parent 0bce73c7de
commit e03b35a956
7 changed files with 425 additions and 421 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
use futures::stream::TryStreamExt;
use rtnetlink::Handle;
use core::fmt;
use std::{error::Error, net::Ipv4Addr, sync::Arc};
use tokio_tun::{Tun, TunBuilder};
@@ -61,4 +62,4 @@ pub async fn setup_node(tun_addr: Ipv4Addr) -> Result<Arc<Tun>, Box<dyn Error>>
println!("Static route created");
Ok(tun)
}
}