Implement IPv4 address configuration on Linux

This involved refactoring the crate structure to share code between
macOS and Linux. The new methods have not yet been implemented on
macOS, but they have todo!() placeholders.
This commit is contained in:
Conrad Kramer 2023-04-22 14:12:57 -04:00
parent 45499da9c2
commit 1378eb7eb3
15 changed files with 361 additions and 208 deletions

View file

@ -5,6 +5,7 @@ edition = "2021"
[dependencies]
libc = "0.2"
fehler = "1.0"
nix = { version = "0.25", features = ["ioctl"] }
socket2 = "0.4"
tokio = { version = "1.21", features = [] }