Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

2021-12-29 release #221

Merged
merged 1 commit into from
Dec 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions audit/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <corentinhenry@gmail.com>"]
edition = "2018"

Expand All @@ -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"]
Expand Down
8 changes: 4 additions & 4 deletions ethtool/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <fge@redhat.com>"]
license = "MIT"
edition = "2018"
Expand All @@ -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}
Expand Down
8 changes: 4 additions & 4 deletions genetlink/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <leo881003@gmail.com>"]
edition = "2018"
homepage = "https://github.com/little-dude/netlink"
Expand All @@ -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]
Expand Down
8 changes: 4 additions & 4 deletions netlink-packet-audit/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["Corentin Henry <corentinhenry@gmail.com>"]
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"
Expand All @@ -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"
6 changes: 3 additions & 3 deletions netlink-packet-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["Corentin Henry <corentinhenry@gmail.com>"]
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"
Expand All @@ -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"
6 changes: 3 additions & 3 deletions netlink-packet-generic/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <leo881003@gmail.com>"]
edition = "2018"
homepage = "https://github.com/little-dude/netlink"
Expand All @@ -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" }
6 changes: 3 additions & 3 deletions netlink-packet-route/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["Corentin Henry <corentinhenry@gmail.com>"]
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"
Expand All @@ -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]]
Expand Down
6 changes: 3 additions & 3 deletions netlink-packet-sock-diag/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["Flier Lu <flier.lu@gmail.com>", "Corentin Henry <corentinhenry@gmail.com>"]
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"
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion netlink-packet-utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "netlink-packet-utils"
version = "0.4.1"
version = "0.5.0"
authors = ["Corentin Henry <corentinhenry@gmail.com>"]
edition = "2018"
homepage = "https://github.com/little-dude/netlink"
Expand Down
10 changes: 5 additions & 5 deletions netlink-packet-wireguard/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
8 changes: 4 additions & 4 deletions netlink-proto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["Corentin Henry <corentinhenry@gmail.com>"]
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"
Expand All @@ -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]
Expand All @@ -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]]
Expand Down
4 changes: 2 additions & 2 deletions netlink-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["Corentin Henry <corentinhenry@gmail.com>"]
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"
Expand Down Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions rtnetlink/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <corentinhenry@gmail.com>"]
edition = "2018"

Expand All @@ -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 }
Expand Down