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
ipv4-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
//
20
21
#ifndef IPV4_FLOW_PROBE_H
22
#define IPV4_FLOW_PROBE_H
23
24
#include "ns3/flow-probe.h"
25
#include "ns3/ipv4-flow-classifier.h"
26
#include "ns3/ipv4-l3-protocol.h"
27
28
namespace
ns3 {
29
30
class
FlowMonitor;
31
class
Node;
32
39
class
Ipv4FlowProbe
:
public
FlowProbe
40
{
41
42
public
:
43
Ipv4FlowProbe
(
Ptr<FlowMonitor>
monitor,
Ptr<Ipv4FlowClassifier>
classifier,
Ptr<Node>
node);
44
virtual
~Ipv4FlowProbe
();
45
47
enum
DropReason
48
{
50
DROP_NO_ROUTE
= 0,
51
53
DROP_TTL_EXPIRE
,
54
56
DROP_BAD_CHECKSUM
,
57
62
DROP_QUEUE
,
63
64
DROP_INTERFACE_DOWN
,
65
DROP_ROUTE_ERROR
,
66
DROP_FRAGMENT_TIMEOUT
,
68
DROP_INVALID_REASON
,
69
};
70
71
protected
:
72
73
virtual
void
DoDispose
(
void
);
74
75
private
:
76
77
void
SendOutgoingLogger
(
const
Ipv4Header
&ipHeader,
Ptr<const Packet>
ipPayload, uint32_t interface);
78
void
ForwardLogger
(
const
Ipv4Header
&ipHeader,
Ptr<const Packet>
ipPayload, uint32_t interface);
79
void
ForwardUpLogger
(
const
Ipv4Header
&ipHeader,
Ptr<const Packet>
ipPayload, uint32_t interface);
80
void
DropLogger
(
const
Ipv4Header
&ipHeader,
Ptr<const Packet>
ipPayload,
81
Ipv4L3Protocol::DropReason
reason,
Ptr<Ipv4>
ipv4, uint32_t ifIndex);
82
void
QueueDropLogger
(
Ptr<const Packet>
ipPayload);
83
84
Ptr<Ipv4FlowClassifier>
m_classifier
;
85
};
86
87
88
}
// namespace ns3
89
90
#endif
/* IPV4_FLOW_PROBE_H */
ns3::Ipv4FlowProbe::ForwardUpLogger
void ForwardUpLogger(const Ipv4Header &ipHeader, Ptr< const Packet > ipPayload, uint32_t interface)
Definition:
ipv4-flow-probe.cc:232
ns3::Ptr
smart pointer class similar to boost::intrusive_ptr
Definition:
ptr.h:59
ns3::Ipv4FlowProbe::DoDispose
virtual void DoDispose(void)
Definition:
ipv4-flow-probe.cc:191
ns3::Ipv4FlowProbe::Ipv4FlowProbe
Ipv4FlowProbe(Ptr< FlowMonitor > monitor, Ptr< Ipv4FlowClassifier > classifier, Ptr< Node > node)
Definition:
ipv4-flow-probe.cc:148
ns3::Ipv4FlowProbe::DROP_ROUTE_ERROR
Definition:
ipv4-flow-probe.h:65
ns3::Ipv4FlowProbe::DROP_INVALID_REASON
Definition:
ipv4-flow-probe.h:68
ns3::Ipv4FlowProbe::SendOutgoingLogger
void SendOutgoingLogger(const Ipv4Header &ipHeader, Ptr< const Packet > ipPayload, uint32_t interface)
Definition:
ipv4-flow-probe.cc:197
ns3::Ipv4L3Protocol::DropReason
DropReason
Reason why a packet has been dropped.
Definition:
ipv4-l3-protocol.h:90
ns3::Ipv4FlowProbe::ForwardLogger
void ForwardLogger(const Ipv4Header &ipHeader, Ptr< const Packet > ipPayload, uint32_t interface)
Definition:
ipv4-flow-probe.cc:217
ns3::Ipv4Header
Packet header for IPv4.
Definition:
ipv4-header.h:31
ns3::Ipv4FlowProbe::QueueDropLogger
void QueueDropLogger(Ptr< const Packet > ipPayload)
Definition:
ipv4-flow-probe.cc:329
ns3::Ipv4FlowProbe::DROP_BAD_CHECKSUM
Packet dropped due to invalid checksum in the IPv4 header.
Definition:
ipv4-flow-probe.h:56
ns3::Ipv4FlowProbe::~Ipv4FlowProbe
virtual ~Ipv4FlowProbe()
Definition:
ipv4-flow-probe.cc:186
ns3::Ipv4FlowProbe::m_classifier
Ptr< Ipv4FlowClassifier > m_classifier
Definition:
ipv4-flow-probe.h:84
ns3::FlowProbe
Definition:
flow-probe.h:39
ns3::Ipv4FlowProbe::DROP_TTL_EXPIRE
Packet dropped due to TTL decremented to zero during IPv4 forwarding.
Definition:
ipv4-flow-probe.h:53
ns3::Ipv4FlowProbe
Class that monitors flows at the IPv4 layer of a Node.
Definition:
ipv4-flow-probe.h:39
ns3::Ipv4FlowProbe::DROP_QUEUE
Definition:
ipv4-flow-probe.h:62
ns3::Ipv4FlowProbe::DROP_INTERFACE_DOWN
Definition:
ipv4-flow-probe.h:64
ns3::Ipv4FlowProbe::DROP_FRAGMENT_TIMEOUT
Definition:
ipv4-flow-probe.h:66
ns3::Ipv4FlowProbe::DROP_NO_ROUTE
Packet dropped due to missing route to the destination.
Definition:
ipv4-flow-probe.h:50
ns3::Ipv4FlowProbe::DropReason
DropReason
enumeration of possible reasons why a packet may be dropped
Definition:
ipv4-flow-probe.h:47
ns3::Ipv4FlowProbe::DropLogger
void DropLogger(const Ipv4Header &ipHeader, Ptr< const Packet > ipPayload, Ipv4L3Protocol::DropReason reason, Ptr< Ipv4 > ipv4, uint32_t ifIndex)
Definition:
ipv4-flow-probe.cc:252
src
flow-monitor
model
ipv4-flow-probe.h
Generated on Sat Nov 16 2013 16:17:40 for ns-3 by
1.8.5