Thoughtful Dragon
Thoughtful Dragon

Reputation: 260

What is the best way to use netlink from C++?

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.

Upvotes: 3

Views: 1738

Answers (1)

jørgensen
jørgensen

Reputation: 10551

"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

Upvotes: 2

Related Questions