~bitfehler/hare-netlink

Native Hare access to the Linux netlink API
Adapt to some Hare API changes
Add support for adding IP addresses
Add .gitignore

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~bitfehler/hare-netlink
read/write
git@git.sr.ht:~bitfehler/hare-netlink

You can also use your local clone with git send-email.

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