Skip to content

Conversation

@cathay4t
Copy link
Member

Breaking changes:

  • All netlink attribute are marked as #[non_exhaustive].
  • Renamed Wireguard to WireguardMessage.
  • Renamed WgDeviceAttrs to WireguardAttribute.
  • Renamed WgAllowedIp to WireguardAllowedIp.
  • Renamed WgPeerAttrs to WireguardPeer.
  • Renamed WgPeer to WireguardPeerAttribute.
  • Will not expose any constants.
  • Changed the use of std::time::SystemTime to self-defined WireguardTimeSpec.
  • Do not raise error for unknown attribute but store in
    Self::Other(DefaultNla).

Rewrite unit test cases.

Example code updated and manually tested.

Breaking changes:
 * All netlink attribute are marked as `#[non_exhaustive]`.
 * Renamed `Wireguard` to `WireguardMessage`.
 * Renamed `WgDeviceAttrs` to `WireguardAttribute`.
 * Renamed `WgAllowedIp` to `WireguardAllowedIp`.
 * Renamed `WgPeerAttrs` to `WireguardPeer`.
 * Renamed `WgPeer` to `WireguardPeerAttribute`.
 * Will not expose any constants.
 * Changed the use of `std::time::SystemTime` to self-defined `WireguardTimeSpec`.
 * Do not raise error for unknown attribute but store in
   `Self::Other(DefaultNla)`.

Rewrite unit test cases.

Example code updated and manually tested.

Signed-off-by: Gris Ge <[email protected]>
@cathay4t cathay4t merged commit 3067a39 into rust-netlink:main Jan 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant