A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
ipv6-flow-probe.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
//
3
// Copyright (c) 2009 INESC Porto
4
//
5
// This program is free software; you can redistribute it and/or modify
6
// it under the terms of the GNU General Public License version 2 as
7
// published by the Free Software Foundation;
8
//
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with this program; if not, write to the Free Software
16
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
//
18
// Author: Gustavo J. A. M. Carneiro <gjc@inescporto.pt> <gjcarneiro@gmail.com>
19
// Modifications: Tommaso Pecorella <tommaso.pecorella@unifi.it>
20
//
21
22
#ifndef IPV6_FLOW_PROBE_H
23
#define IPV6_FLOW_PROBE_H
24
25
#include "ns3/flow-probe.h"
26
#include "ns3/ipv6-flow-classifier.h"
27
#include "ns3/ipv6-l3-protocol.h"
28
29
namespace
ns3 {
30
31
class
FlowMonitor;
32
class
Node;
33
41
class
Ipv6FlowProbe
:
public
FlowProbe
42
{
43
44
public
:
49
Ipv6FlowProbe
(
Ptr<FlowMonitor>
monitor,
Ptr<Ipv6FlowClassifier>
classifier,
Ptr<Node>
node);
50
virtual
~Ipv6FlowProbe
();
51
53
enum
DropReason
54
{
56
DROP_NO_ROUTE
= 0,
57
59
DROP_TTL_EXPIRE
,
60
62
DROP_BAD_CHECKSUM
,
63
68
DROP_QUEUE
,
69
70
DROP_INTERFACE_DOWN
,
71
DROP_ROUTE_ERROR
,
73
DROP_UNKNOWN_PROTOCOL
,
74
DROP_UNKNOWN_OPTION
,
75
DROP_MALFORMED_HEADER
,
77
DROP_FRAGMENT_TIMEOUT
,
79
DROP_INVALID_REASON
,
80
};
81
82
protected
:
83
84
virtual
void
DoDispose
(
void
);
85
86
private
:
91
void
SendOutgoingLogger
(
const
Ipv6Header
&ipHeader,
Ptr<const Packet>
ipPayload, uint32_t interface);
96
void
ForwardLogger
(
const
Ipv6Header
&ipHeader,
Ptr<const Packet>
ipPayload, uint32_t interface);
101
void
ForwardUpLogger
(
const
Ipv6Header
&ipHeader,
Ptr<const Packet>
ipPayload, uint32_t interface);
108
void
DropLogger
(
const
Ipv6Header
&ipHeader,
Ptr<const Packet>
ipPayload,
109
Ipv6L3Protocol::DropReason
reason,
Ptr<Ipv6>
ipv6, uint32_t ifIndex);
112
void
QueueDropLogger
(
Ptr<const Packet>
ipPayload);
113
114
Ptr<Ipv6FlowClassifier>
m_classifier
;
115
};
116
117
118
}
// namespace ns3
119
120
#endif
/* IPV6_FLOW_PROBE_H */
ns3::Ipv6FlowProbe
Class that monitors flows at the IPv6 layer of a Node.
Definition:
ipv6-flow-probe.h:41
ns3::Ipv6Header
Doxygen introspection did not find any typical Config paths.
Definition:
ipv6-header.h:33
ns3::Ptr
smart pointer class similar to boost::intrusive_ptr
Definition:
ptr.h:60
ns3::Ipv6FlowProbe::SendOutgoingLogger
void SendOutgoingLogger(const Ipv6Header &ipHeader, Ptr< const Packet > ipPayload, uint32_t interface)
Log a packet being sent.
Definition:
ipv6-flow-probe.cc:242
ns3::Ipv6FlowProbe::DROP_MALFORMED_HEADER
Malformed header.
Definition:
ipv6-flow-probe.h:75
ns3::Ipv6FlowProbe::DropLogger
void DropLogger(const Ipv6Header &ipHeader, Ptr< const Packet > ipPayload, Ipv6L3Protocol::DropReason reason, Ptr< Ipv6 > ipv6, uint32_t ifIndex)
Log a packet being dropped.
Definition:
ipv6-flow-probe.cc:296
ns3::Ipv6FlowProbe::DROP_QUEUE
Packet dropped due to queue overflow.
Definition:
ipv6-flow-probe.h:68
ns3::Ipv6FlowProbe::~Ipv6FlowProbe
virtual ~Ipv6FlowProbe()
Definition:
ipv6-flow-probe.cc:231
ns3::Ipv6FlowProbe::DROP_UNKNOWN_PROTOCOL
Unknown L4 protocol.
Definition:
ipv6-flow-probe.h:73
ns3::Ipv6FlowProbe::DROP_FRAGMENT_TIMEOUT
Fragment timeout exceeded.
Definition:
ipv6-flow-probe.h:77
ns3::Ipv6FlowProbe::DROP_INTERFACE_DOWN
Interface is down so can not send packet.
Definition:
ipv6-flow-probe.h:70
ns3::Ipv6FlowProbe::DropReason
DropReason
enumeration of possible reasons why a packet may be dropped
Definition:
ipv6-flow-probe.h:53
ns3::Ipv6FlowProbe::DROP_NO_ROUTE
Packet dropped due to missing route to the destination.
Definition:
ipv6-flow-probe.h:56
ns3::Ipv6FlowProbe::ForwardUpLogger
void ForwardUpLogger(const Ipv6Header &ipHeader, Ptr< const Packet > ipPayload, uint32_t interface)
Log a packet being received by the destination.
Definition:
ipv6-flow-probe.cc:279
ns3::Ipv6FlowProbe::DROP_UNKNOWN_OPTION
Unknown option.
Definition:
ipv6-flow-probe.h:74
ns3::Ipv6FlowProbe::DoDispose
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
Definition:
ipv6-flow-probe.cc:236
ns3::Ipv6FlowProbe::DROP_ROUTE_ERROR
Route error.
Definition:
ipv6-flow-probe.h:71
ns3::FlowProbe
The FlowProbe class is responsible for listening for packet events in a specific point of the simulat...
Definition:
flow-probe.h:39
ns3::Ipv6FlowProbe::DROP_BAD_CHECKSUM
Packet dropped due to invalid checksum in the IPv4 header.
Definition:
ipv6-flow-probe.h:62
ns3::Ipv6FlowProbe::DROP_TTL_EXPIRE
Packet dropped due to TTL decremented to zero during IPv4 forwarding.
Definition:
ipv6-flow-probe.h:59
ns3::Ipv6FlowProbe::Ipv6FlowProbe
Ipv6FlowProbe(Ptr< FlowMonitor > monitor, Ptr< Ipv6FlowClassifier > classifier, Ptr< Node > node)
Constructor.
Definition:
ipv6-flow-probe.cc:193
ns3::Ipv6FlowProbe::DROP_INVALID_REASON
Fallback reason (no known reason)
Definition:
ipv6-flow-probe.h:79
ns3::Ipv6FlowProbe::ForwardLogger
void ForwardLogger(const Ipv6Header &ipHeader, Ptr< const Packet > ipPayload, uint32_t interface)
Log a packet being forwarded.
Definition:
ipv6-flow-probe.cc:262
ns3::Ipv6FlowProbe::m_classifier
Ptr< Ipv6FlowClassifier > m_classifier
the Ipv6FlowClassifier this probe is associated with
Definition:
ipv6-flow-probe.h:114
ns3::Ipv6FlowProbe::QueueDropLogger
void QueueDropLogger(Ptr< const Packet > ipPayload)
Log a packet being dropped by a queue.
Definition:
ipv6-flow-probe.cc:377
ns3::Ipv6L3Protocol::DropReason
DropReason
Reason why a packet has been dropped.
Definition:
ipv6-l3-protocol.h:79
src
flow-monitor
model
ipv6-flow-probe.h
Generated on Wed Sep 17 2014 23:33:26 for ns-3 by
1.8.6