diff --git a/CHANGELOG.md b/CHANGELOG.md index ac7fd8e..7bf79be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # CHANGELOG +## v1.11.1 +- [Bug Fix]: [#283](https://github.com/mdlayher/netlink/pull/283) fixed a bug +where `netlink.Conn.Receive` would reject valid netlink messages whose header +length is not aligned. This is common with nfqueue, nflog and conntrack events. +- [Bug Fix]: [#284](https://github.com/mdlayher/netlink/pull/284) fixed a bug +where `netlink.Message.Data` could be silently overwritten by subsequent +`netlink.Conn.Receive` calls when `netlink.Config.MessageBufferSize` is enabled, +due to pooled buffer reuse. +- [Improvement]: [#282](https://github.com/mdlayher/netlink/pull/282) improved +error handling by usage of `errors` package. + ## v1.11.0 **This is the first release of package netlink that only supports Go 1.25+.** diff --git a/go.mod b/go.mod index 67201b1..93c3d91 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,9 @@ module github.com/mdlayher/netlink go 1.25.0 retract ( + // contains a bug where `netlink.Conn.Receive` and `netlink.Conn.ReceiveIter` reject + // valid netlink messages whose header length is not aligned. + v1.11.0 // contains a critical bug where `netlink.Conn.Receive` and `netlink.Conn.ReceiveIter` // would panic if the received message was unaligned. v1.10.0 diff --git a/internal/integration/go.mod b/internal/integration/go.mod index 5367b37..5a7518b 100644 --- a/internal/integration/go.mod +++ b/internal/integration/go.mod @@ -20,6 +20,6 @@ require ( // We require a recent release, but in reality the integration tests should // always use the netlink module at the root of the repository. -require github.com/mdlayher/netlink v1.11.0 +require github.com/mdlayher/netlink v1.11.1 replace github.com/mdlayher/netlink => ../../