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
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
dsr-option-header.h
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2011 Yufei Cheng
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: Yufei Cheng <yfcheng@ittc.ku.edu>
19
*
20
* James P.G. Sterbenz <jpgs@ittc.ku.edu>, director
21
* ResiliNets Research Group http://wiki.ittc.ku.edu/resilinets
22
* Information and Telecommunication Technology Center (ITTC)
23
* and Department of Electrical Engineering and Computer Science
24
* The University of Kansas Lawrence, KS USA.
25
*
26
* Work supported in part by NSF FIND (Future Internet Design) Program
27
* under grant CNS-0626918 (Postmodern Internet Architecture),
28
* NSF grant CNS-1050226 (Multilayer Network Resilience Analysis and Experimentation on GENI),
29
* US Department of Defense (DoD), and ITTC at The University of Kansas.
30
*/
31
32
#ifndef DSR_OPTION_HEADER_H
33
#define DSR_OPTION_HEADER_H
34
35
#include <ostream>
36
#include <algorithm>
37
38
#include "ns3/header.h"
39
#include "ns3/ipv4-address.h"
40
#include "ns3/simulator.h"
41
42
namespace
ns3 {
43
44
class
Time;
45
namespace
dsr {
50
class
DsrOptionHeader
:
public
Header
51
{
52
public
:
57
struct
Alignment
58
{
59
uint8_t
factor
;
60
uint8_t
offset
;
61
};
66
static
TypeId
GetTypeId
();
71
virtual
TypeId
GetInstanceTypeId
()
const
;
75
DsrOptionHeader
();
79
virtual
~DsrOptionHeader
();
84
void
SetType
(uint8_t type);
89
uint8_t
GetType
()
const
;
94
void
SetLength
(uint8_t length);
99
uint8_t
GetLength
()
const
;
105
virtual
void
Print
(std::ostream &os)
const
;
110
virtual
uint32_t
GetSerializedSize
()
const
;
115
virtual
void
Serialize
(
Buffer::Iterator
start)
const
;
121
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start);
129
virtual
Alignment
GetAlignment
()
const
;
130
131
private
:
135
uint8_t
m_type
;
139
uint8_t
m_length
;
143
Buffer
m_data
;
144
};
145
150
class
DsrOptionPad1Header
:
public
DsrOptionHeader
151
{
152
public
:
157
static
TypeId
GetTypeId
();
162
virtual
TypeId
GetInstanceTypeId
()
const
;
166
DsrOptionPad1Header
();
170
virtual
~DsrOptionPad1Header
();
176
virtual
void
Print
(std::ostream &os)
const
;
181
virtual
uint32_t
GetSerializedSize
()
const
;
186
virtual
void
Serialize
(
Buffer::Iterator
start)
const
;
192
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start);
193
};
194
199
class
DsrOptionPadnHeader
:
public
DsrOptionHeader
200
{
201
public
:
206
static
TypeId
GetTypeId
();
211
virtual
TypeId
GetInstanceTypeId
()
const
;
216
DsrOptionPadnHeader
(uint32_t pad = 2);
220
virtual
~DsrOptionPadnHeader
();
226
virtual
void
Print
(std::ostream &os)
const
;
231
virtual
uint32_t
GetSerializedSize
()
const
;
236
virtual
void
Serialize
(
Buffer::Iterator
start)
const
;
242
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start);
243
};
244
272
class
DsrOptionRreqHeader
:
public
DsrOptionHeader
273
{
274
public
:
279
static
TypeId
GetTypeId
();
284
virtual
TypeId
GetInstanceTypeId
()
const
;
288
DsrOptionRreqHeader
();
292
virtual
~DsrOptionRreqHeader
();
297
void
SetNumberAddress
(uint8_t n);
302
Ipv4Address
GetTarget
();
307
void
SetTarget
(
Ipv4Address
target);
312
void
SetNodesAddress
(std::vector<Ipv4Address> ipv4Address);
317
std::vector<Ipv4Address>
GetNodesAddresses
()
const
;
322
uint32_t
GetNodesNumber
()
const
;
327
void
AddNodeAddress
(
Ipv4Address
ipv4);
333
void
SetNodeAddress
(uint8_t index,
Ipv4Address
addr);
339
Ipv4Address
GetNodeAddress
(uint8_t index)
const
;
344
void
SetDataLength
(uint32_t dataLength);
349
uint32_t
GetDataLength
()
const
;
354
void
SetId
(uint16_t identification);
359
uint16_t
GetId
()
const
;
365
virtual
void
Print
(std::ostream &os)
const
;
370
virtual
uint32_t
GetSerializedSize
()
const
;
375
virtual
void
Serialize
(
Buffer::Iterator
start)
const
;
381
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start);
386
virtual
Alignment
GetAlignment
()
const
;
387
388
private
:
392
uint32_t
m_dataLength
;
396
uint16_t
m_identification
;
397
/*
398
* Ipv4 address of target node
399
*/
400
Ipv4Address
m_target;
401
/*
402
* Ipv4 address to write when desearizing the packet
403
*/
404
Ipv4Address
m_address;
408
typedef
std::vector<Ipv4Address>
VectorIpv4Address_t
;
412
VectorIpv4Address_t
m_ipv4Address
;
413
};
414
440
// The Route Reply header modified for ns-3 implementation
462
class
DsrOptionRrepHeader
:
public
DsrOptionHeader
463
{
464
public
:
469
static
TypeId
GetTypeId
();
474
virtual
TypeId
GetInstanceTypeId
()
const
;
478
DsrOptionRrepHeader
();
482
virtual
~DsrOptionRrepHeader
();
487
void
SetNumberAddress
(uint8_t n);
492
void
SetNodesAddress
(std::vector<Ipv4Address> ipv4Address);
497
std::vector<Ipv4Address>
GetNodesAddress
()
const
;
498
/*
499
* \brief Get the target node Ip address
500
* \return the target address
501
*/
502
Ipv4Address
GetTargetAddress (std::vector<Ipv4Address> ipv4Address)
const
;
508
void
SetNodeAddress
(uint8_t index,
Ipv4Address
addr);
514
Ipv4Address
GetNodeAddress
(uint8_t index)
const
;
515
/*
516
* \brief Search the next hop Ipv4 address
517
* \param Our own IP address
518
* \return The next hop address of the route
519
*/
520
Ipv4Address
SearchNextHop (
Ipv4Address
ipv4Address);
526
virtual
void
Print
(std::ostream &os)
const
;
531
virtual
uint32_t
GetSerializedSize
()
const
;
536
virtual
void
Serialize
(
Buffer::Iterator
start)
const
;
542
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start);
547
virtual
Alignment
GetAlignment
()
const
;
548
549
private
:
550
/*
551
* The Ip address to write to when deserialize the packet
552
*/
553
Ipv4Address
m_address;
557
typedef
std::vector<Ipv4Address>
VectorIpv4Address_t
;
561
VectorIpv4Address_t
m_ipv4Address
;
562
};
563
589
class
DsrOptionSRHeader
:
public
DsrOptionHeader
590
{
591
public
:
596
static
TypeId
GetTypeId
();
601
virtual
TypeId
GetInstanceTypeId
()
const
;
605
DsrOptionSRHeader
();
609
virtual
~DsrOptionSRHeader
();
610
/*
611
* \brief Set the number of segments left to send
612
* \param The segments left
613
*/
614
void
SetSegmentsLeft (uint8_t segmentsLeft);
615
/*
616
* \brief Get the number of segments left to send
617
* \return The segments left
618
*/
619
uint8_t GetSegmentsLeft ()
const
;
624
void
SetNumberAddress
(uint8_t n);
629
void
SetNodesAddress
(std::vector<Ipv4Address> ipv4Address);
634
std::vector<Ipv4Address>
GetNodesAddress
()
const
;
635
/*
636
* \brief Get the node list size which is the number of ip address of the route
637
* \return the node list size
638
*/
639
uint8_t GetNodeListSize ()
const
;
645
void
SetNodeAddress
(uint8_t index,
Ipv4Address
addr);
651
Ipv4Address
GetNodeAddress
(uint8_t index)
const
;
652
/*
653
* \brief Set the salvage value for a packet
654
* \param The salvage value of the packet
655
*/
656
void
SetSalvage (uint8_t salvage);
657
/*
658
* \brief Get the salvage value for a packet
659
* \return The salvage value of the packet
660
*/
661
uint8_t GetSalvage ()
const
;
667
virtual
void
Print
(std::ostream &os)
const
;
672
virtual
uint32_t
GetSerializedSize
()
const
;
677
virtual
void
Serialize
(
Buffer::Iterator
start)
const
;
683
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start);
688
virtual
Alignment
GetAlignment
()
const
;
689
690
private
:
694
Ipv4Address
m_address
;
698
uint8_t
m_segmentsLeft
;
702
uint8_t
m_salvage
;
706
typedef
std::vector<Ipv4Address>
VectorIpv4Address_t
;
710
VectorIpv4Address_t
m_ipv4Address
;
711
};
712
738
// / Error type
739
enum
ErrorType
740
{
741
NODE_UNREACHABLE = 1,
// !< NODE_UNREACHABLE
742
FLOW_STATE_NOT_SUPPORTED = 2,
// !< FLOW_STATE_NOT_SUPPORTED
743
OPTION_NOT_SUPPORTED = 3,
// !< OPTION_NOT_SUPPORTED
744
};
745
746
class
DsrOptionRerrHeader
:
public
DsrOptionHeader
747
{
748
public
:
753
static
TypeId
GetTypeId
();
758
virtual
TypeId
GetInstanceTypeId
()
const
;
762
DsrOptionRerrHeader
();
766
virtual
~DsrOptionRerrHeader
();
771
void
SetErrorType
(uint8_t errorType);
776
uint8_t
GetErrorType
()
const
;
781
virtual
void
SetErrorSrc
(
Ipv4Address
errorSrcAddress);
786
virtual
Ipv4Address
GetErrorSrc
()
const
;
790
virtual
void
SetSalvage
(uint8_t salvage);
795
virtual
uint8_t
GetSalvage
()
const
;
800
virtual
void
SetErrorDst
(
Ipv4Address
errorDstAddress);
805
virtual
Ipv4Address
GetErrorDst
()
const
;
811
virtual
void
Print
(std::ostream &os)
const
;
816
virtual
uint32_t
GetSerializedSize
()
const
;
821
virtual
void
Serialize
(
Buffer::Iterator
start)
const
;
827
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start);
832
virtual
Alignment
GetAlignment
()
const
;
833
834
private
:
838
uint8_t
m_optDataLen
;
842
uint8_t
m_errorType
;
846
uint8_t
m_reserved
;
850
uint8_t
m_salvage
;
854
uint16_t
m_errorLength
;
858
Ipv4Address
m_errorSrcAddress
;
862
Ipv4Address
m_errorDstAddress
;
866
Buffer
m_errorData
;
867
};
868
888
/*
889
* \brief The type-specific info field
890
* \verbatim
891
| 0 | 1 | 2 | 3 |
892
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
893
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
894
| Unreachable Node Address |
895
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
896
\endverbatim
897
*/
898
899
class
DsrOptionRerrUnreachHeader
:
public
DsrOptionRerrHeader
900
{
901
public
:
906
static
TypeId
GetTypeId
();
911
virtual
TypeId
GetInstanceTypeId
()
const
;
915
DsrOptionRerrUnreachHeader
();
919
virtual
~DsrOptionRerrUnreachHeader
();
924
virtual
void
SetErrorSrc
(
Ipv4Address
errorSrcAddress);
929
virtual
Ipv4Address
GetErrorSrc
()
const
;
933
virtual
void
SetSalvage
(uint8_t salvage);
938
virtual
uint8_t
GetSalvage
()
const
;
943
virtual
void
SetErrorDst
(
Ipv4Address
errorDstAddress);
948
virtual
Ipv4Address
GetErrorDst
()
const
;
953
void
SetUnreachNode
(
Ipv4Address
unreachNode);
958
Ipv4Address
GetUnreachNode
()
const
;
963
void
SetOriginalDst
(
Ipv4Address
originalDst);
968
Ipv4Address
GetOriginalDst
()
const
;
974
virtual
void
Print
(std::ostream &os)
const
;
979
virtual
uint32_t
GetSerializedSize
()
const
;
984
virtual
void
Serialize
(
Buffer::Iterator
start)
const
;
990
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start);
995
virtual
Alignment
GetAlignment
()
const
;
996
997
private
:
1001
uint8_t
m_optDataLen
;
1005
uint8_t
m_errorType
;
1009
uint8_t
m_reserved
;
1013
uint8_t
m_salvage
;
1017
Ipv4Address
m_errorSrcAddress
;
1021
Ipv4Address
m_errorDstAddress
;
1025
Ipv4Address
m_unreachNode
;
1029
Ipv4Address
m_originalDst
;
1033
uint16_t
m_typeSpecific
;
1034
};
1035
1055
/*
1056
* \brief The type-specific info field
1057
* \unsupported option
1058
* \verbatim
1059
| 0 |
1060
0 1 2 3 4 5 6 7
1061
+-+-+-+-+-+-+-+-+
1062
|Unsupported Opt|
1063
+-+-+-+-+-+-+-+-+
1064
\endverbatim
1065
*/
1066
1067
class
DsrOptionRerrUnsupportHeader
:
public
DsrOptionRerrHeader
1068
{
1069
public
:
1074
static
TypeId
GetTypeId
();
1079
virtual
TypeId
GetInstanceTypeId
()
const
;
1083
DsrOptionRerrUnsupportHeader
();
1087
virtual
~DsrOptionRerrUnsupportHeader
();
1092
virtual
void
SetErrorSrc
(
Ipv4Address
errorSrcAddress);
1097
virtual
Ipv4Address
GetErrorSrc
()
const
;
1101
virtual
void
SetSalvage
(uint8_t salvage);
1106
virtual
uint8_t
GetSalvage
()
const
;
1111
virtual
void
SetErrorDst
(
Ipv4Address
errorDstAddress);
1116
virtual
Ipv4Address
GetErrorDst
()
const
;
1121
void
SetUnsupported
(uint16_t optionType);
1126
uint16_t
GetUnsupported
()
const
;
1132
virtual
void
Print
(std::ostream &os)
const
;
1137
virtual
uint32_t
GetSerializedSize
()
const
;
1142
virtual
void
Serialize
(
Buffer::Iterator
start)
const
;
1148
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start);
1153
virtual
Alignment
GetAlignment
()
const
;
1154
1155
private
:
1159
uint8_t
m_optDataLen
;
1163
uint8_t
m_errorType
;
1167
uint8_t
m_reserved
;
1171
uint8_t
m_salvage
;
1175
Ipv4Address
m_errorSrcAddress
;
1179
Ipv4Address
m_errorDstAddress
;
1183
uint16_t
m_unsupport
;
1184
};
1185
1203
class
DsrOptionAckReqHeader
:
public
DsrOptionHeader
1204
{
1205
public
:
1210
static
TypeId
GetTypeId
();
1215
virtual
TypeId
GetInstanceTypeId
()
const
;
1219
DsrOptionAckReqHeader
();
1223
virtual
~DsrOptionAckReqHeader
();
1228
void
SetAckId
(uint16_t identification);
1233
uint16_t
GetAckId
()
const
;
1239
virtual
void
Print
(std::ostream &os)
const
;
1244
virtual
uint32_t
GetSerializedSize
()
const
;
1249
virtual
void
Serialize
(
Buffer::Iterator
start)
const
;
1255
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start);
1260
virtual
Alignment
GetAlignment
()
const
;
1261
1262
private
:
1263
/*
1264
* The option data length
1265
*/
1266
uint8_t m_optDataLen;
1267
/*
1268
* The identification field
1269
*/
1270
uint16_t m_identification;
1271
};
1272
1294
class
DsrOptionAckHeader
:
public
DsrOptionHeader
1295
{
1296
public
:
1301
static
TypeId
GetTypeId
();
1306
virtual
TypeId
GetInstanceTypeId
()
const
;
1310
DsrOptionAckHeader
();
1314
virtual
~DsrOptionAckHeader
();
1319
void
SetAckId
(uint16_t identification);
1324
uint16_t
GetAckId
()
const
;
1329
void
SetRealSrc
(
Ipv4Address
realSrcAddress);
1334
Ipv4Address
GetRealSrc
()
const
;
1339
void
SetRealDst
(
Ipv4Address
realDstAddress);
1344
Ipv4Address
GetRealDst
()
const
;
1350
virtual
void
Print
(std::ostream &os)
const
;
1355
virtual
uint32_t
GetSerializedSize
()
const
;
1360
virtual
void
Serialize
(
Buffer::Iterator
start)
const
;
1366
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start);
1371
virtual
Alignment
GetAlignment
()
const
;
1372
1373
private
:
1377
uint8_t
m_optDataLen
;
1381
uint16_t
m_identification
;
1385
Ipv4Address
m_realSrcAddress
;
1389
Ipv4Address
m_realDstAddress
;
1390
};
1391
1392
static
inline
std::ostream &
operator<<
(std::ostream& os,
const
DsrOptionSRHeader
& sr)
1393
{
1394
sr.
Print
(os);
1395
return
os;
1396
}
1397
1398
}
// namespace dsr
1399
}
// namespace ns3
1400
1401
#endif
/* DSR_OPTION_HEADER_H */
ns3::dsr::DsrOptionRrepHeader::DsrOptionRrepHeader
DsrOptionRrepHeader()
Constructor.
Definition:
dsr-option-header.cc:407
ns3::Header
Protocol header serialization and deserialization.
Definition:
header.h:42
ns3::dsr::DsrOptionAckHeader::Print
virtual void Print(std::ostream &os) const
Print some informations about the packet.
Definition:
dsr-option-header.cc:1161
ns3::dsr::DsrOptionRerrUnsupportHeader::m_errorType
uint8_t m_errorType
The error type or route error option.
Definition:
dsr-option-header.h:1163
ns3::dsr::DsrOptionRreqHeader::AddNodeAddress
void AddNodeAddress(Ipv4Address ipv4)
Add one node address.
Definition:
dsr-option-header.cc:287
ns3::dsr::DsrOptionAckHeader::GetAckId
uint16_t GetAckId() const
Set the Ack id number.
Definition:
dsr-option-header.cc:1136
ns3::dsr::DsrOptionRerrUnsupportHeader::SetErrorSrc
virtual void SetErrorSrc(Ipv4Address errorSrcAddress)
Set the route error source address.
Definition:
dsr-option-header.cc:950
ns3::dsr::DsrOptionHeader::Print
virtual void Print(std::ostream &os) const
Print some informations about the packet.
Definition:
dsr-option-header.cc:91
ns3::dsr::DsrOptionRreqHeader::Print
virtual void Print(std::ostream &os) const
Print some informations about the packet.
Definition:
dsr-option-header.cc:329
ns3::dsr::DsrOptionRerrHeader::GetErrorDst
virtual Ipv4Address GetErrorDst() const
Get the error destination ip address.
Definition:
dsr-option-header.cc:725
ns3::dsr::DsrOptionRerrUnsupportHeader::m_unsupport
uint16_t m_unsupport
The unsupported option.
Definition:
dsr-option-header.h:1183
ns3::dsr::DsrOptionSRHeader::DsrOptionSRHeader
DsrOptionSRHeader()
Constructor.
Definition:
dsr-option-header.cc:528
ns3::dsr::DsrOptionAckReqHeader::SetAckId
void SetAckId(uint16_t identification)
Set the Ack request id number.
Definition:
dsr-option-header.cc:1057
ns3::dsr::DsrOptionSRHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:609
ns3::dsr::DsrOptionRerrUnreachHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:875
ns3::dsr::DsrOptionRreqHeader::GetNodeAddress
Ipv4Address GetNodeAddress(uint8_t index) const
Get a Node IPv4 Address.
Definition:
dsr-option-header.cc:314
ns3::dsr::DsrOptionPadnHeader::DsrOptionPadnHeader
DsrOptionPadnHeader(uint32_t pad=2)
Constructor.
Definition:
dsr-option-header.cc:200
ns3::dsr::DsrOptionPadnHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:221
ns3::dsr::DsrOptionRreqHeader::m_dataLength
uint32_t m_dataLength
The data length.
Definition:
dsr-option-header.h:392
ns3::dsr::DsrOptionRreqHeader::GetTarget
Ipv4Address GetTarget()
Get the target ipv4 address.
Definition:
dsr-option-header.cc:277
ns3::dsr::DsrOptionSRHeader::GetNodeAddress
Ipv4Address GetNodeAddress(uint8_t index) const
Get a Node IPv4 Address.
Definition:
dsr-option-header.cc:582
ns3::dsr::DsrOptionPad1Header::DsrOptionPad1Header
DsrOptionPad1Header()
Constructor.
Definition:
dsr-option-header.cc:149
ns3::dsr::DsrOptionRerrUnreachHeader::GetErrorSrc
virtual Ipv4Address GetErrorSrc() const
Get the route error source address.
Definition:
dsr-option-header.cc:827
ns3::dsr::DsrOptionAckReqHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:1078
ns3::dsr::DsrOptionAckReqHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:1031
ns3::dsr::DsrOptionRreqHeader::GetId
uint16_t GetId() const
Set the request id number.
Definition:
dsr-option-header.cc:324
ns3::dsr::DsrOptionSRHeader::VectorIpv4Address_t
std::vector< Ipv4Address > VectorIpv4Address_t
A vector of IPv4 Address.
Definition:
dsr-option-header.h:706
ns3::dsr::DsrOptionRerrHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:743
ns3::dsr::DsrOptionRerrUnreachHeader::DsrOptionRerrUnreachHeader
DsrOptionRerrUnreachHeader()
Constructor.
Definition:
dsr-option-header.cc:799
ns3::dsr::DsrOptionRrepHeader::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the packet.
Definition:
dsr-option-header.cc:484
ns3::Buffer
automatically resized byte buffer
Definition:
buffer.h:92
ns3::dsr::DsrOptionPad1Header
Header of Dsr Option Pad1.
Definition:
dsr-option-header.h:150
ns3::dsr::DsrOptionRreqHeader::GetNodesAddresses
std::vector< Ipv4Address > GetNodesAddresses() const
Get the vector of ipv4 address.
Definition:
dsr-option-header.cc:299
ns3::dsr::DsrOptionRerrUnreachHeader::m_unreachNode
Ipv4Address m_unreachNode
The unreachable node address.
Definition:
dsr-option-header.h:1025
ns3::dsr::DsrOptionRerrUnsupportHeader::SetErrorDst
virtual void SetErrorDst(Ipv4Address errorDstAddress)
Set the error destination ip address.
Definition:
dsr-option-header.cc:960
ns3::dsr::DsrOptionRerrUnreachHeader::m_errorDstAddress
Ipv4Address m_errorDstAddress
The error destination address.
Definition:
dsr-option-header.h:1021
ns3::dsr::DsrOptionRerrUnreachHeader::SetErrorSrc
virtual void SetErrorSrc(Ipv4Address errorSrcAddress)
Set the route error source address.
Definition:
dsr-option-header.cc:822
ns3::dsr::DsrOptionRreqHeader::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the packet.
Definition:
dsr-option-header.cc:363
ns3::dsr::DsrOptionRrepHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:402
ns3::dsr::DsrOptionHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:101
ns3::dsr::DsrOptionSRHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:604
ns3::dsr::DsrOptionAckReqHeader::~DsrOptionAckReqHeader
virtual ~DsrOptionAckReqHeader()
Destructor.
Definition:
dsr-option-header.cc:1053
ns3::dsr::DsrOptionRerrUnsupportHeader::Print
virtual void Print(std::ostream &os) const
Print some informations about the packet.
Definition:
dsr-option-header.cc:980
ns3::dsr::DsrOptionRerrUnreachHeader::m_typeSpecific
uint16_t m_typeSpecific
The specific error type.
Definition:
dsr-option-header.h:1033
ns3::dsr::DsrOptionSRHeader::GetNodesAddress
std::vector< Ipv4Address > GetNodesAddress() const
Get the vector of ipv4 address.
Definition:
dsr-option-header.cc:572
ns3::dsr::DsrOptionPadnHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:216
ns3::dsr::DsrOptionRerrUnsupportHeader::SetUnsupported
void SetUnsupported(uint16_t optionType)
Set the unsupported option type value.
Definition:
dsr-option-header.cc:970
ns3::dsr::DsrOptionSRHeader
Source Route (SR) Message Format.
Definition:
dsr-option-header.h:589
ns3::dsr::DsrOptionAckHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:1174
ns3::dsr::DsrOptionAckReqHeader::Print
virtual void Print(std::ostream &os) const
Print some informations about the packet.
Definition:
dsr-option-header.cc:1067
ns3::dsr::DsrOptionHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
dsr-option-header.cc:127
ns3::dsr::DsrOptionPadnHeader::~DsrOptionPadnHeader
virtual ~DsrOptionPadnHeader()
Destructor.
Definition:
dsr-option-header.cc:207
ns3::dsr::DsrOptionRerrUnreachHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
dsr-option-header.cc:905
ns3::dsr::DsrOptionHeader::GetLength
uint8_t GetLength() const
Get the option length.
Definition:
dsr-option-header.cc:86
ns3::dsr::DsrOptionAckReqHeader
Acknowledgement Request (ACK_RREQ) Message Format.
Definition:
dsr-option-header.h:1203
ns3::dsr::DsrOptionHeader::Alignment
represents the alignment requirements of an option header
Definition:
dsr-option-header.h:57
ns3::dsr::DsrOptionSRHeader::SetNodeAddress
void SetNodeAddress(uint8_t index, Ipv4Address addr)
Set a Node IPv4 Address.
Definition:
dsr-option-header.cc:577
ns3::dsr::DsrOptionRerrHeader::Print
virtual void Print(std::ostream &os) const
Print some informations about the packet.
Definition:
dsr-option-header.cc:730
ns3::dsr::DsrOptionRerrUnreachHeader::GetUnreachNode
Ipv4Address GetUnreachNode() const
Get the unreachable node ip address.
Definition:
dsr-option-header.cc:847
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition:
buffer.h:98
ns3::dsr::DsrOptionRerrHeader::m_reserved
uint8_t m_reserved
The reserved field.
Definition:
dsr-option-header.h:846
ns3::dsr::DsrOptionRerrUnsupportHeader::DsrOptionRerrUnsupportHeader
DsrOptionRerrUnsupportHeader()
Constructor.
Definition:
dsr-option-header.cc:927
ns3::dsr::DsrOptionSRHeader::Print
virtual void Print(std::ostream &os) const
Print some informations about the packet.
Definition:
dsr-option-header.cc:592
ns3::dsr::DsrOptionRerrHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:671
ns3::dsr::DsrOptionRerrUnreachHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:785
ns3::dsr::DsrOptionRerrUnsupportHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
dsr-option-header.cc:1023
ns3::dsr::ErrorType
ErrorType
Route Error (RERR) Message Format.
Definition:
dsr-option-header.h:739
ns3::dsr::DsrOptionAckHeader::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the packet.
Definition:
dsr-option-header.cc:1185
ns3::dsr::DsrOptionRerrUnreachHeader::SetSalvage
virtual void SetSalvage(uint8_t salvage)
Set the salvage value of the packet.
Definition:
dsr-option-header.cc:812
ns3::dsr::DsrOptionAckHeader::m_identification
uint16_t m_identification
identification field
Definition:
dsr-option-header.h:1381
ns3::dsr::DsrOptionPad1Header::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:168
ns3::dsr::DsrOptionRrepHeader::GetNodesAddress
std::vector< Ipv4Address > GetNodesAddress() const
Get the vector of ipv4 address.
Definition:
dsr-option-header.cc:430
ns3::dsr::DsrOptionRerrHeader::m_errorDstAddress
Ipv4Address m_errorDstAddress
The error destination address.
Definition:
dsr-option-header.h:862
ns3::dsr::DsrOptionRrepHeader
Route Reply (RREP) Message Format.
Definition:
dsr-option-header.h:462
ns3::dsr::DsrOptionRreqHeader::m_identification
uint16_t m_identification
Identifier of the packet.
Definition:
dsr-option-header.h:396
ns3::dsr::DsrOptionRerrUnsupportHeader::m_errorSrcAddress
Ipv4Address m_errorSrcAddress
The error source address.
Definition:
dsr-option-header.h:1175
ns3::dsr::DsrOptionRerrUnreachHeader::m_optDataLen
uint8_t m_optDataLen
option data length
Definition:
dsr-option-header.h:1001
ns3::dsr::DsrOptionHeader::Alignment::offset
uint8_t offset
Definition:
dsr-option-header.h:60
ns3::dsr::DsrOptionSRHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:514
ns3::dsr::DsrOptionPadnHeader::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the packet.
Definition:
dsr-option-header.cc:234
ns3::dsr::DsrOptionAckReqHeader::DsrOptionAckReqHeader
DsrOptionAckReqHeader()
Constructor.
Definition:
dsr-option-header.cc:1045
ns3::dsr::DsrOptionHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:47
ns3::dsr::DsrOptionSRHeader::m_ipv4Address
VectorIpv4Address_t m_ipv4Address
The vector of Nodes' IPv4 Address.
Definition:
dsr-option-header.h:710
ns3::dsr::DsrOptionRerrHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:738
ns3::dsr::DsrOptionRerrHeader::SetErrorSrc
virtual void SetErrorSrc(Ipv4Address errorSrcAddress)
Set the route error source address.
Definition:
dsr-option-header.cc:710
ns3::dsr::DsrOptionRerrUnreachHeader::SetErrorDst
virtual void SetErrorDst(Ipv4Address errorDstAddress)
Set the error destination ip address.
Definition:
dsr-option-header.cc:832
ns3::dsr::DsrOptionRerrHeader::SetErrorDst
virtual void SetErrorDst(Ipv4Address errorDstAddress)
Set the error destination ip address.
Definition:
dsr-option-header.cc:720
ns3::dsr::DsrOptionAckReqHeader::GetAckId
uint16_t GetAckId() const
Set the Ack request id number.
Definition:
dsr-option-header.cc:1062
ns3::dsr::DsrOptionRerrHeader::m_salvage
uint8_t m_salvage
The salavage field.
Definition:
dsr-option-header.h:850
ns3::dsr::DsrOptionHeader::m_data
Buffer m_data
The anonymous data of this option.
Definition:
dsr-option-header.h:143
ns3::dsr::DsrOptionRerrUnsupportHeader::~DsrOptionRerrUnsupportHeader
virtual ~DsrOptionRerrUnsupportHeader()
Destructor.
Definition:
dsr-option-header.cc:936
ns3::dsr::DsrOptionRreqHeader::VectorIpv4Address_t
std::vector< Ipv4Address > VectorIpv4Address_t
A vector of IPv4 Address.
Definition:
dsr-option-header.h:408
ns3::dsr::DsrOptionHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:96
ns3::dsr::DsrOptionSRHeader::~DsrOptionSRHeader
virtual ~DsrOptionSRHeader()
Destructor.
Definition:
dsr-option-header.cc:536
ns3::dsr::DsrOptionRreqHeader::GetNodesNumber
uint32_t GetNodesNumber() const
Get the number of nodes.
Definition:
dsr-option-header.cc:304
ns3::dsr::DsrOptionRerrUnsupportHeader::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the packet.
Definition:
dsr-option-header.cc:1008
ns3::dsr::DsrOptionHeader::Alignment::factor
uint8_t factor
Definition:
dsr-option-header.h:59
ns3::dsr::DsrOptionRerrUnreachHeader::m_salvage
uint8_t m_salvage
The salavage field.
Definition:
dsr-option-header.h:1013
ns3::dsr::DsrOptionRerrUnreachHeader::Print
virtual void Print(std::ostream &os) const
Print some informations about the packet.
Definition:
dsr-option-header.cc:862
ns3::dsr::DsrOptionRreqHeader::SetDataLength
void SetDataLength(uint32_t dataLength)
Set the data length.
ns3::dsr::DsrOptionRerrUnreachHeader::GetOriginalDst
Ipv4Address GetOriginalDst() const
Get the unreachable node ip address.
Definition:
dsr-option-header.cc:857
ns3::dsr::DsrOptionRerrUnsupportHeader::GetUnsupported
uint16_t GetUnsupported() const
Get the unsupported option type value.
Definition:
dsr-option-header.cc:975
ns3::dsr::DsrOptionPadnHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:186
ns3::dsr::DsrOptionRerrHeader::SetErrorType
void SetErrorType(uint8_t errorType)
Set the route error type.
Definition:
dsr-option-header.cc:690
ns3::dsr::DsrOptionSRHeader::SetNodesAddress
void SetNodesAddress(std::vector< Ipv4Address > ipv4Address)
Set the vector of ipv4 address.
Definition:
dsr-option-header.cc:566
ns3::dsr::DsrOptionRrepHeader::GetNodeAddress
Ipv4Address GetNodeAddress(uint8_t index) const
Get a Node IPv4 Address.
Definition:
dsr-option-header.cc:440
ns3::dsr::DsrOptionRerrHeader::GetErrorType
uint8_t GetErrorType() const
Get the route error type.
Definition:
dsr-option-header.cc:695
ns3::dsr::DsrOptionRerrHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
dsr-option-header.cc:777
ns3::dsr::DsrOptionAckHeader::m_optDataLen
uint8_t m_optDataLen
option data length
Definition:
dsr-option-header.h:1377
ns3::dsr::DsrOptionAckReqHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
dsr-option-header.cc:1098
ns3::dsr::DsrOptionAckHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:1115
ns3::dsr::DsrOptionRreqHeader::DsrOptionRreqHeader
DsrOptionRreqHeader()
Constructor.
Definition:
dsr-option-header.cc:260
ns3::dsr::DsrOptionPad1Header::Print
virtual void Print(std::ostream &os) const
Print some informations about the packet.
Definition:
dsr-option-header.cc:158
ns3::dsr::DsrOptionAckHeader::GetRealSrc
Ipv4Address GetRealSrc() const
Get Error source ip address.
Definition:
dsr-option-header.cc:1146
ns3::dsr::DsrOptionAckReqHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:1073
ns3::dsr::DsrOptionHeader::~DsrOptionHeader
virtual ~DsrOptionHeader()
Destructor.
Definition:
dsr-option-header.cc:67
ns3::dsr::DsrOptionAckHeader
Acknowledgement (ACK) Message Format.
Definition:
dsr-option-header.h:1294
ns3::dsr::DsrOptionRreqHeader::SetTarget
void SetTarget(Ipv4Address target)
Set the target ipv4 address.
Definition:
dsr-option-header.cc:282
ns3::dsr::DsrOptionRreqHeader::GetDataLength
uint32_t GetDataLength() const
Get the data length.
ns3::dsr::DsrOptionAckHeader::SetRealDst
void SetRealDst(Ipv4Address realDstAddress)
Set Error source ip address.
Definition:
dsr-option-header.cc:1151
ns3::operator<<
std::ostream & operator<<(std::ostream &os, const Angles &a)
Definition:
angles.cc:43
ns3::dsr::DsrOptionRrepHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:393
ns3::dsr::DsrOptionPad1Header::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:163
ns3::dsr::DsrOptionRreqHeader::SetNodeAddress
void SetNodeAddress(uint8_t index, Ipv4Address addr)
Set a Node IPv4 Address.
Definition:
dsr-option-header.cc:309
ns3::dsr::DsrOptionRerrUnreachHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:870
ns3::dsr::DsrOptionRrepHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
dsr-option-header.cc:506
ns3::dsr::DsrOptionRerrUnreachHeader::m_reserved
uint8_t m_reserved
The reserved field.
Definition:
dsr-option-header.h:1009
ns3::dsr::DsrOptionRerrUnsupportHeader
Route Error (RERR) Unsupported option Message Format.
Definition:
dsr-option-header.h:1067
ns3::dsr::DsrOptionAckHeader::DsrOptionAckHeader
DsrOptionAckHeader()
Constructor.
Definition:
dsr-option-header.cc:1120
ns3::dsr::DsrOptionSRHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
dsr-option-header.cc:648
ns3::dsr::DsrOptionAckHeader::m_realSrcAddress
Ipv4Address m_realSrcAddress
ack source address
Definition:
dsr-option-header.h:1385
ns3::dsr::DsrOptionRerrUnsupportHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:989
ns3::dsr::DsrOptionRerrUnsupportHeader::GetErrorSrc
virtual Ipv4Address GetErrorSrc() const
Get the route error source address.
Definition:
dsr-option-header.cc:955
ns3::dsr::DsrOptionHeader::m_type
uint8_t m_type
The type of the option.
Definition:
dsr-option-header.h:135
ns3::dsr::DsrOptionRerrHeader::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the packet.
Definition:
dsr-option-header.cc:756
ns3::dsr::DsrOptionRerrUnsupportHeader::SetSalvage
virtual void SetSalvage(uint8_t salvage)
Set the salvage value of the packet.
Definition:
dsr-option-header.cc:940
ns3::dsr::DsrOptionSRHeader::m_address
Ipv4Address m_address
The ip address header deserilize to.
Definition:
dsr-option-header.h:694
ns3::dsr::DsrOptionRrepHeader::m_ipv4Address
VectorIpv4Address_t m_ipv4Address
The vector of Nodes' IPv4 Address.
Definition:
dsr-option-header.h:561
ns3::dsr::DsrOptionHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:56
ns3::dsr::DsrOptionRreqHeader
Route Request (RREQ) Message Format.
Definition:
dsr-option-header.h:272
ns3::dsr::DsrOptionRreqHeader::SetId
void SetId(uint16_t identification)
Set the request id number.
Definition:
dsr-option-header.cc:319
ns3::dsr::DsrOptionSRHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:523
ns3::dsr::DsrOptionHeader::m_length
uint8_t m_length
The option length.
Definition:
dsr-option-header.h:139
ns3::dsr::DsrOptionRrepHeader::SetNodesAddress
void SetNodesAddress(std::vector< Ipv4Address > ipv4Address)
Set the vector of ipv4 address.
Definition:
dsr-option-header.cc:424
ns3::dsr::DsrOptionHeader::DsrOptionHeader
DsrOptionHeader()
Constructor.
Definition:
dsr-option-header.cc:61
ns3::dsr::DsrOptionRerrUnreachHeader::GetErrorDst
virtual Ipv4Address GetErrorDst() const
Get the error destination ip address.
Definition:
dsr-option-header.cc:837
ns3::dsr::DsrOptionPadnHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:195
ns3::dsr::DsrOptionRerrHeader::GetSalvage
virtual uint8_t GetSalvage() const
Get the salvage value of the packet.
Definition:
dsr-option-header.cc:705
ns3::dsr::DsrOptionAckHeader::GetRealDst
Ipv4Address GetRealDst() const
Get Error source ip address.
Definition:
dsr-option-header.cc:1156
ns3::dsr::DsrOptionRreqHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:246
ns3::dsr::DsrOptionRerrUnsupportHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:994
ns3::dsr::DsrOptionAckHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:1169
ns3::dsr::DsrOptionRerrUnreachHeader::SetUnreachNode
void SetUnreachNode(Ipv4Address unreachNode)
Set the unreachable node ip address.
Definition:
dsr-option-header.cc:842
ns3::dsr::DsrOptionAckReqHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:1040
ns3::dsr::DsrOptionRerrUnsupportHeader::m_salvage
uint8_t m_salvage
The salavage field.
Definition:
dsr-option-header.h:1171
ns3::dsr::DsrOptionAckHeader::~DsrOptionAckHeader
virtual ~DsrOptionAckHeader()
Destructor.
Definition:
dsr-option-header.cc:1127
ns3::dsr::DsrOptionRerrUnreachHeader::m_originalDst
Ipv4Address m_originalDst
The original destination address.
Definition:
dsr-option-header.h:1029
ns3::dsr::DsrOptionSRHeader::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the packet.
Definition:
dsr-option-header.cc:626
ns3::dsr::DsrOptionRerrUnsupportHeader::GetErrorDst
virtual Ipv4Address GetErrorDst() const
Get the error destination ip address.
Definition:
dsr-option-header.cc:965
ns3::dsr::DsrOptionRerrUnsupportHeader::m_optDataLen
uint8_t m_optDataLen
option data length
Definition:
dsr-option-header.h:1159
ns3::dsr::DsrOptionRerrUnreachHeader::~DsrOptionRerrUnreachHeader
virtual ~DsrOptionRerrUnreachHeader()
Destructor.
Definition:
dsr-option-header.cc:808
ns3::dsr::DsrOptionRreqHeader::SetNodesAddress
void SetNodesAddress(std::vector< Ipv4Address > ipv4Address)
Set the vector of ipv4 address.
Definition:
dsr-option-header.cc:293
ns3::Ipv4Address
Ipv4 addresses are stored in host order in this class.
Definition:
ipv4-address.h:38
ns3::dsr::DsrOptionRerrUnsupportHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:913
ns3::dsr::DsrOptionRreqHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:255
ns3::dsr::DsrOptionAckHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:1106
ns3::dsr::DsrOptionRerrUnsupportHeader::GetSalvage
virtual uint8_t GetSalvage() const
Get the salvage value of the packet.
Definition:
dsr-option-header.cc:945
ns3::dsr::DsrOptionRerrHeader::m_optDataLen
uint8_t m_optDataLen
option data length
Definition:
dsr-option-header.h:838
ns3::dsr::DsrOptionRerrHeader::m_errorType
uint8_t m_errorType
The error type or route error option.
Definition:
dsr-option-header.h:842
ns3::dsr::DsrOptionHeader::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the packet.
Definition:
dsr-option-header.cc:110
ns3::dsr::DsrOptionHeader
Header for Dsr Options.
Definition:
dsr-option-header.h:50
ns3::dsr::DsrOptionRerrUnsupportHeader::m_reserved
uint8_t m_reserved
The reserved field.
Definition:
dsr-option-header.h:1167
ns3::dsr::DsrOptionRreqHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:346
ns3::dsr::DsrOptionRerrUnreachHeader
Route Error (RERR) Unreachable node address option Message Format.
Definition:
dsr-option-header.h:899
ns3::dsr::DsrOptionRreqHeader::SetNumberAddress
void SetNumberAddress(uint8_t n)
Set the number of ipv4 address.
Definition:
dsr-option-header.cc:271
ns3::dsr::DsrOptionAckReqHeader::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the packet.
Definition:
dsr-option-header.cc:1087
ns3::dsr::DsrOptionAckHeader::SetRealSrc
void SetRealSrc(Ipv4Address realSrcAddress)
Set Error source ip address.
Definition:
dsr-option-header.cc:1141
ns3::dsr::DsrOptionHeader::SetType
void SetType(uint8_t type)
Set the type of the option.
Definition:
dsr-option-header.cc:71
ns3::dsr::DsrOptionRrepHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:467
ns3::dsr::DsrOptionPadnHeader
Header of Dsr Option Padn.
Definition:
dsr-option-header.h:199
ns3::dsr::DsrOptionRerrHeader::DsrOptionRerrHeader
DsrOptionRerrHeader()
Constructor.
Definition:
dsr-option-header.cc:676
ns3::dsr::DsrOptionRerrHeader::~DsrOptionRerrHeader
virtual ~DsrOptionRerrHeader()
Destructor.
Definition:
dsr-option-header.cc:686
ns3::dsr::DsrOptionRerrUnreachHeader::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the packet.
Definition:
dsr-option-header.cc:889
ns3::dsr::DsrOptionRerrUnreachHeader::m_errorType
uint8_t m_errorType
The error type or route error option.
Definition:
dsr-option-header.h:1005
ns3::dsr::DsrOptionRrepHeader::SetNumberAddress
void SetNumberAddress(uint8_t n)
Set the number of ipv4 address.
Definition:
dsr-option-header.cc:418
ns3::dsr::DsrOptionRrepHeader::Print
virtual void Print(std::ostream &os) const
Print some informations about the packet.
Definition:
dsr-option-header.cc:450
ns3::dsr::DsrOptionAckHeader::m_realDstAddress
Ipv4Address m_realDstAddress
ack destination address
Definition:
dsr-option-header.h:1389
ns3::dsr::DsrOptionSRHeader::SetNumberAddress
void SetNumberAddress(uint8_t n)
Set the number of ipv4 address.
Definition:
dsr-option-header.cc:560
ns3::dsr::DsrOptionRerrUnreachHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:794
ns3::dsr::DsrOptionRreqHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:341
ns3::dsr::DsrOptionRreqHeader::m_ipv4Address
VectorIpv4Address_t m_ipv4Address
The vector of Nodes' IPv4 Address.
Definition:
dsr-option-header.h:412
ns3::dsr::DsrOptionRreqHeader::~DsrOptionRreqHeader
virtual ~DsrOptionRreqHeader()
Destructor.
Definition:
dsr-option-header.cc:267
ns3::dsr::DsrOptionRrepHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:462
ns3::dsr::DsrOptionAckHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
dsr-option-header.cc:1198
ns3::dsr::DsrOptionRerrUnsupportHeader::m_errorDstAddress
Ipv4Address m_errorDstAddress
The error destination address.
Definition:
dsr-option-header.h:1179
ns3::dsr::DsrOptionRreqHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
dsr-option-header.cc:385
ns3::dsr::DsrOptionRrepHeader::~DsrOptionRrepHeader
virtual ~DsrOptionRrepHeader()
Destructor.
Definition:
dsr-option-header.cc:414
ns3::dsr::DsrOptionRerrHeader::GetErrorSrc
virtual Ipv4Address GetErrorSrc() const
Get the route error source address.
Definition:
dsr-option-header.cc:715
ns3::dsr::DsrOptionSRHeader::m_segmentsLeft
uint8_t m_segmentsLeft
Number of left segments.
Definition:
dsr-option-header.h:698
ns3::dsr::DsrOptionPad1Header::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:144
ns3::dsr::DsrOptionPad1Header::~DsrOptionPad1Header
virtual ~DsrOptionPad1Header()
Destructor.
Definition:
dsr-option-header.cc:154
ns3::dsr::DsrOptionPadnHeader::Print
virtual void Print(std::ostream &os) const
Print some informations about the packet.
Definition:
dsr-option-header.cc:211
ns3::dsr::DsrOptionAckHeader::SetAckId
void SetAckId(uint16_t identification)
Set the Ack id number.
Definition:
dsr-option-header.cc:1131
ns3::dsr::DsrOptionHeader::SetLength
void SetLength(uint8_t length)
Set the option length.
Definition:
dsr-option-header.cc:81
ns3::dsr::DsrOptionRerrHeader::m_errorSrcAddress
Ipv4Address m_errorSrcAddress
The error source address.
Definition:
dsr-option-header.h:858
ns3::dsr::DsrOptionRerrUnreachHeader::GetSalvage
virtual uint8_t GetSalvage() const
Get the salvage value of the packet.
Definition:
dsr-option-header.cc:817
ns3::dsr::DsrOptionRerrHeader::m_errorData
Buffer m_errorData
The anonymous data of this option.
Definition:
dsr-option-header.h:866
ns3::dsr::DsrOptionRrepHeader::SetNodeAddress
void SetNodeAddress(uint8_t index, Ipv4Address addr)
Set a Node IPv4 Address.
Definition:
dsr-option-header.cc:435
ns3::dsr::DsrOptionPad1Header::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the packet.
Definition:
dsr-option-header.cc:175
ns3::dsr::DsrOptionHeader::GetType
uint8_t GetType() const
Get the type of the option.
Definition:
dsr-option-header.cc:76
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:44
ns3::dsr::DsrOptionRerrHeader::m_errorLength
uint16_t m_errorLength
The specific error message length.
Definition:
dsr-option-header.h:854
ns3::dsr::DsrOptionRerrUnreachHeader::m_errorSrcAddress
Ipv4Address m_errorSrcAddress
The error source address.
Definition:
dsr-option-header.h:1017
ns3::dsr::DsrOptionRerrHeader
Header of Dsr Option Route Error.
Definition:
dsr-option-header.h:746
ns3::dsr::DsrOptionRerrUnreachHeader::SetOriginalDst
void SetOriginalDst(Ipv4Address originalDst)
Set the unreachable node ip address.
Definition:
dsr-option-header.cc:852
ns3::dsr::DsrOptionRerrUnsupportHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:922
ns3::dsr::DsrOptionRrepHeader::VectorIpv4Address_t
std::vector< Ipv4Address > VectorIpv4Address_t
type def A vector of IPv4 Address.
Definition:
dsr-option-header.h:557
ns3::dsr::DsrOptionRerrHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:656
ns3::dsr::DsrOptionRerrHeader::SetSalvage
virtual void SetSalvage(uint8_t salvage)
Set the salvage value of the packet.
Definition:
dsr-option-header.cc:700
ns3::dsr::DsrOptionPad1Header::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:135
ns3::dsr::DsrOptionSRHeader::m_salvage
uint8_t m_salvage
Number of savlage times for a packet.
Definition:
dsr-option-header.h:702
src
dsr
model
dsr-option-header.h
Generated on Sun Mar 16 2014 11:25:03 for ns-3 by
1.8.6