OpenVPN 3 Core Library
Loading...
Searching...
No Matches
sitnl.hpp File Reference
#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>
Include dependency graph for sitnl.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openvpn::TunNetlink::SITNL
 
struct  openvpn::TunNetlink::SITNL::sitnl_link_req
 
struct  openvpn::TunNetlink::SITNL::sitnl_addr_req
 
struct  openvpn::TunNetlink::SITNL::sitnl_route_req
 
struct  openvpn::TunNetlink::SITNL::route_res_t
 
struct  openvpn::TunNetlink::SITNL::iface_addr_res_t
 

Namespaces

namespace  openvpn
 
 

Macros

#define OPENVPN_LOG_RTNL(_x)
 
#define SNDBUF_SIZE   (1024 * 2)
 
#define RCVBUF_SIZE   (1024 * 4)
 
#define SITNL_ADDATTR(_msg, _max_size, _attr, _data, _size)
 
#define NLMSG_TAIL(nmsg)    ((struct rtattr *)(((uint8_t *)(nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len)))
 

Macro Definition Documentation

◆ NLMSG_TAIL

#define NLMSG_TAIL (   nmsg)     ((struct rtattr *)(((uint8_t *)(nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len)))

Definition at line 52 of file sitnl.hpp.

◆ OPENVPN_LOG_RTNL

#define OPENVPN_LOG_RTNL (   _x)

Definition at line 35 of file sitnl.hpp.

◆ RCVBUF_SIZE

#define RCVBUF_SIZE   (1024 * 4)

Definition at line 42 of file sitnl.hpp.

◆ 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)

Definition at line 41 of file sitnl.hpp.