OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
icmp_error_handler.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #ifndef VNSW_AGENT_SERVICES_ICMP_ERROR_HANDLER_H_
6 #define VNSW_AGENT_SERVICES_ICMP_ERROR_HANDLER_H_
7 
8 #include "pkt/proto_handler.h"
9 #include "pkt/flow_table.h"
10 #include "services/icmp_proto.h"
11 
12 class FlowEntry;
13 class IcmpErrorProto;
14 
15 // ICMP protocol handler
17  public:
18  static const int ICMP_PAYLOAD_LEN = 128;
20  boost::shared_ptr<PktInfo> info,
21  boost::asio::io_context *io);
22  virtual ~IcmpErrorHandler();
23 
24  bool Run();
25 
26  private:
27  bool ValidatePacket();
28  bool SendIcmpError(VmInterface *intf);
29 
32 };
33 
34 #endif // VNSW_AGENT_SERVICES_ICMP_ERROR_HANDLER_H_
bool SendIcmpError(VmInterface *intf)
static const int ICMP_PAYLOAD_LEN
DISALLOW_COPY_AND_ASSIGN(IcmpErrorHandler)
Agent * agent() const
Definition: proto_handler.h:80
IcmpErrorProto * proto_
Definition: agent.h:358
IcmpErrorHandler(Agent *agent, IcmpErrorProto *proto, boost::shared_ptr< PktInfo > info, boost::asio::io_context *io)