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
ipv6-queue-disc-item.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2016 Universita' degli Studi di Napoli Federico II
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
19
#ifndef IPV6_QUEUE_DISC_ITEM_H
20
#define IPV6_QUEUE_DISC_ITEM_H
21
22
#include "ns3/packet.h"
23
#include "ns3/object.h"
24
#include "ns3/net-device.h"
25
#include "ns3/traced-value.h"
26
#include "ns3/queue-disc.h"
27
#include "
ipv6-header.h
"
28
29
namespace
ns3
{
30
38
class
Ipv6QueueDiscItem
:
public
QueueDiscItem
{
39
public
:
47
Ipv6QueueDiscItem
(
Ptr<Packet>
p,
const
Address
& addr, uint16_t protocol,
const
Ipv6Header
& header);
48
49
virtual
~Ipv6QueueDiscItem
();
50
54
virtual
uint32_t
GetPacketSize
(
void
)
const
;
55
59
const
Ipv6Header
&
GetHeader
(
void
)
const
;
60
64
virtual
void
AddHeader
(
void
);
65
70
virtual
void
Print
(std::ostream &os)
const
;
71
72
private
:
78
Ipv6QueueDiscItem
();
84
Ipv6QueueDiscItem
(
const
Ipv6QueueDiscItem
&);
91
Ipv6QueueDiscItem
&
operator =
(
const
Ipv6QueueDiscItem
&);
92
93
Ipv6Header
m_header
;
94
bool
m_headerAdded
;
95
};
96
97
}
// namespace ns3
98
99
#endif
/* IPV6_QUEUE_DISC_ITEM_H */
ns3::Ipv6Header
Introspection did not find any typical Config paths.
Definition:
ipv6-header.h:33
ns3::Ipv6QueueDiscItem::operator=
Ipv6QueueDiscItem & operator=(const Ipv6QueueDiscItem &)
Assignment operator.
ns3::Ptr< Packet >
ns3::Ipv6QueueDiscItem::GetPacketSize
virtual uint32_t GetPacketSize(void) const
Definition:
ipv6-queue-disc-item.cc:39
ns3::Ipv6QueueDiscItem::Print
virtual void Print(std::ostream &os) const
Print the item contents.
Definition:
ipv6-queue-disc-item.cc:69
ns3::QueueDiscItem
QueueDiscItem is the abstract base class for items that are stored in a queue disc.
Definition:
queue-disc.h:43
ns3::Ipv6QueueDiscItem::AddHeader
virtual void AddHeader(void)
Add the header to the packet.
Definition:
ipv6-queue-disc-item.cc:57
ns3::Address
a polymophic address class
Definition:
address.h:90
ns3::Ipv6QueueDiscItem::m_header
Ipv6Header m_header
Definition:
ipv6-queue-disc-item.h:93
ns3::Ipv6QueueDiscItem
Ipv6QueueDiscItem is a subclass of QueueDiscItem which stores IPv6 packets.
Definition:
ipv6-queue-disc-item.h:38
ns3::Ipv6QueueDiscItem::~Ipv6QueueDiscItem
virtual ~Ipv6QueueDiscItem()
Definition:
ipv6-queue-disc-item.cc:34
ns3::Ipv6QueueDiscItem::GetHeader
const Ipv6Header & GetHeader(void) const
Definition:
ipv6-queue-disc-item.cc:52
ipv6-header.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::Ipv6QueueDiscItem::m_headerAdded
bool m_headerAdded
Definition:
ipv6-queue-disc-item.h:94
ns3::Ipv6QueueDiscItem::Ipv6QueueDiscItem
Ipv6QueueDiscItem()
Default constructor.
src
internet
model
ipv6-queue-disc-item.h
Generated on Thu Mar 24 2016 00:46:38 for ns-3 by
1.8.9.1