OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
bfd_handler.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #ifndef vnsw_agent_bfd_handler_h_
6 #define vnsw_agent_bfd_handler_h_
7 
8 #include <netinet/udp.h>
9 #include "pkt/proto_handler.h"
10 
11 class BfdHandler : public ProtoHandler {
12 public:
13  BfdHandler(Agent *agent, boost::shared_ptr<PktInfo> info,
14  boost::asio::io_context &io);
15  virtual ~BfdHandler();
16 
17  bool Run();
18  bool HandleReceive();
19  void SendPacket(const boost::asio::ip::udp::endpoint &local_endpoint,
20  const boost::asio::ip::udp::endpoint &remote_endpoint,
21  uint32_t interface_id,
22  const boost::asio::mutable_buffer &packet,
23  int packet_length);
24 
25 private:
27 };
28 
29 #endif // vnsw_agent_bfd_handler_h_
DISALLOW_COPY_AND_ASSIGN(BfdHandler)
virtual ~BfdHandler()
Definition: bfd_handler.cc:17
Agent * agent() const
Definition: proto_handler.h:80
Definition: agent.h:358
bool Run()
Definition: bfd_handler.cc:40
BfdHandler(Agent *agent, boost::shared_ptr< PktInfo > info, boost::asio::io_context &io)
Definition: bfd_handler.cc:12
bool HandleReceive()
Definition: bfd_handler.cc:20
void SendPacket(const boost::asio::ip::udp::endpoint &local_endpoint, const boost::asio::ip::udp::endpoint &remote_endpoint, uint32_t interface_id, const boost::asio::mutable_buffer &packet, int packet_length)
Definition: bfd_handler.cc:50