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
15
class
Icmpv6ErrorHandler
:
public
ProtoHandler
{
16
public
:
17
static
const
int
ICMPV6_PAYLOAD_LEN
= 128;
18
Icmpv6ErrorHandler
(
Agent
*
agent
,
Icmpv6ErrorProto
*proto,
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
29
Icmpv6ErrorProto
*
proto_
;
30
DISALLOW_COPY_AND_ASSIGN
(
Icmpv6ErrorHandler
);
31
};
32
33
#endif
// VNSW_AGENT_SERVICES_ICMPV6_ERROR_HANDLER_H_
Agent
Definition:
agent.h:361
Icmpv6ErrorHandler
Definition:
icmpv6_error_handler.h:15
Icmpv6ErrorHandler::DISALLOW_COPY_AND_ASSIGN
DISALLOW_COPY_AND_ASSIGN(Icmpv6ErrorHandler)
Icmpv6ErrorHandler::ValidatePacket
bool ValidatePacket()
Definition:
icmpv6_error_handler.cc:30
Icmpv6ErrorHandler::~Icmpv6ErrorHandler
virtual ~Icmpv6ErrorHandler()
Definition:
icmpv6_error_handler.cc:27
Icmpv6ErrorHandler::SendIcmpv6Error
bool SendIcmpv6Error(VmInterface *intf)
Definition:
icmpv6_error_handler.cc:54
Icmpv6ErrorHandler::Run
bool Run()
Definition:
icmpv6_error_handler.cc:36
Icmpv6ErrorHandler::proto_
Icmpv6ErrorProto * proto_
Definition:
icmpv6_error_handler.h:29
Icmpv6ErrorHandler::Icmpv6ErrorHandler
Icmpv6ErrorHandler(Agent *agent, Icmpv6ErrorProto *proto, boost::shared_ptr< PktInfo > info, boost::asio::io_context *io)
Definition:
icmpv6_error_handler.cc:21
Icmpv6ErrorHandler::ICMPV6_PAYLOAD_LEN
static const int ICMPV6_PAYLOAD_LEN
Definition:
icmpv6_error_handler.h:17
Icmpv6ErrorProto
Definition:
icmpv6_error_proto.h:11
ProtoHandler
Definition:
proto_handler.h:29
ProtoHandler::agent
Agent * agent() const
Definition:
proto_handler.h:81
VmInterface
Definition:
vm_interface.h:361
icmp_proto.h
io
Definition:
io_utils.cc:12
proto_handler.h
contrail
controller
src
vnsw
agent
services
icmpv6_error_handler.h
Generated by
1.9.1