NetlinkMessage is used to creatie a netlink messages.
More...
#include <netlink-message.hpp>
NetlinkMessage is used to creatie a netlink messages.
vasum::netlink::NetlinkMessage::NetlinkMessage |
( |
std::uint16_t |
type, |
|
|
std::uint16_t |
flags |
|
) |
| |
Create netlink message.
- Parameters
-
type | rtnetlink message type (see man 7 rtnetlink) |
flags | nlmsg flags (see man 7 netlink) |
NetlinkMessage & vasum::netlink::NetlinkMessage::beginNested |
( |
int |
ifla | ) |
|
Add nested atribute type.
All future attributes will be nested in this attribute (till call to endNested)
- Parameters
-
nlmsghdr & vasum::netlink::NetlinkMessage::hdr |
( |
| ) |
|
|
private |
const nlmsghdr & vasum::netlink::NetlinkMessage::hdr |
( |
| ) |
const |
|
private |
NetlinkMessage & vasum::netlink::NetlinkMessage::put |
( |
int |
ifla, |
|
|
const std::string & |
value |
|
) |
| |
template<class T >
NetlinkMessage & vasum::netlink::NetlinkMessage::put |
( |
int |
ifla, |
|
|
const T & |
value |
|
) |
| |
template<class T >
NetlinkMessage & vasum::netlink::NetlinkMessage::put |
( |
const T & |
value | ) |
|
Add raw data.
Add raw data to end of netlink message
NetlinkMessage & vasum::netlink::NetlinkMessage::put |
( |
int |
ifla, |
|
|
const void * |
data, |
|
|
int |
len |
|
) |
| |
|
private |
NetlinkMessage & vasum::netlink::NetlinkMessage::put |
( |
const void * |
data, |
|
|
int |
len |
|
) |
| |
|
private |
void vasum::netlink::NetlinkMessage::setMinCapacity |
( |
unsigned int |
size | ) |
|
|
private |
Send netlink message.
It is not thread safe
- Parameters
-
msg | Netlink message |
pid | Process id which describes network namespace |
std::stack<int> vasum::netlink::NetlinkMessage::mNested |
|
private |
std::vector<char> vasum::netlink::NetlinkMessage::mNlmsg |
|
private |
The documentation for this class was generated from the following files: