OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE > Class Template Reference

#include <packet_id_control.hpp>

Collaboration diagram for openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >:
[legend]

Public Member Functions

 OPENVPN_SIMPLE_EXCEPTION (packet_id_not_initialized)
 
 PacketIDControlReceiveType ()
 
void init (const char *name_arg, const int unit_arg, const SessionStats::Ptr &stats_arg)
 
bool initialized () const
 
bool test_add (const PacketIDControl &pin, const PacketIDControl::time_t now, const bool mod)
 
Error::Type do_test_add (const PacketIDControl &pin, const PacketIDControl::time_t now, const bool mod)
 
PacketIDControl read_next (Buffer &buf) const
 
std::string str () const
 

Static Public Attributes

static constexpr unsigned int REPLAY_WINDOW_BYTES = 1 << REPLAY_WINDOW_ORDER
 
static constexpr unsigned int REPLAY_WINDOW_SIZE = REPLAY_WINDOW_BYTES * 8
 

Private Member Functions

unsigned int REPLAY_INDEX (const int i) const
 

Private Attributes

bool initialized_ = false
 
unsigned int base = 0
 
unsigned int extent = 0
 
PacketIDControl::time_t expire = 0
 
PacketIDControl::id_t id_high = 0
 
PacketIDControl::time_t time_high = 0
 
PacketIDControl::id_t id_floor = 0
 
unsigned int max_backtrack = 0
 
int unit = -1
 
std::string name
 
SessionStats::Ptr stats
 
std::uint8_t history [REPLAY_WINDOW_BYTES]
 

Detailed Description

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
class openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >

Definition at line 178 of file packet_id_control.hpp.

Constructor & Destructor Documentation

◆ PacketIDControlReceiveType()

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::PacketIDControlReceiveType ( )
inline

Definition at line 187 of file packet_id_control.hpp.

Member Function Documentation

◆ do_test_add()

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
Error::Type openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::do_test_add ( const PacketIDControl pin,
const PacketIDControl::time_t  now,
const bool  mod 
)
inline

Definition at line 228 of file packet_id_control.hpp.

Here is the caller graph for this function:

◆ init()

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
void openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::init ( const char *  name_arg,
const int  unit_arg,
const SessionStats::Ptr stats_arg 
)
inline

Definition at line 191 of file packet_id_control.hpp.

Here is the caller graph for this function:

◆ initialized()

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
bool openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::initialized ( ) const
inline

Definition at line 209 of file packet_id_control.hpp.

◆ OPENVPN_SIMPLE_EXCEPTION()

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::OPENVPN_SIMPLE_EXCEPTION ( packet_id_not_initialized  )

◆ read_next()

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
PacketIDControl openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::read_next ( Buffer buf) const
inline

Definition at line 334 of file packet_id_control.hpp.

Here is the caller graph for this function:

◆ REPLAY_INDEX()

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
unsigned int openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::REPLAY_INDEX ( const int  i) const
inlineprivate

Definition at line 351 of file packet_id_control.hpp.

Here is the caller graph for this function:

◆ str()

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
std::string openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::str ( ) const
inline

Definition at line 343 of file packet_id_control.hpp.

◆ test_add()

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
bool openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::test_add ( const PacketIDControl pin,
const PacketIDControl::time_t  now,
const bool  mod 
)
inline

Definition at line 214 of file packet_id_control.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ base

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
unsigned int openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::base = 0
private

Definition at line 358 of file packet_id_control.hpp.

◆ expire

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
PacketIDControl::time_t openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::expire = 0
private

Definition at line 360 of file packet_id_control.hpp.

◆ extent

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
unsigned int openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::extent = 0
private

Definition at line 359 of file packet_id_control.hpp.

◆ history

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
std::uint8_t openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::history[REPLAY_WINDOW_BYTES]
private

Definition at line 371 of file packet_id_control.hpp.

◆ id_floor

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
PacketIDControl::id_t openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::id_floor = 0
private

Definition at line 363 of file packet_id_control.hpp.

◆ id_high

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
PacketIDControl::id_t openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::id_high = 0
private

Definition at line 361 of file packet_id_control.hpp.

◆ initialized_

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
bool openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::initialized_ = false
private

Definition at line 356 of file packet_id_control.hpp.

◆ max_backtrack

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
unsigned int openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::max_backtrack = 0
private

Definition at line 364 of file packet_id_control.hpp.

◆ name

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
std::string openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::name
private

Definition at line 367 of file packet_id_control.hpp.

◆ REPLAY_WINDOW_BYTES

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
constexpr unsigned int openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::REPLAY_WINDOW_BYTES = 1 << REPLAY_WINDOW_ORDER
staticconstexpr

Definition at line 181 of file packet_id_control.hpp.

◆ REPLAY_WINDOW_SIZE

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
constexpr unsigned int openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::REPLAY_WINDOW_SIZE = REPLAY_WINDOW_BYTES * 8
staticconstexpr

Definition at line 182 of file packet_id_control.hpp.

◆ stats

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
SessionStats::Ptr openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::stats
private

Definition at line 369 of file packet_id_control.hpp.

◆ time_high

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
PacketIDControl::time_t openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::time_high = 0
private

Definition at line 362 of file packet_id_control.hpp.

◆ unit

template<unsigned int REPLAY_WINDOW_ORDER, unsigned int PKTID_RECV_EXPIRE>
int openvpn::PacketIDControlReceiveType< REPLAY_WINDOW_ORDER, PKTID_RECV_EXPIRE >::unit = -1
private

Definition at line 366 of file packet_id_control.hpp.


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