OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::PushedOptionsFilter Class Reference

#include <optfilt.hpp>

Inheritance diagram for openvpn::PushedOptionsFilter:
[legend]
Collaboration diagram for openvpn::PushedOptionsFilter:
[legend]

Classes

struct  PullFilter
 

Public Member Functions

 PushedOptionsFilter (const OptionList &opt)
 
bool filter (const Option &opt) override
 
- 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.
 

Private Types

enum  FilterAction { None , Accept , Ignore , Reject }
 

Private Member Functions

FilterAction filter_ (const Option &opt)
 
void static_filter_ (const Option &o)
 
FilterAction pull_filter_ (const Option &pushed)
 
bool pull_filter_matches_ (const Option &pushed, const Option &match)
 
FilterAction route_nopull_filter_ (const Option &opt)
 

Private Attributes

bool route_nopull_
 
std::vector< PullFilterpull_filter_list_
 

Additional Inherited Members

- Public Types inherited from openvpn::OptionList::FilterBase
typedef RCPtr< FilterBasePtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 
- 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 26 of file optfilt.hpp.

Member Enumeration Documentation

◆ FilterAction

Enumerator
None 
Accept 
Ignore 
Reject 

Definition at line 63 of file optfilt.hpp.

Constructor & Destructor Documentation

◆ PushedOptionsFilter()

openvpn::PushedOptionsFilter::PushedOptionsFilter ( const OptionList opt)
inline

Definition at line 29 of file optfilt.hpp.

Member Function Documentation

◆ filter()

bool openvpn::PushedOptionsFilter::filter ( const Option opt)
inlineoverridevirtual

Implements openvpn::OptionList::FilterBase.

Definition at line 57 of file optfilt.hpp.

◆ filter_()

FilterAction openvpn::PushedOptionsFilter::filter_ ( const Option opt)
inlineprivate

Definition at line 77 of file optfilt.hpp.

Here is the caller graph for this function:

◆ pull_filter_()

FilterAction openvpn::PushedOptionsFilter::pull_filter_ ( const Option pushed)
inlineprivate

Definition at line 105 of file optfilt.hpp.

Here is the caller graph for this function:

◆ pull_filter_matches_()

bool openvpn::PushedOptionsFilter::pull_filter_matches_ ( const Option pushed,
const Option match 
)
inlineprivate

Definition at line 125 of file optfilt.hpp.

Here is the caller graph for this function:

◆ route_nopull_filter_()

FilterAction openvpn::PushedOptionsFilter::route_nopull_filter_ ( const Option opt)
inlineprivate

Definition at line 145 of file optfilt.hpp.

Here is the caller graph for this function:

◆ static_filter_()

void openvpn::PushedOptionsFilter::static_filter_ ( const Option o)
inlineprivate

Definition at line 92 of file optfilt.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ pull_filter_list_

std::vector<PullFilter> openvpn::PushedOptionsFilter::pull_filter_list_
private

Definition at line 212 of file optfilt.hpp.

◆ route_nopull_

bool openvpn::PushedOptionsFilter::route_nopull_
private

Definition at line 211 of file optfilt.hpp.


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