fix: added a default route for MAC addresses

there were issues with MAC addresses not having a valid route when it
couldn't find the right route
This commit is contained in:
Andrew Rioux
2023-05-12 17:33:22 -04:00
parent 5ab43a10fe
commit a03b50ead4
3 changed files with 50 additions and 14 deletions

View File

@@ -200,6 +200,10 @@ impl<T: State> Interface<T> {
Ok(())
}
pub fn name(&self) -> &str {
std::str::from_utf8(self.dev_name.as_bytes()).unwrap()
}
}
impl<T: Disabled> Interface<T> {