netlink.h 365 B

1234567891011
  1. #ifndef NETLINK_H
  2. #define NETLINK_H
  3. /* Socket identifier, matches userland. TODO can be anything?
  4. * Is there a more scalable way to do it? E.g. ioctl device,
  5. * kernel generates one on the fly, then give it back and connect?
  6. * https://stackoverflow.com/questions/32898173/can-i-have-more-than-32-netlink-sockets-in-kernelspace */
  7. #define NETLINK_USER 31
  8. #endif