From a81674de1b763fba6f6dbb664acbaa9edfe0db37 Mon Sep 17 00:00:00 2001 From: little-dude Date: Wed, 29 Dec 2021 19:18:14 +0100 Subject: [PATCH] release 2021-12-29 --- CHANGELOG | 43 +++++++++++++++++++++++++++++ audit/Cargo.toml | 6 ++-- ethtool/Cargo.toml | 8 +++--- genetlink/Cargo.toml | 8 +++--- netlink-packet-audit/Cargo.toml | 8 +++--- netlink-packet-core/Cargo.toml | 6 ++-- netlink-packet-generic/Cargo.toml | 6 ++-- netlink-packet-route/Cargo.toml | 6 ++-- netlink-packet-sock-diag/Cargo.toml | 6 ++-- netlink-packet-utils/Cargo.toml | 2 +- netlink-packet-wireguard/Cargo.toml | 10 +++---- netlink-proto/Cargo.toml | 8 +++--- netlink-sys/Cargo.toml | 4 +-- rtnetlink/Cargo.toml | 6 ++-- 14 files changed, 85 insertions(+), 42 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 3fa93ebb..17ff128f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -5,6 +5,49 @@ ### New Features ### Bug fixes +## [20211229] 2021-12-29 + +### Versioning + + * audit 0.4.0 -> 0.6.0 (botched 0.5.0 release) + * ethtool 0.1.0 -> 0.2.0 + * genetlink 0.1.0 -> 0.2.0 + * netlink-packet-audit 0.2.2 -> 0.4.0 (botched 0.4.0 release) + * netlink-packet-core 0.2.4 -> 0.4.1 (botched 0.3.0 release, 0.4.0 was published with downgraded dependencies to break cycles) + * netlink-packet-generic 0.1.0 -> 0.2.0 + * netlink-packet-route 0.8.0 -> 0.10.0 (botched 0.9.0 release) + * netlink-packet-sock-diag 0.1.0 -> 0.3.0 (botched 0.2.0 release) + * netlink-packet-utils 0.4.1 -> 0.5 + * netlink-packet-wireguard NULL -> 0.1.0 + * netlink-proto 0.7.0 -> 0.9.1 (botched 0.8.0 release, 0.9.0 was published with downgraded dev-dependences to break cycles) + * netlink-sys 0.7.0 -> 0.8.1 (0.8.0 was published with downgraded dev-dependencies to break cycles) + * rtnetlink 0.8.1 -> 0.9.0 + +### Breaking Changes + +- `netlink-packet-route`: + - add `InfoBridge::VlanInfo` (https://github.com/little-dude/netlink/pull/212 https://github.com/little-dude/netlink/pull/213) +- `rtnetlink`: + - add `LinkGetRequest::match_name` to filter links by name more efficiently, and remove `LinkGetRequest::set_name_filter` (https://github.com/little-dude/netlink/pull/208) +- refactor `netlink_packet_core::traits::NetlinkSerializable` and `netlink_packet_core::trait::NetlinkDeserializable` such that they are not generic (https://github.com/little-dude/netlink/pull/195/, specifically https://github.com/little-dude/netlink/pull/195/commits/94c263282d9a34d01422513de6a7f683ac08addc) +- `netlink-proto`: Add new type parameter for `Connection` which represents the socket (https://github.com/little-dude/netlink/pull/195, specifically 944307ce292682283891f41db8a0ec4706419664) + +### New Features + +- new `netlink-packet-wireguard` crate for the wireguard netlink protocol (https://github.com/little-dude/netlink/pull/191) +- new `rich_nlas` feature for `netlink-packet-route` that enables parsing more message types (https://github.com/little-dude/netlink/pull/199 https://github.com/little-dude/netlink/pull/205) +- `rtnetlink`: + - add `NeighbourAddRequest::add_bridge` helper to create a bridge interface (https://github.com/little-dude/netlink/pull/203) + - allow the requests to be built with the `NLM_F_REPLACE` flag to optimize "create or update" operations (https://github.com/little-dude/netlink/pull/202) + - add helper to create macvlan links (https://github.com/little-dude/netlink/pull/194) +- `netlink-packet-utils`: add `parse_ip` function + +### Bug fixes + +- fix UB in unsafe code (https://github.com/little-dude/netlink/pull/195/ specifically 7e6cfd743bf822e917e260eb24fbf5b2c541922e) +- fix `netlink_sys::SmolSocket::recv` error handling (https://github.com/little-dude/netlink/pull/195/ specifically 1cd3e0fbb8d77d6b9c4fe43b8c4aa745fa6ba66c) +- various fixes in the `netlink-proto` encoder (https://github.com/little-dude/netlink/pull/168) + ## [20210927] 2021-09-27 ### Versioning * audit 0.4.0 diff --git a/audit/Cargo.toml b/audit/Cargo.toml index d84969c1..62f4ef55 100644 --- a/audit/Cargo.toml +++ b/audit/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "audit" -version = "0.5.0" # TODO: drop this comment - already bumped version for trait changes +version = "0.6.0" authors = ["Corentin Henry "] edition = "2018" @@ -14,8 +14,8 @@ description = "linux audit via netlink" [dependencies] futures = "0.3.11" thiserror = "1" -netlink-packet-audit = "0.3" -netlink-proto = { default-features = false, version = "0.8" } +netlink-packet-audit = "0.4" +netlink-proto = { default-features = false, version = "0.9" } [features] default = ["tokio_socket"] diff --git a/ethtool/Cargo.toml b/ethtool/Cargo.toml index f6a92ad5..fd7ac596 100644 --- a/ethtool/Cargo.toml +++ b/ethtool/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ethtool" -version = "0.2.0" # TODO: drop this comment - already bumped version for trait changes +version = "0.2.0" authors = ["Gris Ge "] license = "MIT" edition = "2018" @@ -26,10 +26,10 @@ byteorder = "1.4.3" futures = "0.3.17" genetlink = { default-features = false, version = "0.2.0"} log = "0.4.14" -netlink-packet-core = "0.3.0" +netlink-packet-core = "0.4.0" netlink-packet-generic = "0.2.0" -netlink-packet-utils = "0.4.1" -netlink-proto = { default-features = false, version = "0.8.0" } +netlink-packet-utils = "0.5" +netlink-proto = { default-features = false, version = "0.9.0" } netlink-sys = "0.8.0" thiserror = "1.0.29" tokio = { version = "1.0.1", features = ["rt"], optional = true} diff --git a/genetlink/Cargo.toml b/genetlink/Cargo.toml index 5792225b..78436136 100644 --- a/genetlink/Cargo.toml +++ b/genetlink/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "genetlink" -version = "0.2.0" # TODO: drop this comment - already bumped version for trait changes +version = "0.2.0" authors = ["Leo "] edition = "2018" homepage = "https://github.com/little-dude/netlink" @@ -18,11 +18,11 @@ smol_socket = ["netlink-proto/smol_socket","async-std"] [dependencies] futures = "0.3.16" netlink-packet-generic = "0.2.0" -netlink-proto = { default-features = false, version = "0.8.0" } +netlink-proto = { default-features = false, version = "0.9.0" } tokio = { version = "1.9.0", features = ["rt"], optional = true } async-std = { version = "1.9.0", optional = true } -netlink-packet-utils = "0.4.1" -netlink-packet-core = "0.3.0" +netlink-packet-utils = "0.5.0" +netlink-packet-core = "0.4.0" thiserror = "1.0.26" [dev-dependencies] diff --git a/netlink-packet-audit/Cargo.toml b/netlink-packet-audit/Cargo.toml index fabd09d8..42c76f2a 100644 --- a/netlink-packet-audit/Cargo.toml +++ b/netlink-packet-audit/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ["Corentin Henry "] name = "netlink-packet-audit" -version = "0.3.0" # TODO: drop this comment - already bumped version for trait changes +version = "0.4.0" edition = "2018" homepage = "https://github.com/little-dude/netlink" @@ -16,9 +16,9 @@ anyhow = "1.0.31" bytes = "1.0" byteorder = "1.3.2" log = "0.4.8" -netlink-packet-core = "0.3" -netlink-packet-utils = ">= 0.3, <0.5" -netlink-proto = { default-features = false, version = "0.8" } +netlink-packet-core = "0.4" +netlink-packet-utils = "0.5" +netlink-proto = { default-features = false, version = "0.9" } [dev-dependencies] lazy_static = "1.4.0" diff --git a/netlink-packet-core/Cargo.toml b/netlink-packet-core/Cargo.toml index ccca7e14..585a6911 100644 --- a/netlink-packet-core/Cargo.toml +++ b/netlink-packet-core/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ["Corentin Henry "] name = "netlink-packet-core" -version = "0.3.0" # TODO: drop this comment - already bumped version for trait changes +version = "0.4.1" edition = "2018" homepage = "https://github.com/little-dude/netlink" @@ -15,7 +15,7 @@ description = "netlink packet types" anyhow = "1.0.31" byteorder = "1.3.2" libc = "0.2.66" -netlink-packet-utils = ">=0.3, <0.5" +netlink-packet-utils = "0.5" [dev-dependencies] -netlink-packet-route = "0.9" +netlink-packet-route = "0.10" diff --git a/netlink-packet-generic/Cargo.toml b/netlink-packet-generic/Cargo.toml index bfbbce79..3ad6b571 100644 --- a/netlink-packet-generic/Cargo.toml +++ b/netlink-packet-generic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "netlink-packet-generic" -version = "0.2.0" # TODO: drop this comment - already bumped version for trait changes +version = "0.2.0" authors = ["Leo "] edition = "2018" homepage = "https://github.com/little-dude/netlink" @@ -14,8 +14,8 @@ description = "generic netlink packet types" anyhow = "1.0.39" libc = "0.2.86" byteorder = "1.4.2" -netlink-packet-core = "0.3" -netlink-packet-utils = "0.4" +netlink-packet-core = "0.4" +netlink-packet-utils = "0.5" [dev-dependencies] netlink-sys = { path = "../netlink-sys", version = "0.8" } diff --git a/netlink-packet-route/Cargo.toml b/netlink-packet-route/Cargo.toml index a4e318ba..ecc46619 100644 --- a/netlink-packet-route/Cargo.toml +++ b/netlink-packet-route/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ["Corentin Henry "] name = "netlink-packet-route" -version = "0.9.0" # TODO: drop this comment - already bumped version for trait changes +version = "0.10.0" edition = "2018" homepage = "https://github.com/little-dude/netlink" @@ -18,8 +18,8 @@ rich_nlas = [] anyhow = "1.0.31" byteorder = "1.3.2" libc = "0.2.66" -netlink-packet-core = "0.3" -netlink-packet-utils = "0.4" +netlink-packet-core = "0.4" +netlink-packet-utils = "0.5" bitflags = "1.2.1" [[example]] diff --git a/netlink-packet-sock-diag/Cargo.toml b/netlink-packet-sock-diag/Cargo.toml index dfd52347..a916ac1b 100644 --- a/netlink-packet-sock-diag/Cargo.toml +++ b/netlink-packet-sock-diag/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ["Flier Lu ", "Corentin Henry "] name = "netlink-packet-sock-diag" -version = "0.2.0" # TODO: drop this comment - already bumped version for trait changes +version = "0.3.0" edition = "2018" homepage = "https://github.com/little-dude/netlink" @@ -14,8 +14,8 @@ description = "netlink packet types for the sock_diag subprotocol" [dependencies] anyhow = "1.0.32" byteorder = "1.3.4" -netlink-packet-core = "0.3" -netlink-packet-utils = ">= 0.3, <0.5" +netlink-packet-core = "0.4" +netlink-packet-utils = "0.5" bitflags = "1.2.1" libc = "0.2.77" smallvec = "1.4.2" diff --git a/netlink-packet-utils/Cargo.toml b/netlink-packet-utils/Cargo.toml index 046db2e2..8cbd2bda 100644 --- a/netlink-packet-utils/Cargo.toml +++ b/netlink-packet-utils/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "netlink-packet-utils" -version = "0.4.1" +version = "0.5.0" authors = ["Corentin Henry "] edition = "2018" homepage = "https://github.com/little-dude/netlink" diff --git a/netlink-packet-wireguard/Cargo.toml b/netlink-packet-wireguard/Cargo.toml index ffee7243..20e078e9 100644 --- a/netlink-packet-wireguard/Cargo.toml +++ b/netlink-packet-wireguard/Cargo.toml @@ -15,14 +15,14 @@ anyhow = "1.0.42" byteorder = "1.4.3" libc = "0.2.98" log = "0.4.14" -netlink-packet-generic = "0.1.0" -netlink-packet-utils = "0.4.1" +netlink-packet-generic = "0.2.0" +netlink-packet-utils = "0.5.0" [dev-dependencies] base64 = "0.13.0" env_logger = "0.9.0" futures = "0.3.16" -netlink-packet-core = "0.2.4" -netlink-proto = "0.7.0" -genetlink = "0.1.0" +netlink-packet-core = "0.4.0" +netlink-proto = "0.9.0" +genetlink = "0.2.0" tokio = { version = "1.9.0", features = ["macros", "rt-multi-thread"] } diff --git a/netlink-proto/Cargo.toml b/netlink-proto/Cargo.toml index f572d852..dcca5fc9 100644 --- a/netlink-proto/Cargo.toml +++ b/netlink-proto/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ["Corentin Henry "] name = "netlink-proto" -version = "0.8.0" # TODO: drop this comment - already bumped version for trait changes +version = "0.9.1" edition = "2018" homepage = "https://github.com/little-dude/netlink" @@ -16,7 +16,7 @@ bytes = "1.0" log = "0.4.8" futures = "0.3" tokio = { version = "1.0", default-features = false, features = ["io-util"] } -netlink-packet-core = "0.3" +netlink-packet-core = "0.4" netlink-sys = { default-features = false, version = "0.8" } [features] @@ -27,8 +27,8 @@ smol_socket = ["netlink-sys/smol_socket"] [dev-dependencies] env_logger = "0.8.2" tokio = { version = "1.0.1", default-features = false, features = ["macros", "rt-multi-thread"] } -netlink-packet-route = "0.9" -netlink-packet-audit = "0.3" +netlink-packet-route = "0.10" +netlink-packet-audit = "0.4" async-std = {version = "1.9.0", features = ["attributes"]} [[example]] diff --git a/netlink-sys/Cargo.toml b/netlink-sys/Cargo.toml index a8e59b4d..bf38577d 100644 --- a/netlink-sys/Cargo.toml +++ b/netlink-sys/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ["Corentin Henry "] name = "netlink-sys" -version = "0.8.0" # TODO: drop this comment - already bumped version for trait changes +version = "0.8.1" edition = "2018" homepage = "https://github.com/little-dude/netlink" @@ -43,7 +43,7 @@ tokio_socket = ["tokio", "futures"] smol_socket = ["async-io","futures"] [dev-dependencies] -netlink-packet-audit = "0.3" +netlink-packet-audit = "0.4" [dev-dependencies.tokio] version = "1.0.1" diff --git a/rtnetlink/Cargo.toml b/rtnetlink/Cargo.toml index 20e21048..d91db0f5 100644 --- a/rtnetlink/Cargo.toml +++ b/rtnetlink/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rtnetlink" -version = "0.9.0" # TODO: drop this comment - already bumped version for trait changes +version = "0.9.0" authors = ["Corentin Henry "] edition = "2018" @@ -21,8 +21,8 @@ smol_socket = ["netlink-proto/smol_socket", "async-global-executor"] futures = "0.3.11" log = "0.4.8" thiserror = "1" -netlink-packet-route = "0.9" -netlink-proto = { default-features = false, version = "0.8" } +netlink-packet-route = "0.10.0" +netlink-proto = { default-features = false, version = "0.9.0" } nix = "0.22.0" tokio = { version = "1.0.1", features = ["rt"], optional = true} async-global-executor = { version = "2.0.2", optional = true }