Question

What is the best way to send and receive netlink messages from userspace in C++? I don't want to use C. I'm wanting to connect with the inet_diag module.

Was it helpful?

Solution

"There is no best, you pick the one most suitable for the task at hand." Possible ways:

  • DIY construction of NL messages
  • Aided construction with libmnl
  • libnl3, but the API seems more complex than needed
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top