Sending and receiving arbitrary messages using generic netlink (written in Rust)
Netlink is one of the nicer interfaces to communicate between userland and linux kernel, but it’s still quite hard, tho. For an uni project I had to figure it out how to communicate between userland and a self written Linux kernel module using the generic part of the netlink protocol. Because it was quite tough I want to share my findings with the open source world.
I choosed Rust as the language for the userland and „neli“ as library. All my code can be found on Github. I recommend directly visiting Github for all the latest comments and code.