rtnetlink
rtnetlink copied to clipboard
Package rtnetlink provides low-level access to the Linux rtnetlink API. MIT Licensed.
The current implementation of the rtnetlink API does not appear to contain any constants to refer to link types when creating/referencing a link. I was wondering if those constants could...
The `CacheInfo` struct in `address.go` has a misspelled variable, `Prefered`. This should be `Preferred`. This is a breaking change, not sure how this should be handled here.
the linux kernel handles a RTM_GETLINK request even in case of incorrent kind filter. if it finds requested kind it responds with a list of this kind of links and...
- Create bridge. - Equivalent to `ip link add name type bridge`. - Create VLAN interface. - Equivalent to `ip link add link name . type vlan id `.
For example, the underlying `netlink` package provides a [`nltest`](https://pkg.go.dev/github.com/mdlayher/[email protected]/nltest) package, with a [`Dial()` function](https://pkg.go.dev/github.com/mdlayher/[email protected]/nltest#Dial) that allows to create a dummy connection, and test that expected netlink messages are sent. I...