OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::TunNetlink::NetlinkRoute6 Struct Reference

#include <tunnetlink.hpp>

Inheritance diagram for openvpn::TunNetlink::NetlinkRoute6:
[legend]
Collaboration diagram for openvpn::TunNetlink::NetlinkRoute6:
[legend]

Public Types

using Ptr = RCPtr< NetlinkRoute6 >
 
- Public Types inherited from openvpn::Action
using Ptr = RCPtr< Action >
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
using Ptr = RCPtr< RC >
 

Public Member Functions

 NetlinkRoute6 ()=default
 
 NetlinkRoute6 (IPv6::Addr &dst_arg, int prefixlen_arg, IPv6::Addr &gw_arg, std::string dev_arg, int metric_arg, bool add_arg)
 
NetlinkRoute6copy () const
 
void execute (std::ostream &os) override
 
std::string to_string () const override
 
- Public Member Functions inherited from openvpn::Action
virtual Json::Value to_json () const
 
virtual ~Action ()=default
 
- Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
 RC () noexcept=default
 
 RC (const RC &)=delete
 
virtual ~RC ()=default
 
RCoperator= (const RC &)=delete
 
olong use_count () const noexcept
 Delegates call to RCImpl and returns the result.
 

Public Attributes

IP::Route6 route
 
IPv6::Addr gw
 
std::string dev
 
int metric = -1
 
bool add = true
 
- Public Attributes inherited from openvpn::Action
std::string mark
 

Additional Inherited Members

- Static Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
static constexpr bool is_thread_safe ()
 Delegates call to RCImpl and returns the result.
 

Detailed Description

Definition at line 361 of file tunnetlink.hpp.

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ NetlinkRoute6() [1/2]

openvpn::TunNetlink::NetlinkRoute6::NetlinkRoute6 ( )
default
Here is the caller graph for this function:

◆ NetlinkRoute6() [2/2]

openvpn::TunNetlink::NetlinkRoute6::NetlinkRoute6 ( IPv6::Addr dst_arg,
int  prefixlen_arg,
IPv6::Addr gw_arg,
std::string  dev_arg,
int  metric_arg,
bool  add_arg 
)
inline

Definition at line 367 of file tunnetlink.hpp.

Member Function Documentation

◆ copy()

NetlinkRoute6 * openvpn::TunNetlink::NetlinkRoute6::copy ( ) const
inline

Definition at line 381 of file tunnetlink.hpp.

◆ execute()

void openvpn::TunNetlink::NetlinkRoute6::execute ( std::ostream &  os)
inlineoverridevirtual

Implements openvpn::Action.

Definition at line 391 of file tunnetlink.hpp.

◆ to_string()

std::string openvpn::TunNetlink::NetlinkRoute6::to_string ( ) const
inlineoverridevirtual

Implements openvpn::Action.

Definition at line 416 of file tunnetlink.hpp.

Member Data Documentation

◆ add

bool openvpn::TunNetlink::NetlinkRoute6::add = true

Definition at line 428 of file tunnetlink.hpp.

◆ dev

std::string openvpn::TunNetlink::NetlinkRoute6::dev

Definition at line 426 of file tunnetlink.hpp.

◆ gw

IPv6::Addr openvpn::TunNetlink::NetlinkRoute6::gw

Definition at line 425 of file tunnetlink.hpp.

◆ metric

int openvpn::TunNetlink::NetlinkRoute6::metric = -1

Definition at line 427 of file tunnetlink.hpp.

◆ route

IP::Route6 openvpn::TunNetlink::NetlinkRoute6::route

Definition at line 424 of file tunnetlink.hpp.


The documentation for this struct was generated from the following file: