2017-01-09 20:33:55 +01:00
|
|
|
netlink [![Build Status](https://travis-ci.org/mdlayher/netlink.svg?branch=master)](https://travis-ci.org/mdlayher/netlink) [![GoDoc](https://godoc.org/github.com/mdlayher/netlink?status.svg)](https://godoc.org/github.com/mdlayher/netlink) [![Go Report Card](https://goreportcard.com/badge/github.com/mdlayher/netlink)](https://goreportcard.com/report/github.com/mdlayher/netlink)
|
|
|
|
=======
|
|
|
|
|
|
|
|
Package `netlink` provides low-level access to Linux netlink sockets.
|
|
|
|
MIT Licensed.
|
|
|
|
|
2017-11-02 12:30:34 +01:00
|
|
|
For more information about how netlink works, check out my blog series
|
|
|
|
on [Linux, Netlink, and Go](https://medium.com/@mdlayher/linux-netlink-and-go-part-1-netlink-4781aaeeaca8).
|
|
|
|
|
|
|
|
If you're looking for package `genetlink`, it's been moved to its own
|
|
|
|
repository at [`github.com/mdlayher/genetlink`](https://github.com/mdlayher/genetlink).
|
|
|
|
|
2017-01-09 20:33:55 +01:00
|
|
|
Why?
|
|
|
|
----
|
|
|
|
|
|
|
|
A [number of netlink packages](https://godoc.org/?q=netlink) are already
|
|
|
|
available for Go, but I wasn't able to find one that aligned with what
|
|
|
|
I wanted in a netlink package:
|
|
|
|
|
|
|
|
- Simple, idiomatic API
|
|
|
|
- Well tested
|
|
|
|
- Well documented
|
|
|
|
- Makes use of Go best practices
|
|
|
|
- Doesn't need root to work
|
|
|
|
|
|
|
|
My goal for this package is to use it as a building block for the creation
|
2017-11-02 12:30:34 +01:00
|
|
|
of other netlink family packages.
|