5 #ifndef vnsw_agent_pkt_control_interface_hpp
6 #define vnsw_agent_pkt_control_interface_hpp
9 #include <boost/bind.hpp>
10 #include <boost/function.hpp>
11 #include <boost/asio.hpp>
45 virtual const std::string &
Name()
const = 0;
static const uint32_t kMaxPacketSize
void Init(PktHandler *pkt_handler)
virtual ~ControlInterface()
PktHandler * pkt_handler() const
bool Process(const AgentHdr &hdr, const PacketBufferPtr &pkt)
virtual uint32_t EncapsulationLength() const =0
PktHandler * pkt_handler_
virtual void IoShutdownControlInterface()=0
virtual void ShutdownControlInterface()=0
virtual void InitControlInterface()=0
DISALLOW_COPY_AND_ASSIGN(ControlInterface)
virtual int Send(const AgentHdr &hdr, const PacketBufferPtr &pkt)=0
virtual const std::string & Name() const =0
void HandleRcvPkt(const AgentHdr &hdr, const PacketBufferPtr &buff)
boost::shared_ptr< PacketBuffer > PacketBufferPtr