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

typedef RCPtr< NetlinkRoute6Ptr
 
- Public Types inherited from openvpn::Action
typedef RCPtr< ActionPtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 

Public Member Functions

 NetlinkRoute6 ()
 
 NetlinkRoute6 (IPv6::Addr &dst_arg, int prefixlen_arg, IPv6::Addr &gw_arg, std::string dev_arg, int metric_arg, bool add_arg)
 
NetlinkRoute6copy () const
 
virtual void execute (std::ostream &os) override
 
virtual 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 371 of file tunnetlink.hpp.

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ NetlinkRoute6() [1/2]

openvpn::TunNetlink::NetlinkRoute6::NetlinkRoute6 ( )
inline

Definition at line 375 of file tunnetlink.hpp.

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 379 of file tunnetlink.hpp.

Member Function Documentation

◆ copy()

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

Definition at line 393 of file tunnetlink.hpp.

◆ execute()

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

Implements openvpn::Action.

Definition at line 403 of file tunnetlink.hpp.

◆ to_string()

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

Implements openvpn::Action.

Definition at line 428 of file tunnetlink.hpp.

Member Data Documentation

◆ add

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

Definition at line 440 of file tunnetlink.hpp.

◆ dev

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

Definition at line 438 of file tunnetlink.hpp.

◆ gw

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

Definition at line 437 of file tunnetlink.hpp.

◆ metric

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

Definition at line 439 of file tunnetlink.hpp.

◆ route

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

Definition at line 436 of file tunnetlink.hpp.


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