#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <openvpn/common/numeric_util.hpp>
#include <openvpn/addr/ip.hpp>
#include <openvpn/addr/ipv4.hpp>
#include <openvpn/addr/ipv6.hpp>
#include <openvpn/addr/route.hpp>
Go to the source code of this file.
◆ NLMSG_TAIL
#define NLMSG_TAIL |
( |
|
nmsg | ) |
((struct rtattr *)(((uint8_t *)(nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len))) |
◆ OPENVPN_LOG_RTNL
#define OPENVPN_LOG_RTNL |
( |
|
_x | ) |
|
◆ RCVBUF_SIZE
#define RCVBUF_SIZE (1024 * 4) |
◆ SITNL_ADDATTR
#define SITNL_ADDATTR |
( |
|
_msg, |
|
|
|
_max_size, |
|
|
|
_attr, |
|
|
|
_data, |
|
|
|
_size |
|
) |
| |
Value: { \
if (sitnl_addattr(_msg, _max_size, _attr, _data, _size) < 0) \
{ \
goto err; \
} \
}
Definition at line 44 of file sitnl.hpp.
◆ SNDBUF_SIZE
#define SNDBUF_SIZE (1024 * 2) |