OpenSDN source code
|
#include <pkt0_interface.h>
Public Member Functions | |
Pkt0RawInterface (const std::string &name, boost::asio::io_context *io) | |
virtual | ~Pkt0RawInterface () |
void | InitControlInterface () |
![]() | |
Pkt0Interface (const std::string &name, boost::asio::io_context *io) | |
virtual | ~Pkt0Interface () |
virtual void | IoShutdownControlInterface () |
virtual void | ShutdownControlInterface () |
const std::string & | Name () const |
int | Send (uint8_t *buff, uint16_t buff_len, const PacketBufferPtr &pkt) |
const unsigned char * | mac_address () const |
![]() | |
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 |
Protected Member Functions | |
DISALLOW_COPY_AND_ASSIGN (Pkt0RawInterface) | |
![]() | |
void | SendImpl (uint8_t *buff, uint16_t buff_len, const PacketBufferPtr &pkt, buffer_list &buff_list) |
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, uint8_t *buff) |
DISALLOW_COPY_AND_ASSIGN (Pkt0Interface) | |
Additional Inherited Members | |
![]() | |
typedef std::vector < boost::asio::const_buffer > | buffer_list |
![]() | |
static const uint32_t | kAgentHdrLen |
![]() | |
static const uint32_t | kMaxPacketSize = 9060 |
![]() | |
std::string | name_ |
int | tap_fd_ |
unsigned char | mac_address_ [ETHER_ADDR_LEN] |
boost::asio::posix::stream_descriptor | input_ |
uint8_t * | read_buff_ |
PktHandler * | pkt_handler_ |
Definition at line 51 of file pkt0_interface.h.
Pkt0RawInterface::Pkt0RawInterface | ( | const std::string & | name, |
boost::asio::io_context * | io | ||
) |
Definition at line 120 of file pkt0_interface_base.cc.
|
virtual |
Definition at line 125 of file pkt0_interface_base.cc.
|
protected |
|
virtual |
Reimplemented from Pkt0Interface.
Definition at line 166 of file linux/pkt0_interface.cc.