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