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

#include <proto.hpp>

Collaboration diagram for openvpn::ProtoContext::Packet:
[legend]

Public Member Functions

 Packet ()
 
 Packet (BufferPtr &&buf_arg, const unsigned int opcode_arg=CONTROL_V1)
 
Packet clone () const
 
void reset ()
 
void frame_prepare (const Frame &frame, const unsigned int context)
 
bool contains_tls_ciphertext () const
 
 operator bool () const
 
const BufferPtrbuffer_ptr ()
 
const Bufferbuffer () const
 

Private Member Functions

void reset_non_buf ()
 

Private Attributes

unsigned int opcode
 
BufferPtr buf
 

Friends

class ProtoContext
 

Detailed Description

Definition at line 1607 of file proto.hpp.

Constructor & Destructor Documentation

◆ Packet() [1/2]

openvpn::ProtoContext::Packet::Packet ( )
inline

Definition at line 1612 of file proto.hpp.

◆ Packet() [2/2]

openvpn::ProtoContext::Packet::Packet ( BufferPtr &&  buf_arg,
const unsigned int  opcode_arg = CONTROL_V1 
)
inline

Definition at line 1617 of file proto.hpp.

Member Function Documentation

◆ buffer()

const Buffer & openvpn::ProtoContext::Packet::buffer ( ) const
inline

Definition at line 1660 of file proto.hpp.

Here is the caller graph for this function:

◆ buffer_ptr()

const BufferPtr & openvpn::ProtoContext::Packet::buffer_ptr ( )
inline

Definition at line 1656 of file proto.hpp.

◆ clone()

Packet openvpn::ProtoContext::Packet::clone ( ) const
inline

Definition at line 1623 of file proto.hpp.

◆ contains_tls_ciphertext()

bool openvpn::ProtoContext::Packet::contains_tls_ciphertext ( ) const
inline

This returns if this packet type has a payload that should considered to be TLS ciphertext/TLS packet

Definition at line 1648 of file proto.hpp.

◆ frame_prepare()

void openvpn::ProtoContext::Packet::frame_prepare ( const Frame frame,
const unsigned int  context 
)
inline

Definition at line 1637 of file proto.hpp.

Here is the caller graph for this function:

◆ operator bool()

openvpn::ProtoContext::Packet::operator bool ( ) const
inline

Definition at line 1652 of file proto.hpp.

◆ reset()

void openvpn::ProtoContext::Packet::reset ( )
inline

Definition at line 1631 of file proto.hpp.

◆ reset_non_buf()

void openvpn::ProtoContext::Packet::reset_non_buf ( )
inlineprivate

Definition at line 1666 of file proto.hpp.

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ ProtoContext

friend class ProtoContext
friend

Definition at line 1609 of file proto.hpp.

Member Data Documentation

◆ buf

BufferPtr openvpn::ProtoContext::Packet::buf
private

Definition at line 1672 of file proto.hpp.

◆ opcode

unsigned int openvpn::ProtoContext::Packet::opcode
private

Definition at line 1671 of file proto.hpp.


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