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

#include <dhcp_capture.hpp>

Collaboration diagram for openvpn::DHCPCapture:
[legend]

Public Member Functions

 DHCPCapture (const TunBuilderCapture::Ptr &props_arg)
 
bool mod_reply (Buffer &buf)
 
const TunBuilderCaptureget_props () const
 

Private Member Functions

void reset ()
 

Static Private Member Functions

static int dhcp_message_type (const DHCPPacket *dhcp, const unsigned int optlen)
 
static IPv4::Addr extract_router (DHCPPacket *dhcp, const unsigned int optlen)
 
static IPv4::Addr get_netmask (const DHCPPacket *dhcp, const unsigned int optlen)
 
static std::vector< DnsAddressget_dns (const DHCPPacket *dhcp, const unsigned int optlen)
 

Private Attributes

TunBuilderCapture::Ptr props
 
bool configured = false
 

Detailed Description

Definition at line 25 of file dhcp_capture.hpp.

Constructor & Destructor Documentation

◆ DHCPCapture()

openvpn::DHCPCapture::DHCPCapture ( const TunBuilderCapture::Ptr props_arg)
inline

Definition at line 31 of file dhcp_capture.hpp.

Member Function Documentation

◆ dhcp_message_type()

static int openvpn::DHCPCapture::dhcp_message_type ( const DHCPPacket dhcp,
const unsigned int  optlen 
)
inlinestaticprivate

Definition at line 135 of file dhcp_capture.hpp.

Here is the caller graph for this function:

◆ extract_router()

static IPv4::Addr openvpn::DHCPCapture::extract_router ( DHCPPacket dhcp,
const unsigned int  optlen 
)
inlinestaticprivate

Definition at line 168 of file dhcp_capture.hpp.

Here is the caller graph for this function:

◆ get_dns()

static std::vector< DnsAddress > openvpn::DHCPCapture::get_dns ( const DHCPPacket dhcp,
const unsigned int  optlen 
)
inlinestaticprivate

Definition at line 264 of file dhcp_capture.hpp.

Here is the caller graph for this function:

◆ get_netmask()

static IPv4::Addr openvpn::DHCPCapture::get_netmask ( const DHCPPacket dhcp,
const unsigned int  optlen 
)
inlinestaticprivate

Definition at line 223 of file dhcp_capture.hpp.

Here is the caller graph for this function:

◆ get_props()

const TunBuilderCapture & openvpn::DHCPCapture::get_props ( ) const
inline

Definition at line 123 of file dhcp_capture.hpp.

◆ mod_reply()

bool openvpn::DHCPCapture::mod_reply ( Buffer buf)
inline

Definition at line 42 of file dhcp_capture.hpp.

◆ reset()

void openvpn::DHCPCapture::reset ( )
inlineprivate

Definition at line 129 of file dhcp_capture.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ configured

bool openvpn::DHCPCapture::configured = false
private

Definition at line 312 of file dhcp_capture.hpp.

◆ props

TunBuilderCapture::Ptr openvpn::DHCPCapture::props
private

Definition at line 311 of file dhcp_capture.hpp.


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