OpenSDN source code
icmpv6_error_handler.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  * Copyright Contributors to the OpenSDN project
4  */
5 
6 #ifndef VNSW_AGENT_SERVICES_ICMPV6_ERROR_HANDLER_H_
7 #define VNSW_AGENT_SERVICES_ICMPV6_ERROR_HANDLER_H_
8 
9 #include "pkt/proto_handler.h"
10 #include "services/icmp_proto.h"
11 
12 class Icmpv6ErrorProto;
13 
14 // ICMP protocol handler
16  public:
17  static const int ICMPV6_PAYLOAD_LEN = 128;
19  boost::shared_ptr<PktInfo> info,
20  boost::asio::io_context *io);
21  virtual ~Icmpv6ErrorHandler();
22 
23  bool Run();
24 
25  private:
26  bool ValidatePacket();
27  bool SendIcmpv6Error(VmInterface *intf);
28 
31 };
32 
33 #endif // VNSW_AGENT_SERVICES_ICMPV6_ERROR_HANDLER_H_
Definition: agent.h:361
DISALLOW_COPY_AND_ASSIGN(Icmpv6ErrorHandler)
bool SendIcmpv6Error(VmInterface *intf)
Icmpv6ErrorProto * proto_
Icmpv6ErrorHandler(Agent *agent, Icmpv6ErrorProto *proto, boost::shared_ptr< PktInfo > info, boost::asio::io_context *io)
static const int ICMPV6_PAYLOAD_LEN
Agent * agent() const
Definition: proto_handler.h:81
Definition: io_utils.cc:12