OpenSDN source code
|
#include <pkt0_interface.h>
Public Member Functions | |
Pkt0Socket (const std::string &name, boost::asio::io_context *io) | |
~Pkt0Socket () | |
virtual void | InitControlInterface () |
virtual void | IoShutdownControlInterface () |
virtual void | ShutdownControlInterface () |
const std::string & | Name () const |
int | Send (uint8_t *buff, uint16_t buff_len, const PacketBufferPtr &pkt) |
![]() | |
VrouterControlInterface () | |
virtual | ~VrouterControlInterface () |
virtual uint32_t | EncapsulationLength () const |
int | DecodeAgentHdr (AgentHdr *hdr, uint8_t *buff, uint32_t len) |
bool | Process (const PacketBufferPtr &pkt) |
int | EncodeAgentHdr (uint8_t *buff, const AgentHdr &hdr) |
virtual int | Send (const AgentHdr &hdr, const PacketBufferPtr &pkt) |
![]() | |
ControlInterface () | |
virtual | ~ControlInterface () |
void | Init (PktHandler *pkt_handler) |
void | Shutdown () |
void | IoShutdown () |
bool | Process (const AgentHdr &hdr, const PacketBufferPtr &pkt) |
PktHandler * | pkt_handler () const |
Static Public Member Functions | |
static void | CreateMockAgent (const string &) |
Static Public Attributes | |
static const uint32_t | kConnectTimeout = 1000 |
static string | sSocketDir = "/var/run/vrouter" |
static string | sAgentSocketPath = "/var/run/vrouter/agent_pkt0" |
static string | sVrouterSocketPath = "/var/run/vrouter/dpdk_pkt0" |
![]() | |
static const uint32_t | kAgentHdrLen |
![]() | |
static const uint32_t | kMaxPacketSize = 9060 |
Private Member Functions | |
void | AsyncRead () |
void | ReadHandler (const boost::system::error_code &err, std::size_t length) |
void | WriteHandler (const boost::system::error_code &error, std::size_t length, PacketBufferPtr pkt, uint8_t *buff) |
void | CreateUnixSocket () |
void | StartConnectTimer () |
bool | OnTimeout () |
DISALLOW_COPY_AND_ASSIGN (Pkt0Socket) | |
Private Attributes | |
bool | connected_ |
boost::asio::local::datagram_protocol::socket | socket_ |
boost::scoped_ptr< Timer > | timer_ |
uint8_t * | read_buff_ |
PktHandler * | pkt_handler_ |
std::string | name_ |
Definition at line 62 of file pkt0_interface.h.
Pkt0Socket::Pkt0Socket | ( | const std::string & | name, |
boost::asio::io_context * | io | ||
) |
Definition at line 129 of file pkt0_interface_base.cc.
Pkt0Socket::~Pkt0Socket | ( | ) |
Definition at line 135 of file pkt0_interface_base.cc.
|
private |
|
static |
Definition at line 36 of file pkt0_interface_base.cc.
|
private |
Definition at line 141 of file pkt0_interface_base.cc.
|
private |
|
virtual |
Reimplemented from VrouterControlInterface.
Definition at line 162 of file pkt0_interface_base.cc.
|
virtual |
Implements ControlInterface.
Definition at line 169 of file pkt0_interface_base.cc.
|
inlinevirtual |
Implements ControlInterface.
Definition at line 77 of file pkt0_interface.h.
|
private |
Definition at line 203 of file pkt0_interface_base.cc.
|
private |
|
virtual |
Implements VrouterControlInterface.
Definition at line 217 of file pkt0_interface_base.cc.
|
virtual |
Implements ControlInterface.
Definition at line 178 of file pkt0_interface_base.cc.
|
private |
|
private |
|
private |
Definition at line 88 of file pkt0_interface.h.
|
static |
Definition at line 64 of file pkt0_interface.h.
|
private |
Definition at line 95 of file pkt0_interface.h.
|
private |
Definition at line 94 of file pkt0_interface.h.
|
private |
Definition at line 93 of file pkt0_interface.h.
|
static |
Definition at line 66 of file pkt0_interface.h.
|
private |
Definition at line 90 of file pkt0_interface.h.
|
static |
Definition at line 65 of file pkt0_interface.h.
|
static |
Definition at line 67 of file pkt0_interface.h.
|
private |
Definition at line 92 of file pkt0_interface.h.