I am trying to make a health monitor from a kernel module to a userspace service. I read about netlink sockets, but everything I have read says you must modify netlink.h to include your new netlink family type, and compile the kernel.
Code:
#define NETLINK_MYLINK 17
The entire reason I am using a kernel module is so I dont have to recompile the kernel, and can do everything with a stock kernel. Could I just define my family inside my kernel module rather than in netlink.h?
If not I noticed there are also some families that if nothing else is using them I could just use those. Like any of these.
Code:
#define NETLINK_UNUSED 1
#define NETLINK_GENERIC 16
Thanks.