~bitfehler/hare-netlink

Native Hare access to the Linux netlink API

29fa62c Adapt to some Hare API changes

4 months ago
4 months ago

This is a small Hare library to provide access to the Linux netlink(7) API.

Very much WIP. Focus is on rtnetlink(7), status is "mostly works on my machine". I'll happily accept patches for any of the other APIs.

There is a small example program included (cmd/hare-netlink) that illustrates the following use cases:

  • List all devices
  • List all IP addresses
  • Add an additional loopback address to a loopback device (read the source code)

If you are interested, send an email to my public inbox: ~bitfehler/public-inbox@lists.sr.ht