mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-06-12 19:11:19 -07:00
upgrade netlink dependency
This commit is contained in:
Generated
+10
-23
@@ -1008,7 +1008,7 @@ dependencies = [
|
||||
"futures",
|
||||
"log",
|
||||
"netlink-packet-core 0.8.1",
|
||||
"netlink-packet-generic 0.4.0",
|
||||
"netlink-packet-generic",
|
||||
"netlink-proto 0.12.0",
|
||||
"thiserror 1.0.69",
|
||||
"tokio",
|
||||
@@ -1520,7 +1520,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34"
|
||||
dependencies = [
|
||||
"cfg-if",
|
||||
"windows-targets 0.48.5",
|
||||
"windows-targets 0.52.6",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -1642,18 +1642,6 @@ dependencies = [
|
||||
"paste",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "netlink-packet-generic"
|
||||
version = "0.3.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1cd7eb8ad331c84c6b8cb7f685b448133e5ad82e1ffd5acafac374af4a5a308b"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"byteorder",
|
||||
"netlink-packet-core 0.7.0",
|
||||
"netlink-packet-utils",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "netlink-packet-generic"
|
||||
version = "0.4.0"
|
||||
@@ -1691,16 +1679,15 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "netlink-packet-wireguard"
|
||||
version = "0.2.3"
|
||||
version = "0.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "60b25b050ff1f6a1e23c6777b72db22790fe5b6b5ccfd3858672587a79876c8f"
|
||||
checksum = "cb217ca08c02978c3ea5ef0f013d20c602f2a17a9f00d9e4b1518a3500c2f332"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"byteorder",
|
||||
"bitflags",
|
||||
"libc",
|
||||
"log",
|
||||
"netlink-packet-generic 0.3.3",
|
||||
"netlink-packet-utils",
|
||||
"netlink-packet-core 0.8.1",
|
||||
"netlink-packet-generic",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -2324,8 +2311,8 @@ dependencies = [
|
||||
"genetlink",
|
||||
"libc",
|
||||
"log",
|
||||
"netlink-packet-core 0.7.0",
|
||||
"netlink-packet-generic 0.3.3",
|
||||
"netlink-packet-core 0.8.1",
|
||||
"netlink-packet-generic",
|
||||
"netlink-packet-wireguard",
|
||||
"rosenpass",
|
||||
"rosenpass-cipher-traits",
|
||||
@@ -3126,7 +3113,7 @@ version = "0.1.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
|
||||
dependencies = [
|
||||
"windows-sys 0.48.0",
|
||||
"windows-sys 0.59.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
||||
+3
-3
@@ -39,9 +39,9 @@ futures-util = { workspace = true }
|
||||
ctrlc = "3.2"
|
||||
genetlink = "0.2"
|
||||
rtnetlink = "0.14"
|
||||
netlink-packet-core = "0.7"
|
||||
netlink-packet-generic = "0.3"
|
||||
netlink-packet-wireguard = "0.2"
|
||||
netlink-packet-core = "0.8.1"
|
||||
netlink-packet-generic = "0.4"
|
||||
netlink-packet-wireguard = "0.4"
|
||||
|
||||
[dev-dependencies]
|
||||
tempfile = { workspace = true }
|
||||
|
||||
+5
-5
@@ -50,9 +50,9 @@ mod netlink {
|
||||
|
||||
/// Re-exports from [::netlink_packet_wireguard]
|
||||
pub mod wg {
|
||||
pub use ::netlink_packet_wireguard::constants::WG_KEY_LEN as KEY_LEN;
|
||||
pub use ::netlink_packet_wireguard::nlas::WgDeviceAttrs as DeviceAttrs;
|
||||
pub use ::netlink_packet_wireguard::{Wireguard, WireguardCmd};
|
||||
pub const KEY_LEN: usize = ::netlink_packet_wireguard::WireguardAttribute::WG_KEY_LEN;
|
||||
pub use ::netlink_packet_wireguard::WireguardAttribute as DeviceAttrs;
|
||||
pub use ::netlink_packet_wireguard::{WireguardCmd, WireguardMessage};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -305,9 +305,9 @@ impl WireGuardDeviceImpl {
|
||||
}
|
||||
|
||||
// The netlink request we are trying to send
|
||||
let req = nl::wg::Wireguard {
|
||||
let req = nl::wg::WireguardMessage {
|
||||
cmd: nl::wg::WireguardCmd::SetDevice,
|
||||
nlas: attrs,
|
||||
attributes: attrs,
|
||||
};
|
||||
|
||||
// Boilerplate; wrap the request into more structures
|
||||
|
||||
Reference in New Issue
Block a user