aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-04-12 12:58:10 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-04-12 12:58:10 +0200
commit2dc0f110930e0d2f749c4a5e1f2ebfbf60d03ef9 (patch)
treea6e4d78af95d8378ff826f643fd0e71545cc9860
parent3c32e88e2447f56b48f737d70c771c44a35d42a9 (diff)
adapt to new netlinkd api
-rw-r--r--Cargo.lock4
-rw-r--r--Cargo.toml2
-rw-r--r--src/main.rs6
3 files changed, 6 insertions, 6 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 50310dc..0bbc18b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -652,8 +652,8 @@ dependencies = [
[[package]]
name = "rsdsl_netlinkd"
-version = "0.1.0"
-source = "git+https://github.com/rsdsl/netlinkd.git#167fa7ff68f1a76db0cc3216c9655d0432a98a05"
+version = "0.1.1"
+source = "git+https://github.com/rsdsl/netlinkd.git#7801ce57a992e101237f80dafdfec97a53333813"
dependencies = [
"futures-util",
"netlink-packet-route 0.15.0",
diff --git a/Cargo.toml b/Cargo.toml
index 640c133..e7f6d8d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,7 +13,7 @@ ipnet = "2.7.1"
libc = "0.2"
linkaddrs = { git = "https://github.com/HimbeerserverDE/linkaddrs.git", version = "0.1.0" }
rand = "0.8.5"
-rsdsl_netlinkd = { git = "https://github.com/rsdsl/netlinkd.git", version = "0.1.0" }
+rsdsl_netlinkd = { git = "https://github.com/rsdsl/netlinkd.git", version = "0.1.1" }
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
diff --git a/src/main.rs b/src/main.rs
index f6cade8..637b3fd 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -33,10 +33,10 @@ fn main() -> Result<()> {
}
fn run(link: String, subnet_id: u8) -> Result<()> {
- println!("[dhcp4d] wait for interface {}", link);
- link::wait(link.clone())?;
+ println!("[dhcp4d] wait for up {}", link);
+ link::wait_up(link.clone())?;
- println!("[dhcp4d] init interface {}", link);
+ println!("[dhcp4d] init {}", link);
let config = LeaseFileManagerConfig {
range: (