Netlink class is responsible for communicating with kernel through netlink interface.
More...
#include <netlink.hpp>
Netlink class is responsible for communicating with kernel through netlink interface.
vasum::netlink::Netlink::Netlink |
( |
| ) |
|
vasum::netlink::Netlink::~Netlink |
( |
| ) |
|
vasum::netlink::Netlink::Netlink |
( |
const Netlink & |
other | ) |
|
|
delete |
void vasum::netlink::Netlink::close |
( |
| ) |
|
void vasum::netlink::Netlink::open |
( |
int |
netNsPid = 0 | ) |
|
Open connnection.
- Parameters
-
netNsPid | pid which defines net namespace |
std::unique_ptr< std::vector< char > > vasum::netlink::Netlink::rcv |
( |
unsigned int |
nlmsgSeq | ) |
|
Receive message.
It is not thread safe and even you shouldn't call this function on different instances at the same time
- Parameters
-
- Returns
- received data
unsigned int vasum::netlink::Netlink::send |
( |
const void * |
nlmsg | ) |
|
Send message.
It is not thread safe and even you shouldn't call this function on different instances at the same time
- Parameters
-
- Returns
- sequence number
int vasum::netlink::Netlink::mFd |
|
private |
The documentation for this class was generated from the following files: