OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Dhcpv6Proto Class Reference

#include <dhcpv6_proto.h>

Inheritance diagram for Dhcpv6Proto:
Collaboration diagram for Dhcpv6Proto:

Classes

struct  DhcpStats
 
struct  Duid
 

Public Member Functions

 Dhcpv6Proto (Agent *agent, boost::asio::io_context &io, bool run_with_vrouter)
 
virtual ~Dhcpv6Proto ()
 
ProtoHandlerAllocProtoHandler (boost::shared_ptr< PktInfo > info, boost::asio::io_context &io)
 
void Shutdown ()
 
const Duidserver_duid () const
 
void IncrStatsSolicit ()
 
void IncrStatsAdvertise ()
 
void IncrStatsRequest ()
 
void IncrStatsConfirm ()
 
void IncrStatsRenew ()
 
void IncrStatsRebind ()
 
void IncrStatsReply ()
 
void IncrStatsRelease ()
 
void IncrStatsDecline ()
 
void IncrStatsReconfigure ()
 
void IncrStatsInformationRequest ()
 
void IncrStatsError ()
 
const DhcpStatsGetStats () const
 
void ClearStats ()
 
- Public Member Functions inherited from Proto
 Proto (Agent *agent, const char *task_name, PktHandler::PktModuleName mod, boost::asio::io_context &io)
 
virtual ~Proto ()
 
virtual bool Validate (PktInfo *msg)
 
virtual bool Enqueue (boost::shared_ptr< PktInfo > msg)
 
virtual void ProcessStats (PktStatsType::Type type)
 
void FreeBuffer (PktInfo *msg)
 
bool ProcessProto (boost::shared_ptr< PktInfo > msg_info)
 
bool RunProtoHandler (ProtoHandler *handler)
 
void set_trace (bool val)
 
void set_free_buffer (bool val)
 
boost::asio::io_context & get_io_service () const
 
Agentagent () const
 
const ProtoWorkQueuework_queue () const
 
virtual void TokenAvailable (TokenPool *pool)
 

Static Public Attributes

static const uint32_t kDhcpMaxPacketSize = 1024
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (Dhcpv6Proto)
 

Private Attributes

bool run_with_vrouter_
 
DhcpStats stats_
 
Duid server_duid_
 

Additional Inherited Members

- Public Types inherited from Proto
typedef WorkQueue
< boost::shared_ptr< PktInfo > > 
ProtoWorkQueue
 
- Protected Attributes inherited from Proto
Agentagent_
 
PktHandler::PktModuleName module_
 
bool trace_
 
bool free_buffer_
 
boost::asio::io_context & io_
 
ProtoWorkQueue work_queue_
 

Detailed Description

Definition at line 23 of file dhcpv6_proto.h.

Constructor & Destructor Documentation

Dhcpv6Proto::Dhcpv6Proto ( Agent agent,
boost::asio::io_context &  io,
bool  run_with_vrouter 
)

Definition at line 15 of file dhcpv6_proto.cc.

Here is the call graph for this function:

Dhcpv6Proto::~Dhcpv6Proto ( )
virtual

Definition at line 29 of file dhcpv6_proto.cc.

Member Function Documentation

ProtoHandler * Dhcpv6Proto::AllocProtoHandler ( boost::shared_ptr< PktInfo info,
boost::asio::io_context &  io 
)
virtual

Implements Proto.

Definition at line 32 of file dhcpv6_proto.cc.

Here is the call graph for this function:

void Dhcpv6Proto::ClearStats ( )
inline

Definition at line 76 of file dhcpv6_proto.h.

Here is the call graph for this function:

Dhcpv6Proto::DISALLOW_COPY_AND_ASSIGN ( Dhcpv6Proto  )
private
const DhcpStats& Dhcpv6Proto::GetStats ( ) const
inline

Definition at line 75 of file dhcpv6_proto.h.

void Dhcpv6Proto::IncrStatsAdvertise ( )
inline

Definition at line 64 of file dhcpv6_proto.h.

void Dhcpv6Proto::IncrStatsConfirm ( )
inline

Definition at line 66 of file dhcpv6_proto.h.

void Dhcpv6Proto::IncrStatsDecline ( )
inline

Definition at line 71 of file dhcpv6_proto.h.

void Dhcpv6Proto::IncrStatsError ( )
inline

Definition at line 74 of file dhcpv6_proto.h.

void Dhcpv6Proto::IncrStatsInformationRequest ( )
inline

Definition at line 73 of file dhcpv6_proto.h.

void Dhcpv6Proto::IncrStatsRebind ( )
inline

Definition at line 68 of file dhcpv6_proto.h.

void Dhcpv6Proto::IncrStatsReconfigure ( )
inline

Definition at line 72 of file dhcpv6_proto.h.

void Dhcpv6Proto::IncrStatsRelease ( )
inline

Definition at line 70 of file dhcpv6_proto.h.

void Dhcpv6Proto::IncrStatsRenew ( )
inline

Definition at line 67 of file dhcpv6_proto.h.

void Dhcpv6Proto::IncrStatsReply ( )
inline

Definition at line 69 of file dhcpv6_proto.h.

void Dhcpv6Proto::IncrStatsRequest ( )
inline

Definition at line 65 of file dhcpv6_proto.h.

void Dhcpv6Proto::IncrStatsSolicit ( )
inline

Definition at line 63 of file dhcpv6_proto.h.

const Duid* Dhcpv6Proto::server_duid ( ) const
inline

Definition at line 61 of file dhcpv6_proto.h.

void Dhcpv6Proto::Shutdown ( )

Definition at line 37 of file dhcpv6_proto.cc.

Member Data Documentation

const uint32_t Dhcpv6Proto::kDhcpMaxPacketSize = 1024
static

Definition at line 25 of file dhcpv6_proto.h.

bool Dhcpv6Proto::run_with_vrouter_
private

Definition at line 79 of file dhcpv6_proto.h.

Duid Dhcpv6Proto::server_duid_
private

Definition at line 81 of file dhcpv6_proto.h.

DhcpStats Dhcpv6Proto::stats_
private

Definition at line 80 of file dhcpv6_proto.h.


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