A Discrete-Event Network Simulator
QKDNetSim v2.0 (NS-3 v3.41) @ (+)
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
Enumerator
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
c
e
i
l
o
r
s
t
v
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
ipv6-packet-filter.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2016 Universita' degli Studi di Napoli Federico II
3
* 2016 University of Washington
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
* Authors: Stefano Avallone <stavallo@unina.it>
19
* Tom Henderson <tomhend@u.washington.edu>
20
* Pasquale Imputato <p.imputato@gmail.com>
21
*/
22
23
#include "
ipv6-packet-filter.h
"
24
25
#include "
ipv6-queue-disc-item.h
"
26
27
#include "ns3/enum.h"
28
#include "ns3/log.h"
29
#include "ns3/uinteger.h"
30
31
namespace
ns3
32
{
33
34
NS_LOG_COMPONENT_DEFINE
(
"Ipv6PacketFilter"
);
35
36
NS_OBJECT_ENSURE_REGISTERED
(Ipv6PacketFilter);
37
38
TypeId
39
Ipv6PacketFilter::GetTypeId
()
40
{
41
static
TypeId
tid =
42
TypeId
(
"ns3::Ipv6PacketFilter"
).
SetParent
<
PacketFilter
>().SetGroupName(
"Internet"
);
43
return
tid;
44
}
45
46
Ipv6PacketFilter::Ipv6PacketFilter
()
47
{
48
NS_LOG_FUNCTION
(
this
);
49
}
50
51
Ipv6PacketFilter::~Ipv6PacketFilter
()
52
{
53
NS_LOG_FUNCTION
(
this
);
54
}
55
56
bool
57
Ipv6PacketFilter::CheckProtocol
(
Ptr<QueueDiscItem>
item)
const
58
{
59
NS_LOG_FUNCTION
(
this
<< item);
60
return
bool(DynamicCast<Ipv6QueueDiscItem>(item));
61
}
62
63
// ------------------------------------------------------------------------- //
64
65
}
// namespace ns3
ns3::Ipv6PacketFilter::~Ipv6PacketFilter
~Ipv6PacketFilter() override
Definition:
ipv6-packet-filter.cc:51
ns3::Ipv6PacketFilter::Ipv6PacketFilter
Ipv6PacketFilter()
Definition:
ipv6-packet-filter.cc:46
ns3::Ipv6PacketFilter::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
ipv6-packet-filter.cc:39
ns3::Ipv6PacketFilter::CheckProtocol
bool CheckProtocol(Ptr< QueueDiscItem > item) const override
Checks if the filter is able to classify a kind of items.
Definition:
ipv6-packet-filter.cc:57
ns3::PacketFilter
PacketFilter is the abstract base class for filters used by queue discs to classify packets.
Definition:
packet-filter.h:35
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:77
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition:
type-id.cc:931
NS_LOG_COMPONENT_DEFINE
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition:
log.h:202
NS_LOG_FUNCTION
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Definition:
log-macros-enabled.h:240
NS_OBJECT_ENSURE_REGISTERED
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition:
object-base.h:46
ipv6-packet-filter.h
ipv6-queue-disc-item.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
internet
model
ipv6-packet-filter.cc
Generated on Sun Mar 3 2024 17:10:58 for ns-3 by
1.9.1