Rod Hynes 1b9c430371 Update vendored mdlayher/netlink %!s(int64=5) %!d(string=hai) anos
..
nlenc f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos
CHANGELOG.md f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos
LICENSE.md f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos
README.md f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos
align.go f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos
attribute.go f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos
conn.go 1b9c430371 Update vendored mdlayher/netlink %!s(int64=5) %!d(string=hai) anos
conn_linux.go 1b9c430371 Update vendored mdlayher/netlink %!s(int64=5) %!d(string=hai) anos
conn_others.go f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos
debug.go f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos
doc.go f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos
errors.go f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos
fdcall_gteq_1.12.go f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos
fdcall_lt_1.12.go f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos
fuzz.go f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos
go.mod f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos
go.sum f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos
message.go f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos
netlink.dot f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos
netlink.svg f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos
netns_linux.go f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos
rawconn_gteq_1.12.go f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos
rawconn_lt_1.12.go f915f6fa7f Vendor packetman dependencies %!s(int64=5) %!d(string=hai) anos

README.md

netlink builds.sr.ht status GoDoc Go Report Card

Package netlink provides low-level access to Linux netlink sockets. MIT Licensed.

For more information about how netlink works, check out my blog series on Linux, Netlink, and Go.

If you have any questions or you'd like some guidance, please join us on Gophers Slack in the #networking channel!

Stability

See the CHANGELOG file for a description of changes between releases.

This package has a stable v1 API and any future breaking changes will prompt the release of a new major version. Features and bug fixes will continue to occur in the v1.x.x series.

The general policy of this package is to only support the latest, stable version of Go. Compatibility shims may be added for prior versions of Go on an as-needed basis. If you would like to raise a concern, please file an issue.

If you depend on this package in your applications, please use Go modules.

Design

A number of netlink packages are already available for Go, but I wasn't able to find one that aligned with what I wanted in a netlink package:

  • Straightforward, idiomatic API
  • Well tested
  • Well documented
  • Doesn't use package/global variables or state
  • Doesn't necessarily need root to work

My goal for this package is to use it as a building block for the creation of other netlink family packages.

Ecosystem

Over time, an ecosystem of Go packages has developed around package netlink. Many of these packages provide building blocks for further interactions with various netlink families, such as NETLINK_GENERIC or NETLINK_ROUTE.

To have your package included in this diagram, please send a pull request!

netlink ecosystem