github.com/mdlayher/netlink
v1.11.2
#1574 most downloaded on Go modules
mdlayher/netlink
What this package is like to depend on
Last release 1 months ago
21 Jul 2026
Release timing varies
gaps range from 8 days to 4 months
Nearly every release is documented
notes for 21 of 21 stable releases
3 versions withdrawn
withdrawn after publishing
10 years old
218 releases · first in 2016
43 releases in the last 12 months
see the full history below
Release timeline
218 releases · Dec 2016 to Jul 2026Releases
latest 60 of 218-
v1.11.3-0.20260721050040-5fd31d4ee2be21 Jul 2026 pre-releaseNothing published for this version
-
v1.11.3-0.20260717075322-c62bca8e6e7917 Jul 2026 pre-releaseNothing published for this version
-
v1.11.3-0.20260715220240-e72de70de7ab15 Jul 2026 pre-releaseNothing published for this version
-
v1.11.3-0.20260704115607-3708f72c63eb04 Jul 2026 pre-releaseNothing published for this version
-
v1.11.3-0.20260604185630-bc782c9225f304 Jun 2026 pre-releaseNothing published for this version
-
v1.11.216 May 2026 -
v1.11.2-0.20260512162744-2a760548883912 May 2026 pre-releaseNothing published for this version
-
v1.11.2-0.20260502173654-38814168904502 May 2026 pre-releaseNothing published for this version
-
v1.11.116 Apr 2026 withdrawnVersion retracted: contains a bug where `netlink.Conn.Receive` blocks concurrent calls to `netlink.Conn.Send` when blocking in `recvmsg`.
Release notes
Open source →- [Bug Fix]: #283 fixed a bug
where
netlink.Conn.Receivewould reject valid netlink messages whose header length is not aligned. This is common with nfqueue, nflog and conntrack events. - [Bug Fix]: #284 fixed a bug
where
netlink.Message.Datacould be silently overwritten by subsequentnetlink.Conn.Receivecalls whennetlink.Config.MessageBufferSizeis enabled, due to pooled buffer reuse. - [Improvement]: #282 improved
error handling by usage of
errorspackage.
- [Bug Fix]: #283 fixed a bug
where
-
v1.11.1-0.20260413183117-87883031ec9c13 Apr 2026 pre-releaseNothing published for this version
-
v1.11.1-0.20260413155445-bf38b1689d9413 Apr 2026 pre-releaseNothing published for this version
-
v1.11.1-0.20260411195125-7693f5c5c6db11 Apr 2026 pre-releaseNothing published for this version
-
v1.11.1-0.20260411194003-9f71f8eb2c9e11 Apr 2026 pre-releaseNothing published for this version
-
v1.11.1-0.20260411094011-c24d5163915b11 Apr 2026 pre-releaseNothing published for this version
-
v1.11.011 Apr 2026 withdrawnVersion retracted: contains a bug where `netlink.Conn.Receive` and `netlink.Conn.ReceiveIter` reject valid netlink messages whose header length is not aligned.
Release notes
Open source →This is the first release of package netlink that only supports Go 1.25+.
- [Bug Fix]: #280 fixed a
critical bug where
netlink.Conn.Receiveandnetlink.Conn.ReceiveIterwould panic if the received message was unaligned. - [Improvement]: #277 added big-endian test fixtures for nlenc and deprecated endian helpers in favor of binary.NativeEndian.
- [Improvement]: #276 fixed skipping of tests on big-endian hosts.
- [Improvement]: #273 added golangci-lint to the CI pipeline and fixed all existing lint issues.
- [Improvement]: #272 updated dependencies and Go version to 1.25.
- [Bug Fix]: #280 fixed a
critical bug where
-
v1.10.1-0.20260410153103-1ae4967fba3610 Apr 2026 pre-releaseNothing published for this version
-
v1.10.1-0.20260409135146-a044567dd07009 Apr 2026 pre-releaseNothing published for this version
-
v1.10.1-0.20260406161414-dbe648a1fd3906 Apr 2026 pre-releaseNothing published for this version
-
v1.10.1-0.20260401191602-f19a7349162b01 Apr 2026 pre-releaseNothing published for this version
-
v1.10.1-0.20260401071749-f05b50aa117f01 Apr 2026 pre-releaseNothing published for this version
-
v1.10.001 Apr 2026 withdrawnVersion retracted: contains a critical bug where `netlink.Conn.Receive` and `netlink.Conn.ReceiveIter` would panic if the received message was unaligned.
Release notes
Open source →Users of this version should upgrade to v1.11.0 as this version contains a critical bug.
- [New API]: #270 added
MessageBufferSizeoption tonetlink.Configfor configuring the size of the copy buffer used for receiving messages. This can improve performance in high-throughput applications by reducing the number of syscalls needed to receive messages. - [Improvement]: #219 added
debug logging inspired by libmnl. This is now the new default when setting
NLDEBUGin the environment. - [New API]: #258 added
netlink.Conn.ReceiveIterfor iterating over responses without collecting them into a slice. It also optimizednetlink.Conn.Receiveto use this new API internally so that less memory is used. - [Improvement]: #269 made it so
nltest.Conn.Receivecan be used to test that multi-part messages are drained properly. - [Improvement]: #266 optimized
the initial parsing of netlink messages in
netlink.Socket.Receiveby adding an iterator for parsing messages directly from the receive buffer. - [Improvement]: #267 added integration test benchmarks for multi-part dumps.
- [Improvement]: #215 optimized
the internal peek/allocate logic in
netlink.Socket.Receive. Messages are no longer being copied during peeking and the buffer is allocated to the exact size of the upcoming message. - [Bug Fix]: #265 fixed a bug
where concurrent calls to
netlink.Conn.Receivecould race with each other when handling multi-part messages. Calls toReceiveare now serialized. - [Improvement]: #264 added
handling for truncated messages in
netlink.Socket.Receive.
- [New API]: #270 added
-
v1.9.1-0.20260410153103-1ae4967fba3610 Apr 2026 pre-releaseNothing published for this version
-
v1.9.1-0.20260331203715-6d8d9cec891f31 Mar 2026 pre-releaseNothing published for this version
-
v1.9.1-0.20260328121330-758d46d52cfe28 Mar 2026 pre-releaseNothing published for this version
-
v1.9.1-0.20260322151810-5af0e4f4cb1d22 Mar 2026 pre-releaseNothing published for this version
-
v1.9.1-0.20260318211955-ccabe8e0fc6818 Mar 2026 pre-releaseNothing published for this version
-
v1.9.1-0.20260312172110-2a932c0fc1ae12 Mar 2026 pre-releaseNothing published for this version
-
v1.9.1-0.20260307200154-dce357b76acb07 Mar 2026 pre-releaseNothing published for this version
-
v1.9.028 Feb 2026Release notes
Open source →This is the first release of package netlink that only supports Go 1.24+.
- [Improvement]: updated dependencies and Go version to 1.24; tests now run on Go 1.24-1.26.
- [New API]: #236 introduced
Sequencefield toOpErrorfor better error correlation. - [New API]: #237 added
netlink.Conn.PIDmethod to retrieve the connection's PID, also known as port ID. - [Improvement]: #228 fixed skipping of specific tests on big-endian hosts.
-
v1.8.1-0.20251028132421-dcc6cab9a6eb28 Oct 2025 pre-releaseNothing published for this version
-
v1.8.1-0.20250826190114-61e9657b4a6626 Aug 2025 pre-releaseNothing published for this version
-
v1.8.025 Aug 2025Release notes
Open source →- [Improvement]: Updated dependencies, test with Go 1.23 to 1.25.
- [Improvement]: Use Go 1.21's binary.NativeEndian (#220)
- [Improvement]: Expose socket ReadBuffer & WriteBuffer functions (#223)
-
v1.7.3-0.20250702063131-0f7746f7461502 Jul 2025 pre-releaseNothing published for this version
-
v1.7.3-0.20250113171957-fbb4dce95f4213 Jan 2025 pre-releaseNothing published for this version
-
v1.7.3-0.20240509142737-13a521f2e36209 May 2024 pre-releaseNothing published for this version
-
v1.7.229 Apr 2023 -
v1.7.2-0.20221213171556-9881fafed8c713 Dec 2022 pre-releaseNothing published for this version
-
v1.7.112 Dec 2022 -
v1.7.1-0.20221212035122-879e725aa9cf12 Dec 2022 pre-releaseNothing published for this version
-
v1.7.1-0.20221112163053-ca0202ed4d6e12 Nov 2022 pre-releaseNothing published for this version
-
v1.7.012 Nov 2022Release notes
Open source →This is the first release of package netlink that only supports Go 1.18+. Users on older versions of Go must use v1.6.2.
- [Improvement]: drop support for older versions of Go so we can begin using
modern versions of
x/sysand other dependencies.
- [Improvement]: drop support for older versions of Go so we can begin using
modern versions of
-
v1.6.3-0.20221007145004-89ac54d22f3007 Oct 2022 pre-releaseNothing published for this version
-
v1.6.224 Sep 2022Release notes
Open source →This is the last release of package netlink that supports Go 1.17 and below.
- [Bug Fix] commit:
undo update to
golang.org/x/syswhich would force the minimum Go version of this package to Go 1.17 due to use ofunsafe.Slice. We encourage users to use the latest stable version of Go where possible, but continue to maintain some compatibility with older versions of Go as long as it is reasonable to do so.
- [Bug Fix] commit:
undo update to
-
v1.6.124 Sep 2022Release notes
Open source →- [Deprecation] commit:
the
netlink.Socketinterface has been marked as deprecated. The abstraction is awkward to use properly and disables much of the functionality of the Conn type when the basic interface is implemented. Do not use.
- [Deprecation] commit:
the
-
v1.6.1-0.20220919145153-9a593f9dc1a919 Sep 2022 pre-releaseNothing published for this version
-
v1.6.1-0.20220917152705-f83d71b4755c17 Sep 2022 pre-releaseNothing published for this version
-
v1.6.1-0.20220802203850-49941fc3233902 Aug 2022 pre-releaseNothing published for this version
-
v1.6.1-0.20220523170834-45e5b2690b8423 May 2022 pre-releaseNothing published for this version
-
v1.6.1-0.20220426203722-d1b69ea8697d26 Apr 2022 pre-releaseNothing published for this version
-
v1.6.1-0.20220228150759-30d59929967428 Feb 2022 pre-releaseNothing published for this version
-
v1.6.1-0.20220223143507-b9b855cfb71323 Feb 2022 pre-releaseNothing published for this version
-
v1.6.1-0.20220223121531-1c638e7e56d923 Feb 2022 pre-releaseNothing published for this version
-
v1.6.1-0.20220213132544-ae88b87eb65813 Feb 2022 pre-releaseNothing published for this version
-
v1.6.031 Jan 2022Release notes
Open source →This is the first release of package netlink that only supports Go 1.13+. Users on older versions of Go must use v1.5.0.
- [New API] commit:
the
netlink.Config.Strictfield can be used to apply a more strict default set of options to anetlink.Conn. This is recommended for applications running on modern Linux kernels, but cannot be enabled by default because the options may require a more recent kernel than the minimum kernel version that Go supports. See the documentation for details. - [Improvement]: broke some integration tests into a separate Go module so the
default
go.modfor packagenetlinkhas fewer dependencies.
- [New API] commit:
the
-
v1.5.1-0.20220131003253-9c755a71aa9b31 Jan 2022 pre-releaseNothing published for this version
-
v1.5.1-0.20220116183107-c2cb74e8e0ad16 Jan 2022 pre-releaseNothing published for this version
-
v1.5.1-0.20211213204236-158583150dc513 Dec 2021 pre-releaseNothing published for this version
-
v1.5.1-0.20211213201721-776dcfddce1113 Dec 2021 pre-releaseNothing published for this version
-
v1.5.1-0.20211213201245-8b9fac2f4f6813 Dec 2021 pre-releaseNothing published for this version
-
v1.5.1-0.20211213200742-7ec65ac9440a13 Dec 2021 pre-releaseNothing published for this version