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
radvd-prefix.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2009 Strasbourg University
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
18
*/
19
20
#ifndef RADVD_PREFIX_H
21
#define RADVD_PREFIX_H
22
23
#include "ns3/ipv6-address.h"
24
#include "ns3/simple-ref-count.h"
25
26
#include <stdint.h>
27
28
namespace
ns3
29
{
30
35
class
RadvdPrefix
:
public
SimpleRefCount
<RadvdPrefix>
36
{
37
public
:
48
RadvdPrefix
(
Ipv6Address
network,
49
uint8_t prefixLength,
50
uint32_t preferredLifeTime = 604800,
51
uint32_t validLifeTime = 2592000,
52
bool
onLinkFlag =
true
,
53
bool
autonomousFlag =
true
,
54
bool
routerAddrFlag =
false
);
55
59
~RadvdPrefix
();
60
65
Ipv6Address
GetNetwork
()
const
;
66
71
void
SetNetwork
(
Ipv6Address
network);
72
77
uint8_t
GetPrefixLength
()
const
;
78
83
void
SetPrefixLength
(uint8_t prefixLength);
84
89
uint32_t
GetPreferredLifeTime
()
const
;
90
95
void
SetPreferredLifeTime
(uint32_t preferredLifeTime);
96
101
uint32_t
GetValidLifeTime
()
const
;
102
107
void
SetValidLifeTime
(uint32_t validLifeTime);
108
113
bool
IsOnLinkFlag
()
const
;
114
119
void
SetOnLinkFlag
(
bool
onLinkFlag);
120
125
bool
IsAutonomousFlag
()
const
;
126
131
void
SetAutonomousFlag
(
bool
autonomousFlag);
132
137
bool
IsRouterAddrFlag
()
const
;
138
143
void
SetRouterAddrFlag
(
bool
routerAddrFlag);
144
145
private
:
149
Ipv6Address
m_network
;
150
154
uint8_t
m_prefixLength
;
155
159
uint32_t
m_preferredLifeTime
;
160
164
uint32_t
m_validLifeTime
;
165
169
bool
m_onLinkFlag
;
170
174
bool
m_autonomousFlag
;
175
180
bool
m_routerAddrFlag
;
181
};
182
183
}
/* namespace ns3 */
184
185
#endif
/* RADVD_PREFIX_H */
ns3::Ipv6Address
Describes an IPv6 address.
Definition:
ipv6-address.h:49
ns3::RadvdPrefix
Router prefix for radvd application.
Definition:
radvd-prefix.h:36
ns3::RadvdPrefix::SetAutonomousFlag
void SetAutonomousFlag(bool autonomousFlag)
Set autonomous flag.
Definition:
radvd-prefix.cc:131
ns3::RadvdPrefix::m_routerAddrFlag
bool m_routerAddrFlag
Router address flag, indicates that router address is sent instead of network prefix as is required b...
Definition:
radvd-prefix.h:180
ns3::RadvdPrefix::SetOnLinkFlag
void SetOnLinkFlag(bool onLinkFlag)
Set on-link flag.
Definition:
radvd-prefix.cc:117
ns3::RadvdPrefix::SetNetwork
void SetNetwork(Ipv6Address network)
Set network prefix.
Definition:
radvd-prefix.cc:61
ns3::RadvdPrefix::m_preferredLifeTime
uint32_t m_preferredLifeTime
Preferred time.
Definition:
radvd-prefix.h:159
ns3::RadvdPrefix::SetPreferredLifeTime
void SetPreferredLifeTime(uint32_t preferredLifeTime)
Set preferred lifetime.
Definition:
radvd-prefix.cc:103
ns3::RadvdPrefix::GetPreferredLifeTime
uint32_t GetPreferredLifeTime() const
Get preferred lifetime.
Definition:
radvd-prefix.cc:96
ns3::RadvdPrefix::SetValidLifeTime
void SetValidLifeTime(uint32_t validLifeTime)
Set valid lifetime.
Definition:
radvd-prefix.cc:89
ns3::RadvdPrefix::GetValidLifeTime
uint32_t GetValidLifeTime() const
Get valid lifetime.
Definition:
radvd-prefix.cc:82
ns3::RadvdPrefix::GetPrefixLength
uint8_t GetPrefixLength() const
Get prefix length.
Definition:
radvd-prefix.cc:68
ns3::RadvdPrefix::m_prefixLength
uint8_t m_prefixLength
Prefix length.
Definition:
radvd-prefix.h:154
ns3::RadvdPrefix::m_onLinkFlag
bool m_onLinkFlag
On link flag, indicates that this prefix can be used for on-link determination.
Definition:
radvd-prefix.h:169
ns3::RadvdPrefix::SetRouterAddrFlag
void SetRouterAddrFlag(bool routerAddrFlag)
Set router address flag.
Definition:
radvd-prefix.cc:145
ns3::RadvdPrefix::m_autonomousFlag
bool m_autonomousFlag
Autonomous flag, it is used for autonomous address configuration (RFC 2462).
Definition:
radvd-prefix.h:174
ns3::RadvdPrefix::GetNetwork
Ipv6Address GetNetwork() const
Get network prefix.
Definition:
radvd-prefix.cc:54
ns3::RadvdPrefix::m_network
Ipv6Address m_network
Network prefix.
Definition:
radvd-prefix.h:149
ns3::RadvdPrefix::IsRouterAddrFlag
bool IsRouterAddrFlag() const
Is router address flag ?
Definition:
radvd-prefix.cc:138
ns3::RadvdPrefix::RadvdPrefix
RadvdPrefix(Ipv6Address network, uint8_t prefixLength, uint32_t preferredLifeTime=604800, uint32_t validLifeTime=2592000, bool onLinkFlag=true, bool autonomousFlag=true, bool routerAddrFlag=false)
Constructor.
Definition:
radvd-prefix.cc:29
ns3::RadvdPrefix::~RadvdPrefix
~RadvdPrefix()
Destructor.
Definition:
radvd-prefix.cc:48
ns3::RadvdPrefix::m_validLifeTime
uint32_t m_validLifeTime
Valid time.
Definition:
radvd-prefix.h:164
ns3::RadvdPrefix::IsAutonomousFlag
bool IsAutonomousFlag() const
Is autonomous flag ?
Definition:
radvd-prefix.cc:124
ns3::RadvdPrefix::IsOnLinkFlag
bool IsOnLinkFlag() const
Is on-link flag ?
Definition:
radvd-prefix.cc:110
ns3::RadvdPrefix::SetPrefixLength
void SetPrefixLength(uint8_t prefixLength)
Set prefix length.
Definition:
radvd-prefix.cc:75
ns3::SimpleRefCount
A template-based reference counting class.
Definition:
simple-ref-count.h:81
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
internet-apps
model
radvd-prefix.h
Generated on Sun Mar 3 2024 17:10:57 for ns-3 by
1.9.1