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

#include <icmp_proto.h>

Inheritance diagram for IcmpProto:
Collaboration diagram for IcmpProto:

Classes

struct  IcmpStats
 

Public Member Functions

void Shutdown ()
 
 IcmpProto (Agent *agent, boost::asio::io_context &io)
 
virtual ~IcmpProto ()
 
ProtoHandlerAllocProtoHandler (boost::shared_ptr< PktInfo > info, boost::asio::io_context &io)
 
void IncrStatsGwPing ()
 
void IncrStatsGwPingErr ()
 
void IncrStatsDrop ()
 
void IncrStatsIntfNotInst ()
 
void IncrStatsNoL3Fwd ()
 
const IcmpStatsGetStats () 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)
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (IcmpProto)
 

Private Attributes

IcmpStats stats_
 

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 11 of file icmp_proto.h.

Constructor & Destructor Documentation

IcmpProto::IcmpProto ( Agent agent,
boost::asio::io_context &  io 
)

Definition at line 9 of file icmp_proto.cc.

Here is the call graph for this function:

IcmpProto::~IcmpProto ( )
virtual

Definition at line 16 of file icmp_proto.cc.

Member Function Documentation

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

Implements Proto.

Definition at line 19 of file icmp_proto.cc.

Here is the call graph for this function:

void IcmpProto::ClearStats ( )
inline

Definition at line 37 of file icmp_proto.h.

Here is the call graph for this function:

IcmpProto::DISALLOW_COPY_AND_ASSIGN ( IcmpProto  )
private
const IcmpStats& IcmpProto::GetStats ( ) const
inline

Definition at line 36 of file icmp_proto.h.

void IcmpProto::IncrStatsDrop ( )
inline

Definition at line 33 of file icmp_proto.h.

void IcmpProto::IncrStatsGwPing ( )
inline

Definition at line 31 of file icmp_proto.h.

void IcmpProto::IncrStatsGwPingErr ( )
inline

Definition at line 32 of file icmp_proto.h.

void IcmpProto::IncrStatsIntfNotInst ( )
inline

Definition at line 34 of file icmp_proto.h.

void IcmpProto::IncrStatsNoL3Fwd ( )
inline

Definition at line 35 of file icmp_proto.h.

void IcmpProto::Shutdown ( )
inline

Definition at line 25 of file icmp_proto.h.

Member Data Documentation

IcmpStats IcmpProto::stats_
private

Definition at line 40 of file icmp_proto.h.


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