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-option-header.cc
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2007-2009 Strasbourg University
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: David Gross <gdavid.devel@gmail.com>
19
*/
20
21
#include "ns3/assert.h"
22
#include "ns3/log.h"
23
#include "ns3/header.h"
24
#include "
ipv6-option-header.h
"
25
26
namespace
ns3
27
{
28
29
NS_LOG_COMPONENT_DEFINE
(
"Ipv6OptionHeader"
)
30
;
31
32
NS_OBJECT_ENSURE_REGISTERED
(Ipv6OptionHeader)
33
;
34
35
TypeId
Ipv6OptionHeader::GetTypeId
()
36
{
37
static
TypeId
tid =
TypeId
(
"ns3::Ipv6OptionHeader"
)
38
.
AddConstructor
<
Ipv6OptionHeader
> ()
39
.SetParent<Header> ()
40
;
41
return
tid;
42
}
43
44
TypeId
Ipv6OptionHeader::GetInstanceTypeId
()
const
45
{
46
return
GetTypeId
();
47
}
48
49
Ipv6OptionHeader::Ipv6OptionHeader
()
50
: m_type (0),
51
m_length (0)
52
{
53
}
54
55
Ipv6OptionHeader::~Ipv6OptionHeader
()
56
{
57
}
58
59
void
Ipv6OptionHeader::SetType
(uint8_t type)
60
{
61
m_type
= type;
62
}
63
64
uint8_t
Ipv6OptionHeader::GetType
()
const
65
{
66
return
m_type
;
67
}
68
69
void
Ipv6OptionHeader::SetLength
(uint8_t length)
70
{
71
m_length
= length;
72
}
73
74
uint8_t
Ipv6OptionHeader::GetLength
()
const
75
{
76
return
m_length
;
77
}
78
79
void
Ipv6OptionHeader::Print
(std::ostream &os)
const
80
{
81
os <<
"( type = "
<< (uint32_t)
m_type
<<
" )"
;
82
}
83
84
uint32_t
Ipv6OptionHeader::GetSerializedSize
()
const
85
{
86
return
m_length
+ 2;
87
}
88
89
void
Ipv6OptionHeader::Serialize
(
Buffer::Iterator
start
)
const
90
{
91
Buffer::Iterator
i =
start
;
92
93
i.
WriteU8
(
m_type
);
94
i.
WriteU8
(
m_length
);
95
96
i.
Write
(
m_data
.
Begin
(),
m_data
.
End
());
97
}
98
99
uint32_t
Ipv6OptionHeader::Deserialize
(
Buffer::Iterator
start
)
100
{
101
Buffer::Iterator
i =
start
;
102
103
m_type
= i.
ReadU8
();
104
m_length
= i.
ReadU8
();
105
106
m_data
=
Buffer
();
107
m_data
.
AddAtEnd
(
m_length
);
108
Buffer::Iterator
dataStart = i;
109
i.
Next
(
m_length
);
110
Buffer::Iterator
dataEnd = i;
111
m_data
.
Begin
().
Write
(dataStart, dataEnd);
112
113
return
GetSerializedSize
();
114
}
115
116
Ipv6OptionHeader::Alignment
Ipv6OptionHeader::GetAlignment
()
const
117
{
118
return
(
Alignment
){ 1,0};
119
}
120
121
NS_OBJECT_ENSURE_REGISTERED
(
Ipv6OptionPad1Header
)
122
;
123
124
TypeId
Ipv6OptionPad1Header::GetTypeId
()
125
{
126
static
TypeId
tid =
TypeId
(
"ns3::Ipv6OptionPad1Header"
)
127
.
AddConstructor
<
Ipv6OptionPad1Header
> ()
128
.SetParent<Ipv6OptionHeader> ()
129
;
130
return
tid;
131
}
132
133
TypeId
Ipv6OptionPad1Header::GetInstanceTypeId
()
const
134
{
135
return
GetTypeId
();
136
}
137
138
Ipv6OptionPad1Header::Ipv6OptionPad1Header
()
139
{
140
SetType
(0);
141
}
142
143
Ipv6OptionPad1Header::~Ipv6OptionPad1Header
()
144
{
145
}
146
147
void
Ipv6OptionPad1Header::Print
(std::ostream &os)
const
148
{
149
os <<
"( type = "
<< (uint32_t)
GetType
() <<
" )"
;
150
}
151
152
uint32_t
Ipv6OptionPad1Header::GetSerializedSize
()
const
153
{
154
return
1;
155
}
156
157
void
Ipv6OptionPad1Header::Serialize
(
Buffer::Iterator
start
)
const
158
{
159
Buffer::Iterator
i =
start
;
160
161
i.
WriteU8
(
GetType
());
162
}
163
164
uint32_t
Ipv6OptionPad1Header::Deserialize
(
Buffer::Iterator
start
)
165
{
166
Buffer::Iterator
i =
start
;
167
168
SetType
(i.
ReadU8
());
169
170
return
GetSerializedSize
();
171
}
172
173
NS_OBJECT_ENSURE_REGISTERED
(
Ipv6OptionPadnHeader
)
174
;
175
176
TypeId
Ipv6OptionPadnHeader::GetTypeId
()
177
{
178
static
TypeId
tid =
TypeId
(
"ns3::Ipv6OptionPadnHeader"
)
179
.
AddConstructor
<
Ipv6OptionPadnHeader
> ()
180
.SetParent<Ipv6OptionHeader> ()
181
;
182
return
tid;
183
}
184
185
TypeId
Ipv6OptionPadnHeader::GetInstanceTypeId
()
const
186
{
187
return
GetTypeId
();
188
}
189
190
Ipv6OptionPadnHeader::Ipv6OptionPadnHeader
(uint32_t pad)
191
{
192
SetType
(1);
193
NS_ASSERT_MSG
(pad >= 2,
"PadN must be at least 2 bytes long"
);
194
SetLength
(pad - 2);
195
}
196
197
Ipv6OptionPadnHeader::~Ipv6OptionPadnHeader
()
198
{
199
}
200
201
void
Ipv6OptionPadnHeader::Print
(std::ostream &os)
const
202
{
203
os <<
"( type = "
<< (uint32_t)
GetType
() <<
" length = "
<< (uint32_t)
GetLength
() <<
" )"
;
204
}
205
206
uint32_t
Ipv6OptionPadnHeader::GetSerializedSize
()
const
207
{
208
return
GetLength
() + 2;
209
}
210
211
void
Ipv6OptionPadnHeader::Serialize
(
Buffer::Iterator
start
)
const
212
{
213
Buffer::Iterator
i =
start
;
214
215
i.
WriteU8
(
GetType
());
216
i.
WriteU8
(
GetLength
());
217
218
for
(
int
padding = 0; padding <
GetLength
(); padding++)
219
{
220
i.
WriteU8
(0);
221
}
222
}
223
224
uint32_t
Ipv6OptionPadnHeader::Deserialize
(
Buffer::Iterator
start
)
225
{
226
Buffer::Iterator
i =
start
;
227
228
SetType
(i.
ReadU8
());
229
SetLength
(i.
ReadU8
());
230
231
return
GetSerializedSize
();
232
}
233
234
NS_OBJECT_ENSURE_REGISTERED
(
Ipv6OptionJumbogramHeader
)
235
;
236
237
TypeId
Ipv6OptionJumbogramHeader::GetTypeId
()
238
{
239
static
TypeId
tid =
TypeId
(
"ns3::Ipv6OptionJumbogramHeader"
)
240
.
AddConstructor
<
Ipv6OptionJumbogramHeader
> ()
241
.SetParent<Ipv6OptionHeader> ()
242
;
243
return
tid;
244
}
245
246
TypeId
Ipv6OptionJumbogramHeader::GetInstanceTypeId
()
const
247
{
248
return
GetTypeId
();
249
}
250
251
Ipv6OptionJumbogramHeader::Ipv6OptionJumbogramHeader
()
252
{
253
SetType
(0xC2);
254
SetLength
(4);
255
}
256
257
Ipv6OptionJumbogramHeader::~Ipv6OptionJumbogramHeader
()
258
{
259
}
260
261
void
Ipv6OptionJumbogramHeader::SetDataLength
(uint32_t dataLength)
262
{
263
m_dataLength
= dataLength;
264
}
265
266
uint32_t
Ipv6OptionJumbogramHeader::GetDataLength
()
const
267
{
268
return
m_dataLength
;
269
}
270
271
void
Ipv6OptionJumbogramHeader::Print
(std::ostream &os)
const
272
{
273
os <<
"( type = "
<< (uint32_t)
GetType
() <<
" length = "
<< (uint32_t)
GetLength
() <<
" data length = "
<< (uint32_t)
m_dataLength
<<
" )"
;
274
}
275
276
uint32_t
Ipv6OptionJumbogramHeader::GetSerializedSize
()
const
277
{
278
return
GetLength
() + 2;
279
}
280
281
void
Ipv6OptionJumbogramHeader::Serialize
(
Buffer::Iterator
start
)
const
282
{
283
Buffer::Iterator
i =
start
;
284
285
i.
WriteU8
(
GetType
());
286
i.
WriteU8
(
GetLength
());
287
i.
WriteHtonU32
(
m_dataLength
);
288
}
289
290
uint32_t
Ipv6OptionJumbogramHeader::Deserialize
(
Buffer::Iterator
start
)
291
{
292
Buffer::Iterator
i =
start
;
293
294
SetType
(i.
ReadU8
());
295
SetLength
(i.
ReadU8
());
296
m_dataLength
= i.
ReadNtohU16
();
297
298
return
GetSerializedSize
();
299
}
300
301
Ipv6OptionHeader::Alignment
Ipv6OptionJumbogramHeader::GetAlignment
()
const
302
{
303
return
(
Alignment
){ 4,2};
//4n+2
304
}
305
306
NS_OBJECT_ENSURE_REGISTERED
(
Ipv6OptionRouterAlertHeader
)
307
;
308
309
TypeId
Ipv6OptionRouterAlertHeader::GetTypeId
()
310
{
311
static
TypeId
tid =
TypeId
(
"ns3::Ipv6OptionRouterAlertHeader"
)
312
.
AddConstructor
<
Ipv6OptionRouterAlertHeader
> ()
313
.SetParent<Ipv6OptionHeader> ()
314
;
315
return
tid;
316
}
317
318
TypeId
Ipv6OptionRouterAlertHeader::GetInstanceTypeId
()
const
319
{
320
return
GetTypeId
();
321
}
322
323
Ipv6OptionRouterAlertHeader::Ipv6OptionRouterAlertHeader
()
324
: m_value (0)
325
{
326
SetType
(5);
327
SetLength
(2);
328
}
329
330
Ipv6OptionRouterAlertHeader::~Ipv6OptionRouterAlertHeader
()
331
{
332
}
333
334
void
Ipv6OptionRouterAlertHeader::SetValue
(uint16_t value)
335
{
336
m_value
= value;
337
}
338
339
uint16_t
Ipv6OptionRouterAlertHeader::GetValue
()
const
340
{
341
return
m_value
;
342
}
343
344
void
Ipv6OptionRouterAlertHeader::Print
(std::ostream &os)
const
345
{
346
os <<
"( type = "
<< (uint32_t)
GetType
() <<
" length = "
<< (uint32_t)
GetLength
() <<
" value = "
<< (uint32_t)
m_value
<<
" )"
;
347
}
348
349
uint32_t
Ipv6OptionRouterAlertHeader::GetSerializedSize
()
const
350
{
351
return
GetLength
() + 2;
352
}
353
354
void
Ipv6OptionRouterAlertHeader::Serialize
(
Buffer::Iterator
start
)
const
355
{
356
Buffer::Iterator
i =
start
;
357
358
i.
WriteU8
(
GetType
());
359
i.
WriteU8
(
GetLength
());
360
i.
WriteHtonU16
(
m_value
);
361
}
362
363
uint32_t
Ipv6OptionRouterAlertHeader::Deserialize
(
Buffer::Iterator
start
)
364
{
365
Buffer::Iterator
i =
start
;
366
367
SetType
(i.
ReadU8
());
368
SetLength
(i.
ReadU8
());
369
m_value
= i.
ReadNtohU16
();
370
371
return
GetSerializedSize
();
372
}
373
374
Ipv6OptionHeader::Alignment
Ipv6OptionRouterAlertHeader::GetAlignment
()
const
375
{
376
return
(
Alignment
){ 2,0};
//2n+0
377
}
378
379
}
/* namespace ns3 */
380
ns3::Ipv6OptionRouterAlertHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
ipv6-option-header.cc:318
ns3::TypeId::AddConstructor
TypeId AddConstructor(void)
Definition:
type-id.h:418
ns3::Ipv6OptionRouterAlertHeader::m_value
uint16_t m_value
The value.
Definition:
ipv6-option-header.h:419
ns3::NS_LOG_COMPONENT_DEFINE
NS_LOG_COMPONENT_DEFINE("GrantedTimeWindowMpiInterface")
ns3::Ipv6OptionRouterAlertHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
ipv6-option-header.cc:354
ns3::Ipv6OptionHeader::SetType
void SetType(uint8_t type)
Set the type of the option.
Definition:
ipv6-option-header.cc:59
ns3::Ipv6OptionHeader
Doxygen introspection did not find any typical Config paths.
Definition:
ipv6-option-header.h:35
ns3::Ipv6OptionHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
ipv6-option-header.cc:116
ns3::Ipv6OptionPad1Header::~Ipv6OptionPad1Header
virtual ~Ipv6OptionPad1Header()
Destructor.
Definition:
ipv6-option-header.cc:143
ns3::Ipv6OptionPadnHeader::Ipv6OptionPadnHeader
Ipv6OptionPadnHeader(uint32_t pad=2)
Constructor.
Definition:
ipv6-option-header.cc:190
ns3::Ipv6OptionJumbogramHeader::Ipv6OptionJumbogramHeader
Ipv6OptionJumbogramHeader()
Constructor.
Definition:
ipv6-option-header.cc:251
ns3::Buffer
automatically resized byte buffer
Definition:
buffer.h:92
ns3::Ipv6OptionPad1Header::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the packet.
Definition:
ipv6-option-header.cc:164
ns3::Ipv6OptionHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
ipv6-option-header.cc:44
ns3::Ipv6OptionPadnHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
ipv6-option-header.cc:211
ns3::Ipv6OptionJumbogramHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
ipv6-option-header.cc:237
ns3::Ipv6OptionRouterAlertHeader::Print
virtual void Print(std::ostream &os) const
Print some informations about the packet.
Definition:
ipv6-option-header.cc:344
ns3::Ipv6OptionHeader::m_type
uint8_t m_type
The type of the option.
Definition:
ipv6-option-header.h:137
ns3::NS_OBJECT_ENSURE_REGISTERED
NS_OBJECT_ENSURE_REGISTERED(NullMessageSimulatorImpl)
ns3::Ipv6OptionPad1Header::Ipv6OptionPad1Header
Ipv6OptionPad1Header()
Constructor.
Definition:
ipv6-option-header.cc:138
ns3::Ipv6OptionPadnHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
ipv6-option-header.cc:185
ns3::Ipv6OptionPad1Header
Doxygen introspection did not find any typical Config paths.
Definition:
ipv6-option-header.h:154
visualizer.core.start
def start
Definition:
core.py:1482
ns3::Ipv6OptionJumbogramHeader::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the packet.
Definition:
ipv6-option-header.cc:290
ns3::Ipv6OptionHeader::GetType
uint8_t GetType() const
Get the type of the option.
Definition:
ipv6-option-header.cc:64
ns3::Ipv6OptionRouterAlertHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
ipv6-option-header.cc:309
ns3::Ipv6OptionPad1Header::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
ipv6-option-header.cc:133
ipv6-option-header.h
ns3::Ipv6OptionHeader::Alignment
represents the alignment requirements of an option header
Definition:
ipv6-option-header.h:46
ns3::Ipv6OptionPadnHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
ipv6-option-header.cc:206
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition:
buffer.h:98
ns3::Ipv6OptionRouterAlertHeader::Ipv6OptionRouterAlertHeader
Ipv6OptionRouterAlertHeader()
Constructor.
Definition:
ipv6-option-header.cc:323
ns3::Ipv6OptionRouterAlertHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
ipv6-option-header.cc:349
ns3::Ipv6OptionPadnHeader::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the packet.
Definition:
ipv6-option-header.cc:224
ns3::Ipv6OptionJumbogramHeader::Print
virtual void Print(std::ostream &os) const
Print some informations about the packet.
Definition:
ipv6-option-header.cc:271
ns3::Ipv6OptionJumbogramHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
ipv6-option-header.cc:246
ns3::Ipv6OptionHeader::~Ipv6OptionHeader
virtual ~Ipv6OptionHeader()
Destructor.
Definition:
ipv6-option-header.cc:55
ns3::Ipv6OptionJumbogramHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
ipv6-option-header.cc:276
ns3::Ipv6OptionPadnHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
ipv6-option-header.cc:176
ns3::Ipv6OptionPadnHeader::Print
virtual void Print(std::ostream &os) const
Print some informations about the packet.
Definition:
ipv6-option-header.cc:201
ns3::Buffer::Iterator::WriteHtonU16
void WriteHtonU16(uint16_t data)
Definition:
buffer.h:726
ns3::Buffer::End
Buffer::Iterator End(void) const
Definition:
buffer.h:881
ns3::Buffer::Iterator::Next
void Next(void)
go forward by one byte
Definition:
buffer.h:666
ns3::Ipv6OptionJumbogramHeader::~Ipv6OptionJumbogramHeader
virtual ~Ipv6OptionJumbogramHeader()
Destructor.
Definition:
ipv6-option-header.cc:257
ns3::Ipv6OptionHeader::m_data
Buffer m_data
The anonymous data of this option.
Definition:
ipv6-option-header.h:147
ns3::Ipv6OptionJumbogramHeader
Doxygen introspection did not find any typical Config paths.
Definition:
ipv6-option-header.h:267
ns3::Ipv6OptionRouterAlertHeader::~Ipv6OptionRouterAlertHeader
virtual ~Ipv6OptionRouterAlertHeader()
Destructor.
Definition:
ipv6-option-header.cc:330
ns3::Buffer::Begin
Buffer::Iterator Begin(void) const
Definition:
buffer.h:875
ns3::Ipv6OptionHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
ipv6-option-header.cc:89
ns3::Ipv6OptionJumbogramHeader::SetDataLength
void SetDataLength(uint32_t dataLength)
Set the data length.
Definition:
ipv6-option-header.cc:261
ns3::Ipv6OptionJumbogramHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
ipv6-option-header.cc:301
ns3::Ipv6OptionHeader::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the packet.
Definition:
ipv6-option-header.cc:99
ns3::Ipv6OptionPadnHeader::~Ipv6OptionPadnHeader
virtual ~Ipv6OptionPadnHeader()
Destructor.
Definition:
ipv6-option-header.cc:197
ns3::Ipv6OptionRouterAlertHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
ipv6-option-header.cc:374
ns3::Ipv6OptionPad1Header::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
ipv6-option-header.cc:157
ns3::Ipv6OptionPad1Header::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
ipv6-option-header.cc:152
ns3::Buffer::Iterator::WriteHtonU32
void WriteHtonU32(uint32_t data)
Definition:
buffer.h:745
ns3::Ipv6OptionRouterAlertHeader::SetValue
void SetValue(uint16_t value)
Set the field "value".
Definition:
ipv6-option-header.cc:334
ns3::Ipv6OptionJumbogramHeader::GetDataLength
uint32_t GetDataLength() const
Get the data length.
Definition:
ipv6-option-header.cc:266
ns3::Buffer::AddAtEnd
bool AddAtEnd(uint32_t end)
Definition:
buffer.cc:356
NS_ASSERT_MSG
#define NS_ASSERT_MSG(condition, message)
Definition:
assert.h:86
ns3::Ipv6OptionRouterAlertHeader::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the packet.
Definition:
ipv6-option-header.cc:363
ns3::Ipv6OptionPad1Header::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
ipv6-option-header.cc:124
ns3::Buffer::Iterator::WriteU8
void WriteU8(uint8_t data)
Definition:
buffer.h:690
ns3::Ipv6OptionJumbogramHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
ipv6-option-header.cc:281
ns3::Ipv6OptionHeader::GetLength
uint8_t GetLength() const
Get the option length.
Definition:
ipv6-option-header.cc:74
ns3::Buffer::Iterator::ReadU8
uint8_t ReadU8(void)
Definition:
buffer.h:819
ns3::Buffer::Iterator::Write
void Write(uint8_t const *buffer, uint32_t size)
Definition:
buffer.cc:978
ns3::Ipv6OptionRouterAlertHeader
Doxygen introspection did not find any typical Config paths.
Definition:
ipv6-option-header.h:347
ns3::Buffer::Iterator::ReadNtohU16
uint16_t ReadNtohU16(void)
Definition:
buffer.h:767
ns3::Ipv6OptionRouterAlertHeader::GetValue
uint16_t GetValue() const
Get the field "value".
Definition:
ipv6-option-header.cc:339
ns3::Ipv6OptionHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
ipv6-option-header.cc:84
ns3::Ipv6OptionHeader::m_length
uint8_t m_length
The option length.
Definition:
ipv6-option-header.h:142
ns3::Ipv6OptionHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
ipv6-option-header.cc:35
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
ns3::Ipv6OptionHeader::SetLength
void SetLength(uint8_t length)
Set the option length.
Definition:
ipv6-option-header.cc:69
ns3::Ipv6OptionPadnHeader
Doxygen introspection did not find any typical Config paths.
Definition:
ipv6-option-header.h:210
ns3::Ipv6OptionHeader::Print
virtual void Print(std::ostream &os) const
Print some informations about the packet.
Definition:
ipv6-option-header.cc:79
ns3::Ipv6OptionPad1Header::Print
virtual void Print(std::ostream &os) const
Print some informations about the packet.
Definition:
ipv6-option-header.cc:147
ns3::Ipv6OptionJumbogramHeader::m_dataLength
uint32_t m_dataLength
The data length.
Definition:
ipv6-option-header.h:340
ns3::Ipv6OptionHeader::Ipv6OptionHeader
Ipv6OptionHeader()
Constructor.
Definition:
ipv6-option-header.cc:49
src
internet
model
ipv6-option-header.cc
Generated on Sat Apr 19 2014 14:06:57 for ns-3 by
1.8.6