OpenSDN source code
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
16
class
IcmpErrorHandler
:
public
ProtoHandler
{
17
public
:
18
static
const
int
ICMP_PAYLOAD_LEN
= 128;
19
IcmpErrorHandler
(
Agent
*
agent
,
IcmpErrorProto
*proto,
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
30
IcmpErrorProto
*
proto_
;
31
DISALLOW_COPY_AND_ASSIGN
(
IcmpErrorHandler
);
32
};
33
34
#endif // VNSW_AGENT_SERVICES_ICMP_ERROR_HANDLER_H_
proto_handler.h
IcmpErrorHandler::SendIcmpError
bool SendIcmpError(VmInterface *intf)
Definition:
icmp_error_handler.cc:49
flow_table.h
IcmpErrorHandler::ICMP_PAYLOAD_LEN
static const int ICMP_PAYLOAD_LEN
Definition:
icmp_error_handler.h:18
IcmpErrorHandler::Run
bool Run()
Definition:
icmp_error_handler.cc:31
IcmpErrorHandler
Definition:
icmp_error_handler.h:16
IcmpErrorHandler::DISALLOW_COPY_AND_ASSIGN
DISALLOW_COPY_AND_ASSIGN(IcmpErrorHandler)
ProtoHandler::agent
Agent * agent() const
Definition:
proto_handler.h:80
IcmpErrorHandler::proto_
IcmpErrorProto * proto_
Definition:
icmp_error_handler.h:30
IcmpErrorProto
Definition:
icmp_error_proto.h:12
Agent
Definition:
agent.h:358
FlowEntry
Definition:
flow_entry.h:460
IcmpErrorHandler::IcmpErrorHandler
IcmpErrorHandler(Agent *agent, IcmpErrorProto *proto, boost::shared_ptr< PktInfo > info, boost::asio::io_context *io)
Definition:
icmp_error_handler.cc:16
VmInterface
Definition:
vm_interface.h:358
IcmpErrorHandler::~IcmpErrorHandler
virtual ~IcmpErrorHandler()
Definition:
icmp_error_handler.cc:22
ProtoHandler
Definition:
proto_handler.h:28
IcmpErrorHandler::ValidatePacket
bool ValidatePacket()
Definition:
icmp_error_handler.cc:25
icmp_proto.h
contrail
controller
src
vnsw
agent
services
icmp_error_handler.h
Generated by
1.8.5