OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
icmpv6_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_ICMPV6_ERROR_HANDLER_H_
6 #define VNSW_AGENT_SERVICES_ICMPV6_ERROR_HANDLER_H_
7 
8 #include "pkt/proto_handler.h"
9 #include "services/icmp_proto.h"
10 
11 class Icmpv6ErrorProto;
12 
13 // ICMP protocol handler
15  public:
16  static const int ICMPV6_PAYLOAD_LEN = 128;
18  boost::shared_ptr<PktInfo> info,
19  boost::asio::io_context *io);
20  virtual ~Icmpv6ErrorHandler();
21 
22  bool Run();
23 
24  private:
25  bool ValidatePacket();
26  bool SendIcmpv6Error(VmInterface *intf);
27 
30 };
31 
32 #endif // VNSW_AGENT_SERVICES_ICMPV6_ERROR_HANDLER_H_
DISALLOW_COPY_AND_ASSIGN(Icmpv6ErrorHandler)
bool SendIcmpv6Error(VmInterface *intf)
Agent * agent() const
Definition: proto_handler.h:80
Definition: agent.h:358
Icmpv6ErrorProto * proto_
static const int ICMPV6_PAYLOAD_LEN
Icmpv6ErrorHandler(Agent *agent, Icmpv6ErrorProto *proto, boost::shared_ptr< PktInfo > info, boost::asio::io_context *io)