A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
dsr-option-header.h
Go to the documentation of this file.
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
;
104
virtual
void
Print
(std::ostream &os)
const
;
109
virtual
uint32_t
GetSerializedSize
()
const
;
114
virtual
void
Serialize
(
Buffer::Iterator
start
)
const
;
120
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start
);
128
virtual
Alignment
GetAlignment
()
const
;
129
130
private
:
134
uint8_t
m_type
;
138
uint8_t
m_length
;
142
Buffer
m_data
;
143
};
144
149
class
DsrOptionPad1Header
:
public
DsrOptionHeader
150
{
151
public
:
156
static
TypeId
GetTypeId
();
161
virtual
TypeId
GetInstanceTypeId
()
const
;
165
DsrOptionPad1Header
();
169
virtual
~DsrOptionPad1Header
();
174
virtual
void
Print
(std::ostream &os)
const
;
179
virtual
uint32_t
GetSerializedSize
()
const
;
184
virtual
void
Serialize
(
Buffer::Iterator
start
)
const
;
190
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start
);
191
};
192
197
class
DsrOptionPadnHeader
:
public
DsrOptionHeader
198
{
199
public
:
204
static
TypeId
GetTypeId
();
209
virtual
TypeId
GetInstanceTypeId
()
const
;
214
DsrOptionPadnHeader
(uint32_t pad = 2);
218
virtual
~DsrOptionPadnHeader
();
223
virtual
void
Print
(std::ostream &os)
const
;
228
virtual
uint32_t
GetSerializedSize
()
const
;
233
virtual
void
Serialize
(
Buffer::Iterator
start
)
const
;
239
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start
);
240
};
241
269
class
DsrOptionRreqHeader
:
public
DsrOptionHeader
270
{
271
public
:
276
static
TypeId
GetTypeId
();
281
virtual
TypeId
GetInstanceTypeId
()
const
;
285
DsrOptionRreqHeader
();
289
virtual
~DsrOptionRreqHeader
();
294
void
SetNumberAddress
(uint8_t n);
299
Ipv4Address
GetTarget
();
304
void
SetTarget
(
Ipv4Address
target);
309
void
SetNodesAddress
(std::vector<Ipv4Address> ipv4Address);
314
std::vector<Ipv4Address>
GetNodesAddresses
()
const
;
319
uint32_t
GetNodesNumber
()
const
;
324
void
AddNodeAddress
(
Ipv4Address
ipv4);
330
void
SetNodeAddress
(uint8_t index,
Ipv4Address
addr);
336
Ipv4Address
GetNodeAddress
(uint8_t index)
const
;
341
void
SetId
(uint16_t identification);
346
uint16_t
GetId
()
const
;
351
virtual
void
Print
(std::ostream &os)
const
;
356
virtual
uint32_t
GetSerializedSize
()
const
;
361
virtual
void
Serialize
(
Buffer::Iterator
start
)
const
;
367
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start
);
372
virtual
Alignment
GetAlignment
()
const
;
373
374
private
:
378
uint16_t
m_identification
;
382
Ipv4Address
m_target
;
386
Ipv4Address
m_address
;
390
typedef
std::vector<Ipv4Address>
VectorIpv4Address_t
;
394
VectorIpv4Address_t
m_ipv4Address
;
395
};
396
422
// The Route Reply header modified for ns-3 implementation
444
class
DsrOptionRrepHeader
:
public
DsrOptionHeader
445
{
446
public
:
451
static
TypeId
GetTypeId
();
456
virtual
TypeId
GetInstanceTypeId
()
const
;
460
DsrOptionRrepHeader
();
464
virtual
~DsrOptionRrepHeader
();
469
void
SetNumberAddress
(uint8_t n);
474
void
SetNodesAddress
(std::vector<Ipv4Address> ipv4Address);
479
std::vector<Ipv4Address>
GetNodesAddress
()
const
;
485
Ipv4Address
GetTargetAddress
(std::vector<Ipv4Address> ipv4Address)
const
;
491
void
SetNodeAddress
(uint8_t index,
Ipv4Address
addr);
497
Ipv4Address
GetNodeAddress
(uint8_t index)
const
;
502
virtual
void
Print
(std::ostream &os)
const
;
507
virtual
uint32_t
GetSerializedSize
()
const
;
512
virtual
void
Serialize
(
Buffer::Iterator
start
)
const
;
518
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start
);
523
virtual
Alignment
GetAlignment
()
const
;
524
525
private
:
529
Ipv4Address
m_address
;
533
typedef
std::vector<Ipv4Address>
VectorIpv4Address_t
;
537
VectorIpv4Address_t
m_ipv4Address
;
538
};
539
565
class
DsrOptionSRHeader
:
public
DsrOptionHeader
566
{
567
public
:
572
static
TypeId
GetTypeId
();
577
virtual
TypeId
GetInstanceTypeId
()
const
;
581
DsrOptionSRHeader
();
585
virtual
~DsrOptionSRHeader
();
590
void
SetSegmentsLeft
(uint8_t segmentsLeft);
595
uint8_t
GetSegmentsLeft
()
const
;
600
void
SetNumberAddress
(uint8_t n);
605
void
SetNodesAddress
(std::vector<Ipv4Address> ipv4Address);
610
std::vector<Ipv4Address>
GetNodesAddress
()
const
;
615
uint8_t
GetNodeListSize
()
const
;
621
void
SetNodeAddress
(uint8_t index,
Ipv4Address
addr);
627
Ipv4Address
GetNodeAddress
(uint8_t index)
const
;
632
void
SetSalvage
(uint8_t salvage);
637
uint8_t
GetSalvage
()
const
;
642
virtual
void
Print
(std::ostream &os)
const
;
647
virtual
uint32_t
GetSerializedSize
()
const
;
652
virtual
void
Serialize
(
Buffer::Iterator
start
)
const
;
658
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start
);
663
virtual
Alignment
GetAlignment
()
const
;
664
670
typedef
void (*
TracedCallback
)(
const
DsrOptionSRHeader
& header);
671
672
private
:
676
Ipv4Address
m_address
;
680
uint8_t
m_segmentsLeft
;
684
uint8_t
m_salvage
;
688
typedef
std::vector<Ipv4Address>
VectorIpv4Address_t
;
692
VectorIpv4Address_t
m_ipv4Address
;
693
};
694
721
enum
ErrorType
722
{
723
NODE_UNREACHABLE
= 1,
// !< NODE_UNREACHABLE
724
FLOW_STATE_NOT_SUPPORTED
= 2,
// !< FLOW_STATE_NOT_SUPPORTED
725
OPTION_NOT_SUPPORTED
= 3,
// !< OPTION_NOT_SUPPORTED
726
};
727
728
class
DsrOptionRerrHeader
:
public
DsrOptionHeader
729
{
730
public
:
735
static
TypeId
GetTypeId
();
740
virtual
TypeId
GetInstanceTypeId
()
const
;
744
DsrOptionRerrHeader
();
748
virtual
~DsrOptionRerrHeader
();
753
void
SetErrorType
(uint8_t errorType);
758
uint8_t
GetErrorType
()
const
;
763
virtual
void
SetErrorSrc
(
Ipv4Address
errorSrcAddress);
768
virtual
Ipv4Address
GetErrorSrc
()
const
;
773
virtual
void
SetSalvage
(uint8_t salvage);
778
virtual
uint8_t
GetSalvage
()
const
;
783
virtual
void
SetErrorDst
(
Ipv4Address
errorDstAddress);
788
virtual
Ipv4Address
GetErrorDst
()
const
;
793
virtual
void
Print
(std::ostream &os)
const
;
798
virtual
uint32_t
GetSerializedSize
()
const
;
803
virtual
void
Serialize
(
Buffer::Iterator
start
)
const
;
809
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start
);
814
virtual
Alignment
GetAlignment
()
const
;
815
816
private
:
820
uint8_t
m_errorType
;
824
uint8_t
m_salvage
;
828
uint16_t
m_errorLength
;
832
Ipv4Address
m_errorSrcAddress
;
836
Ipv4Address
m_errorDstAddress
;
840
Buffer
m_errorData
;
841
};
842
862
/*
863
* \brief The type-specific info field
864
* \verbatim
865
| 0 | 1 | 2 | 3 |
866
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
867
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
868
| Unreachable Node Address |
869
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
870
\endverbatim
871
*/
872
873
class
DsrOptionRerrUnreachHeader
:
public
DsrOptionRerrHeader
874
{
875
public
:
880
static
TypeId
GetTypeId
();
885
virtual
TypeId
GetInstanceTypeId
()
const
;
889
DsrOptionRerrUnreachHeader
();
893
virtual
~DsrOptionRerrUnreachHeader
();
898
virtual
void
SetErrorSrc
(
Ipv4Address
errorSrcAddress);
903
virtual
Ipv4Address
GetErrorSrc
()
const
;
908
virtual
void
SetSalvage
(uint8_t salvage);
913
virtual
uint8_t
GetSalvage
()
const
;
918
virtual
void
SetErrorDst
(
Ipv4Address
errorDstAddress);
923
virtual
Ipv4Address
GetErrorDst
()
const
;
928
void
SetUnreachNode
(
Ipv4Address
unreachNode);
933
Ipv4Address
GetUnreachNode
()
const
;
938
void
SetOriginalDst
(
Ipv4Address
originalDst);
943
Ipv4Address
GetOriginalDst
()
const
;
948
virtual
void
Print
(std::ostream &os)
const
;
953
virtual
uint32_t
GetSerializedSize
()
const
;
958
virtual
void
Serialize
(
Buffer::Iterator
start
)
const
;
964
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start
);
969
virtual
Alignment
GetAlignment
()
const
;
970
971
private
:
975
uint8_t
m_errorType
;
979
uint8_t
m_salvage
;
983
Ipv4Address
m_errorSrcAddress
;
987
Ipv4Address
m_errorDstAddress
;
991
Ipv4Address
m_unreachNode
;
995
Ipv4Address
m_originalDst
;
996
};
997
1017
/*
1018
* \brief The type-specific info field
1019
* \unsupported option
1020
* \verbatim
1021
| 0 |
1022
0 1 2 3 4 5 6 7
1023
+-+-+-+-+-+-+-+-+
1024
|Unsupported Opt|
1025
+-+-+-+-+-+-+-+-+
1026
\endverbatim
1027
*/
1028
1029
class
DsrOptionRerrUnsupportHeader
:
public
DsrOptionRerrHeader
1030
{
1031
public
:
1036
static
TypeId
GetTypeId
();
1041
virtual
TypeId
GetInstanceTypeId
()
const
;
1045
DsrOptionRerrUnsupportHeader
();
1049
virtual
~DsrOptionRerrUnsupportHeader
();
1054
virtual
void
SetErrorSrc
(
Ipv4Address
errorSrcAddress);
1059
virtual
Ipv4Address
GetErrorSrc
()
const
;
1064
virtual
void
SetSalvage
(uint8_t salvage);
1069
virtual
uint8_t
GetSalvage
()
const
;
1074
virtual
void
SetErrorDst
(
Ipv4Address
errorDstAddress);
1079
virtual
Ipv4Address
GetErrorDst
()
const
;
1084
void
SetUnsupported
(uint16_t optionType);
1089
uint16_t
GetUnsupported
()
const
;
1094
virtual
void
Print
(std::ostream &os)
const
;
1099
virtual
uint32_t
GetSerializedSize
()
const
;
1104
virtual
void
Serialize
(
Buffer::Iterator
start
)
const
;
1110
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start
);
1115
virtual
Alignment
GetAlignment
()
const
;
1116
1117
private
:
1121
uint8_t
m_errorType
;
1125
uint8_t
m_salvage
;
1129
Ipv4Address
m_errorSrcAddress
;
1133
Ipv4Address
m_errorDstAddress
;
1137
uint16_t
m_unsupport
;
1138
};
1139
1157
class
DsrOptionAckReqHeader
:
public
DsrOptionHeader
1158
{
1159
public
:
1164
static
TypeId
GetTypeId
();
1169
virtual
TypeId
GetInstanceTypeId
()
const
;
1173
DsrOptionAckReqHeader
();
1177
virtual
~DsrOptionAckReqHeader
();
1182
void
SetAckId
(uint16_t identification);
1187
uint16_t
GetAckId
()
const
;
1192
virtual
void
Print
(std::ostream &os)
const
;
1197
virtual
uint32_t
GetSerializedSize
()
const
;
1202
virtual
void
Serialize
(
Buffer::Iterator
start
)
const
;
1208
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start
);
1213
virtual
Alignment
GetAlignment
()
const
;
1214
1215
private
:
1219
uint16_t
m_identification
;
1220
};
1221
1243
class
DsrOptionAckHeader
:
public
DsrOptionHeader
1244
{
1245
public
:
1250
static
TypeId
GetTypeId
();
1255
virtual
TypeId
GetInstanceTypeId
()
const
;
1259
DsrOptionAckHeader
();
1263
virtual
~DsrOptionAckHeader
();
1268
void
SetAckId
(uint16_t identification);
1273
uint16_t
GetAckId
()
const
;
1278
void
SetRealSrc
(
Ipv4Address
realSrcAddress);
1283
Ipv4Address
GetRealSrc
()
const
;
1288
void
SetRealDst
(
Ipv4Address
realDstAddress);
1293
Ipv4Address
GetRealDst
()
const
;
1298
virtual
void
Print
(std::ostream &os)
const
;
1303
virtual
uint32_t
GetSerializedSize
()
const
;
1308
virtual
void
Serialize
(
Buffer::Iterator
start
)
const
;
1314
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start
);
1319
virtual
Alignment
GetAlignment
()
const
;
1320
1321
private
:
1325
uint16_t
m_identification
;
1329
Ipv4Address
m_realSrcAddress
;
1333
Ipv4Address
m_realDstAddress
;
1334
};
1335
1336
static
inline
std::ostream &
operator<<
(std::ostream& os,
const
DsrOptionSRHeader
& sr)
1337
{
1338
sr.
Print
(os);
1339
return
os;
1340
}
1341
1342
}
// namespace dsr
1343
}
// namespace ns3
1344
1345
#endif
/* DSR_OPTION_HEADER_H */
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition:
buffer.h:99
ns3::Buffer
automatically resized byte buffer
Definition:
buffer.h:93
ns3::Header
Protocol header serialization and deserialization.
Definition:
header.h:43
ns3::Header::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)=0
Deserialize the object from a buffer iterator.
ns3::Ipv4Address
Ipv4 addresses are stored in host order in this class.
Definition:
ipv4-address.h:41
ns3::TracedCallback
Forward calls to a chain of Callback.
Definition:
traced-callback.h:53
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3::dsr::DsrOptionAckHeader
Acknowledgement (ACK) Message Format.
Definition:
dsr-option-header.h:1244
ns3::dsr::DsrOptionAckHeader::SetAckId
void SetAckId(uint16_t identification)
Set the Ack id number.
Definition:
dsr-option-header.cc:1135
ns3::dsr::DsrOptionAckHeader::~DsrOptionAckHeader
virtual ~DsrOptionAckHeader()
Destructor.
Definition:
dsr-option-header.cc:1131
ns3::dsr::DsrOptionAckHeader::GetAckId
uint16_t GetAckId() const
Set the Ack id number.
Definition:
dsr-option-header.cc:1140
ns3::dsr::DsrOptionAckHeader::m_identification
uint16_t m_identification
identification field
Definition:
dsr-option-header.h:1325
ns3::dsr::DsrOptionAckHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:1109
ns3::dsr::DsrOptionAckHeader::SetRealSrc
void SetRealSrc(Ipv4Address realSrcAddress)
Set Error source ip address.
Definition:
dsr-option-header.cc:1145
ns3::dsr::DsrOptionAckHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
dsr-option-header.cc:1202
ns3::dsr::DsrOptionAckHeader::SetRealDst
void SetRealDst(Ipv4Address realDstAddress)
Set Error source ip address.
Definition:
dsr-option-header.cc:1155
ns3::dsr::DsrOptionAckHeader::Print
virtual void Print(std::ostream &os) const
Print some information about the packet.
Definition:
dsr-option-header.cc:1165
ns3::dsr::DsrOptionAckHeader::m_realDstAddress
Ipv4Address m_realDstAddress
ack destination address
Definition:
dsr-option-header.h:1333
ns3::dsr::DsrOptionAckHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:1178
ns3::dsr::DsrOptionAckHeader::GetRealDst
Ipv4Address GetRealDst() const
Get Error source ip address.
Definition:
dsr-option-header.cc:1160
ns3::dsr::DsrOptionAckHeader::DsrOptionAckHeader
DsrOptionAckHeader()
Constructor.
Definition:
dsr-option-header.cc:1124
ns3::dsr::DsrOptionAckHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:1119
ns3::dsr::DsrOptionAckHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:1173
ns3::dsr::DsrOptionAckHeader::m_realSrcAddress
Ipv4Address m_realSrcAddress
ack source address
Definition:
dsr-option-header.h:1329
ns3::dsr::DsrOptionAckHeader::GetRealSrc
Ipv4Address GetRealSrc() const
Get Error source ip address.
Definition:
dsr-option-header.cc:1150
ns3::dsr::DsrOptionAckReqHeader
Acknowledgement Request (ACK_RREQ) Message Format.
Definition:
dsr-option-header.h:1158
ns3::dsr::DsrOptionAckReqHeader::Print
virtual void Print(std::ostream &os) const
Print some information about the packet.
Definition:
dsr-option-header.cc:1070
ns3::dsr::DsrOptionAckReqHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
dsr-option-header.cc:1101
ns3::dsr::DsrOptionAckReqHeader::DsrOptionAckReqHeader
DsrOptionAckReqHeader()
Constructor.
Definition:
dsr-option-header.cc:1048
ns3::dsr::DsrOptionAckReqHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:1043
ns3::dsr::DsrOptionAckReqHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:1081
ns3::dsr::DsrOptionAckReqHeader::SetAckId
void SetAckId(uint16_t identification)
Set the Ack request id number.
Definition:
dsr-option-header.cc:1060
ns3::dsr::DsrOptionAckReqHeader::m_identification
uint16_t m_identification
The identification field.
Definition:
dsr-option-header.h:1219
ns3::dsr::DsrOptionAckReqHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:1076
ns3::dsr::DsrOptionAckReqHeader::GetAckId
uint16_t GetAckId() const
Set the Ack request id number.
Definition:
dsr-option-header.cc:1065
ns3::dsr::DsrOptionAckReqHeader::~DsrOptionAckReqHeader
virtual ~DsrOptionAckReqHeader()
Destructor.
Definition:
dsr-option-header.cc:1056
ns3::dsr::DsrOptionAckReqHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:1033
ns3::dsr::DsrOptionHeader
Header for Dsr Options.
Definition:
dsr-option-header.h:51
ns3::dsr::DsrOptionHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
dsr-option-header.cc:130
ns3::dsr::DsrOptionHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:49
ns3::dsr::DsrOptionHeader::m_data
Buffer m_data
The anonymous data of this option.
Definition:
dsr-option-header.h:142
ns3::dsr::DsrOptionHeader::GetType
uint8_t GetType() const
Get the type of the option.
Definition:
dsr-option-header.cc:79
ns3::dsr::DsrOptionHeader::~DsrOptionHeader
virtual ~DsrOptionHeader()
Destructor.
Definition:
dsr-option-header.cc:70
ns3::dsr::DsrOptionHeader::SetType
void SetType(uint8_t type)
Set the type of the option.
Definition:
dsr-option-header.cc:74
ns3::dsr::DsrOptionHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:104
ns3::dsr::DsrOptionHeader::m_length
uint8_t m_length
The option length.
Definition:
dsr-option-header.h:138
ns3::dsr::DsrOptionHeader::m_type
uint8_t m_type
The type of the option.
Definition:
dsr-option-header.h:134
ns3::dsr::DsrOptionHeader::Print
virtual void Print(std::ostream &os) const
Print some information about the packet.
Definition:
dsr-option-header.cc:94
ns3::dsr::DsrOptionHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:99
ns3::dsr::DsrOptionHeader::DsrOptionHeader
DsrOptionHeader()
Constructor.
Definition:
dsr-option-header.cc:64
ns3::dsr::DsrOptionHeader::SetLength
void SetLength(uint8_t length)
Set the option length.
Definition:
dsr-option-header.cc:84
ns3::dsr::DsrOptionHeader::GetLength
uint8_t GetLength() const
Get the option length.
Definition:
dsr-option-header.cc:89
ns3::dsr::DsrOptionHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:59
ns3::dsr::DsrOptionPad1Header
Header of Dsr Option Pad1.
Definition:
dsr-option-header.h:150
ns3::dsr::DsrOptionPad1Header::~DsrOptionPad1Header
virtual ~DsrOptionPad1Header()
Destructor.
Definition:
dsr-option-header.cc:158
ns3::dsr::DsrOptionPad1Header::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:148
ns3::dsr::DsrOptionPad1Header::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:172
ns3::dsr::DsrOptionPad1Header::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:167
ns3::dsr::DsrOptionPad1Header::Print
virtual void Print(std::ostream &os) const
Print some information about the packet.
Definition:
dsr-option-header.cc:162
ns3::dsr::DsrOptionPad1Header::DsrOptionPad1Header
DsrOptionPad1Header()
Constructor.
Definition:
dsr-option-header.cc:153
ns3::dsr::DsrOptionPad1Header::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:138
ns3::dsr::DsrOptionPadnHeader
Header of Dsr Option Padn.
Definition:
dsr-option-header.h:198
ns3::dsr::DsrOptionPadnHeader::DsrOptionPadnHeader
DsrOptionPadnHeader(uint32_t pad=2)
Constructor.
Definition:
dsr-option-header.cc:205
ns3::dsr::DsrOptionPadnHeader::Print
virtual void Print(std::ostream &os) const
Print some information about the packet.
Definition:
dsr-option-header.cc:216
ns3::dsr::DsrOptionPadnHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:221
ns3::dsr::DsrOptionPadnHeader::~DsrOptionPadnHeader
virtual ~DsrOptionPadnHeader()
Destructor.
Definition:
dsr-option-header.cc:212
ns3::dsr::DsrOptionPadnHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:226
ns3::dsr::DsrOptionPadnHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:190
ns3::dsr::DsrOptionPadnHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:200
ns3::dsr::DsrOptionRerrHeader
Header of Dsr Option Route Error.
Definition:
dsr-option-header.h:729
ns3::dsr::DsrOptionRerrHeader::GetErrorType
uint8_t GetErrorType() const
Get the route error type.
Definition:
dsr-option-header.cc:697
ns3::dsr::DsrOptionRerrHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:745
ns3::dsr::DsrOptionRerrHeader::Print
virtual void Print(std::ostream &os) const
Print some information about the packet.
Definition:
dsr-option-header.cc:732
ns3::dsr::DsrOptionRerrHeader::m_errorData
Buffer m_errorData
The anonymous data of this option.
Definition:
dsr-option-header.h:840
ns3::dsr::DsrOptionRerrHeader::SetSalvage
virtual void SetSalvage(uint8_t salvage)
Set the salvage value of the packet.
Definition:
dsr-option-header.cc:702
ns3::dsr::DsrOptionRerrHeader::GetErrorSrc
virtual Ipv4Address GetErrorSrc() const
Get the route error source address.
Definition:
dsr-option-header.cc:717
ns3::dsr::DsrOptionRerrHeader::SetErrorType
void SetErrorType(uint8_t errorType)
Set the route error type.
Definition:
dsr-option-header.cc:692
ns3::dsr::DsrOptionRerrHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:674
ns3::dsr::DsrOptionRerrHeader::m_errorSrcAddress
Ipv4Address m_errorSrcAddress
The error source address.
Definition:
dsr-option-header.h:832
ns3::dsr::DsrOptionRerrHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:664
ns3::dsr::DsrOptionRerrHeader::m_salvage
uint8_t m_salvage
The salavage field.
Definition:
dsr-option-header.h:824
ns3::dsr::DsrOptionRerrHeader::DsrOptionRerrHeader
DsrOptionRerrHeader()
Constructor.
Definition:
dsr-option-header.cc:679
ns3::dsr::DsrOptionRerrHeader::~DsrOptionRerrHeader
virtual ~DsrOptionRerrHeader()
Destructor.
Definition:
dsr-option-header.cc:688
ns3::dsr::DsrOptionRerrHeader::SetErrorDst
virtual void SetErrorDst(Ipv4Address errorDstAddress)
Set the error destination ip address.
Definition:
dsr-option-header.cc:722
ns3::dsr::DsrOptionRerrHeader::GetErrorDst
virtual Ipv4Address GetErrorDst() const
Get the error destination ip address.
Definition:
dsr-option-header.cc:727
ns3::dsr::DsrOptionRerrHeader::m_errorDstAddress
Ipv4Address m_errorDstAddress
The error destination address.
Definition:
dsr-option-header.h:836
ns3::dsr::DsrOptionRerrHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:740
ns3::dsr::DsrOptionRerrHeader::m_errorLength
uint16_t m_errorLength
The specific error message length.
Definition:
dsr-option-header.h:828
ns3::dsr::DsrOptionRerrHeader::m_errorType
uint8_t m_errorType
The error type or route error option.
Definition:
dsr-option-header.h:820
ns3::dsr::DsrOptionRerrHeader::GetSalvage
virtual uint8_t GetSalvage() const
Get the salvage value of the packet.
Definition:
dsr-option-header.cc:707
ns3::dsr::DsrOptionRerrHeader::SetErrorSrc
virtual void SetErrorSrc(Ipv4Address errorSrcAddress)
Set the route error source address.
Definition:
dsr-option-header.cc:712
ns3::dsr::DsrOptionRerrHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
dsr-option-header.cc:779
ns3::dsr::DsrOptionRerrUnreachHeader
Route Error (RERR) Unreachable node address option Message Format.
Definition:
dsr-option-header.h:874
ns3::dsr::DsrOptionRerrUnreachHeader::SetOriginalDst
void SetOriginalDst(Ipv4Address originalDst)
Set the unreachable node ip address.
Definition:
dsr-option-header.cc:854
ns3::dsr::DsrOptionRerrUnreachHeader::SetErrorSrc
virtual void SetErrorSrc(Ipv4Address errorSrcAddress)
Set the route error source address.
Definition:
dsr-option-header.cc:824
ns3::dsr::DsrOptionRerrUnreachHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:787
ns3::dsr::DsrOptionRerrUnreachHeader::Print
virtual void Print(std::ostream &os) const
Print some information about the packet.
Definition:
dsr-option-header.cc:864
ns3::dsr::DsrOptionRerrUnreachHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
dsr-option-header.cc:907
ns3::dsr::DsrOptionRerrUnreachHeader::m_unreachNode
Ipv4Address m_unreachNode
The unreachable node address.
Definition:
dsr-option-header.h:991
ns3::dsr::DsrOptionRerrUnreachHeader::GetOriginalDst
Ipv4Address GetOriginalDst() const
Get the unreachable node ip address.
Definition:
dsr-option-header.cc:859
ns3::dsr::DsrOptionRerrUnreachHeader::DsrOptionRerrUnreachHeader
DsrOptionRerrUnreachHeader()
Constructor.
Definition:
dsr-option-header.cc:802
ns3::dsr::DsrOptionRerrUnreachHeader::SetUnreachNode
void SetUnreachNode(Ipv4Address unreachNode)
Set the unreachable node ip address.
Definition:
dsr-option-header.cc:844
ns3::dsr::DsrOptionRerrUnreachHeader::SetErrorDst
virtual void SetErrorDst(Ipv4Address errorDstAddress)
Set the error destination ip address.
Definition:
dsr-option-header.cc:834
ns3::dsr::DsrOptionRerrUnreachHeader::GetErrorSrc
virtual Ipv4Address GetErrorSrc() const
Get the route error source address.
Definition:
dsr-option-header.cc:829
ns3::dsr::DsrOptionRerrUnreachHeader::~DsrOptionRerrUnreachHeader
virtual ~DsrOptionRerrUnreachHeader()
Destructor.
Definition:
dsr-option-header.cc:810
ns3::dsr::DsrOptionRerrUnreachHeader::GetSalvage
virtual uint8_t GetSalvage() const
Get the salvage value of the packet.
Definition:
dsr-option-header.cc:819
ns3::dsr::DsrOptionRerrUnreachHeader::m_errorType
uint8_t m_errorType
The error type or route error option.
Definition:
dsr-option-header.h:975
ns3::dsr::DsrOptionRerrUnreachHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:877
ns3::dsr::DsrOptionRerrUnreachHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:872
ns3::dsr::DsrOptionRerrUnreachHeader::SetSalvage
virtual void SetSalvage(uint8_t salvage)
Set the salvage value of the packet.
Definition:
dsr-option-header.cc:814
ns3::dsr::DsrOptionRerrUnreachHeader::m_errorSrcAddress
Ipv4Address m_errorSrcAddress
The error source address.
Definition:
dsr-option-header.h:983
ns3::dsr::DsrOptionRerrUnreachHeader::m_salvage
uint8_t m_salvage
The salavage field.
Definition:
dsr-option-header.h:979
ns3::dsr::DsrOptionRerrUnreachHeader::m_originalDst
Ipv4Address m_originalDst
The original destination address.
Definition:
dsr-option-header.h:995
ns3::dsr::DsrOptionRerrUnreachHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:797
ns3::dsr::DsrOptionRerrUnreachHeader::m_errorDstAddress
Ipv4Address m_errorDstAddress
The error destination address.
Definition:
dsr-option-header.h:987
ns3::dsr::DsrOptionRerrUnreachHeader::GetErrorDst
virtual Ipv4Address GetErrorDst() const
Get the error destination ip address.
Definition:
dsr-option-header.cc:839
ns3::dsr::DsrOptionRerrUnreachHeader::GetUnreachNode
Ipv4Address GetUnreachNode() const
Get the unreachable node ip address.
Definition:
dsr-option-header.cc:849
ns3::dsr::DsrOptionRerrUnsupportHeader
Route Error (RERR) Unsupported option Message Format.
Definition:
dsr-option-header.h:1030
ns3::dsr::DsrOptionRerrUnsupportHeader::GetSalvage
virtual uint8_t GetSalvage() const
Get the salvage value of the packet.
Definition:
dsr-option-header.cc:947
ns3::dsr::DsrOptionRerrUnsupportHeader::~DsrOptionRerrUnsupportHeader
virtual ~DsrOptionRerrUnsupportHeader()
Destructor.
Definition:
dsr-option-header.cc:938
ns3::dsr::DsrOptionRerrUnsupportHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:915
ns3::dsr::DsrOptionRerrUnsupportHeader::SetSalvage
virtual void SetSalvage(uint8_t salvage)
Set the salvage value of the packet.
Definition:
dsr-option-header.cc:942
ns3::dsr::DsrOptionRerrUnsupportHeader::SetUnsupported
void SetUnsupported(uint16_t optionType)
Set the unsupported option type value.
Definition:
dsr-option-header.cc:972
ns3::dsr::DsrOptionRerrUnsupportHeader::m_unsupport
uint16_t m_unsupport
The unsupported option.
Definition:
dsr-option-header.h:1137
ns3::dsr::DsrOptionRerrUnsupportHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:991
ns3::dsr::DsrOptionRerrUnsupportHeader::m_errorDstAddress
Ipv4Address m_errorDstAddress
The error destination address.
Definition:
dsr-option-header.h:1133
ns3::dsr::DsrOptionRerrUnsupportHeader::GetErrorDst
virtual Ipv4Address GetErrorDst() const
Get the error destination ip address.
Definition:
dsr-option-header.cc:967
ns3::dsr::DsrOptionRerrUnsupportHeader::m_errorType
uint8_t m_errorType
The error type or route error option.
Definition:
dsr-option-header.h:1121
ns3::dsr::DsrOptionRerrUnsupportHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
dsr-option-header.cc:1025
ns3::dsr::DsrOptionRerrUnsupportHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:925
ns3::dsr::DsrOptionRerrUnsupportHeader::GetUnsupported
uint16_t GetUnsupported() const
Get the unsupported option type value.
Definition:
dsr-option-header.cc:977
ns3::dsr::DsrOptionRerrUnsupportHeader::Print
virtual void Print(std::ostream &os) const
Print some information about the packet.
Definition:
dsr-option-header.cc:982
ns3::dsr::DsrOptionRerrUnsupportHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:996
ns3::dsr::DsrOptionRerrUnsupportHeader::SetErrorSrc
virtual void SetErrorSrc(Ipv4Address errorSrcAddress)
Set the route error source address.
Definition:
dsr-option-header.cc:952
ns3::dsr::DsrOptionRerrUnsupportHeader::SetErrorDst
virtual void SetErrorDst(Ipv4Address errorDstAddress)
Set the error destination ip address.
Definition:
dsr-option-header.cc:962
ns3::dsr::DsrOptionRerrUnsupportHeader::GetErrorSrc
virtual Ipv4Address GetErrorSrc() const
Get the route error source address.
Definition:
dsr-option-header.cc:957
ns3::dsr::DsrOptionRerrUnsupportHeader::m_salvage
uint8_t m_salvage
The salavage field.
Definition:
dsr-option-header.h:1125
ns3::dsr::DsrOptionRerrUnsupportHeader::DsrOptionRerrUnsupportHeader
DsrOptionRerrUnsupportHeader()
Constructor.
Definition:
dsr-option-header.cc:930
ns3::dsr::DsrOptionRerrUnsupportHeader::m_errorSrcAddress
Ipv4Address m_errorSrcAddress
The error source address.
Definition:
dsr-option-header.h:1129
ns3::dsr::DsrOptionRrepHeader
Route Reply (RREP) Message Format.
Definition:
dsr-option-header.h:445
ns3::dsr::DsrOptionRrepHeader::GetTargetAddress
Ipv4Address GetTargetAddress(std::vector< Ipv4Address > ipv4Address) const
Get the target node Ip address.
Definition:
dsr-option-header.cc:452
ns3::dsr::DsrOptionRrepHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:474
ns3::dsr::DsrOptionRrepHeader::DsrOptionRrepHeader
DsrOptionRrepHeader()
Constructor.
Definition:
dsr-option-header.cc:414
ns3::dsr::DsrOptionRrepHeader::Print
virtual void Print(std::ostream &os) const
Print some information about the packet.
Definition:
dsr-option-header.cc:457
ns3::dsr::DsrOptionRrepHeader::m_address
Ipv4Address m_address
The Ip address to write to when deserialize the packet.
Definition:
dsr-option-header.h:529
ns3::dsr::DsrOptionRrepHeader::SetNodeAddress
void SetNodeAddress(uint8_t index, Ipv4Address addr)
Set a Node IPv4 Address.
Definition:
dsr-option-header.cc:442
ns3::dsr::DsrOptionRrepHeader::SetNumberAddress
void SetNumberAddress(uint8_t n)
Set the number of ipv4 address.
Definition:
dsr-option-header.cc:425
ns3::dsr::DsrOptionRrepHeader::GetNodesAddress
std::vector< Ipv4Address > GetNodesAddress() const
Get the vector of ipv4 address.
Definition:
dsr-option-header.cc:437
ns3::dsr::DsrOptionRrepHeader::m_ipv4Address
VectorIpv4Address_t m_ipv4Address
The vector of Nodes' IPv4 Address.
Definition:
dsr-option-header.h:537
ns3::dsr::DsrOptionRrepHeader::GetNodeAddress
Ipv4Address GetNodeAddress(uint8_t index) const
Get a Node IPv4 Address.
Definition:
dsr-option-header.cc:447
ns3::dsr::DsrOptionRrepHeader::VectorIpv4Address_t
std::vector< Ipv4Address > VectorIpv4Address_t
type def A vector of IPv4 Address.
Definition:
dsr-option-header.h:533
ns3::dsr::DsrOptionRrepHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:399
ns3::dsr::DsrOptionRrepHeader::~DsrOptionRrepHeader
virtual ~DsrOptionRrepHeader()
Destructor.
Definition:
dsr-option-header.cc:421
ns3::dsr::DsrOptionRrepHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:409
ns3::dsr::DsrOptionRrepHeader::SetNodesAddress
void SetNodesAddress(std::vector< Ipv4Address > ipv4Address)
Set the vector of ipv4 address.
Definition:
dsr-option-header.cc:431
ns3::dsr::DsrOptionRrepHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
dsr-option-header.cc:513
ns3::dsr::DsrOptionRrepHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:469
ns3::dsr::DsrOptionRreqHeader
Route Request (RREQ) Message Format.
Definition:
dsr-option-header.h:270
ns3::dsr::DsrOptionRreqHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:251
ns3::dsr::DsrOptionRreqHeader::SetNodesAddress
void SetNodesAddress(std::vector< Ipv4Address > ipv4Address)
Set the vector of ipv4 address.
Definition:
dsr-option-header.cc:299
ns3::dsr::DsrOptionRreqHeader::m_target
Ipv4Address m_target
Ipv4 address of target node.
Definition:
dsr-option-header.h:382
ns3::dsr::DsrOptionRreqHeader::SetNumberAddress
void SetNumberAddress(uint8_t n)
Set the number of ipv4 address.
Definition:
dsr-option-header.cc:277
ns3::dsr::DsrOptionRreqHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:347
ns3::dsr::DsrOptionRreqHeader::m_address
Ipv4Address m_address
Ipv4 address to write when desearizing the packet.
Definition:
dsr-option-header.h:386
ns3::dsr::DsrOptionRreqHeader::SetNodeAddress
void SetNodeAddress(uint8_t index, Ipv4Address addr)
Set a Node IPv4 Address.
Definition:
dsr-option-header.cc:315
ns3::dsr::DsrOptionRreqHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:261
ns3::dsr::DsrOptionRreqHeader::~DsrOptionRreqHeader
virtual ~DsrOptionRreqHeader()
Destructor.
Definition:
dsr-option-header.cc:273
ns3::dsr::DsrOptionRreqHeader::GetNodeAddress
Ipv4Address GetNodeAddress(uint8_t index) const
Get a Node IPv4 Address.
Definition:
dsr-option-header.cc:320
ns3::dsr::DsrOptionRreqHeader::VectorIpv4Address_t
std::vector< Ipv4Address > VectorIpv4Address_t
A vector of IPv4 Address.
Definition:
dsr-option-header.h:390
ns3::dsr::DsrOptionRreqHeader::m_identification
uint16_t m_identification
Identifier of the packet.
Definition:
dsr-option-header.h:378
ns3::dsr::DsrOptionRreqHeader::SetTarget
void SetTarget(Ipv4Address target)
Set the target ipv4 address.
Definition:
dsr-option-header.cc:288
ns3::dsr::DsrOptionRreqHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
dsr-option-header.cc:391
ns3::dsr::DsrOptionRreqHeader::Print
virtual void Print(std::ostream &os) const
Print some information about the packet.
Definition:
dsr-option-header.cc:335
ns3::dsr::DsrOptionRreqHeader::GetTarget
Ipv4Address GetTarget()
Get the target ipv4 address.
Definition:
dsr-option-header.cc:283
ns3::dsr::DsrOptionRreqHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:352
ns3::dsr::DsrOptionRreqHeader::DsrOptionRreqHeader
DsrOptionRreqHeader()
Constructor.
Definition:
dsr-option-header.cc:266
ns3::dsr::DsrOptionRreqHeader::GetNodesAddresses
std::vector< Ipv4Address > GetNodesAddresses() const
Get the vector of ipv4 address.
Definition:
dsr-option-header.cc:305
ns3::dsr::DsrOptionRreqHeader::m_ipv4Address
VectorIpv4Address_t m_ipv4Address
The vector of Nodes' IPv4 Address.
Definition:
dsr-option-header.h:394
ns3::dsr::DsrOptionRreqHeader::GetNodesNumber
uint32_t GetNodesNumber() const
Get the number of nodes.
Definition:
dsr-option-header.cc:310
ns3::dsr::DsrOptionRreqHeader::AddNodeAddress
void AddNodeAddress(Ipv4Address ipv4)
Add one node address.
Definition:
dsr-option-header.cc:293
ns3::dsr::DsrOptionRreqHeader::GetId
uint16_t GetId() const
Set the request id number.
Definition:
dsr-option-header.cc:330
ns3::dsr::DsrOptionRreqHeader::SetId
void SetId(uint16_t identification)
Set the request id number.
Definition:
dsr-option-header.cc:325
ns3::dsr::DsrOptionSRHeader
Source Route (SR) Message Format.
Definition:
dsr-option-header.h:566
ns3::dsr::DsrOptionSRHeader::GetNodeAddress
Ipv4Address GetNodeAddress(uint8_t index) const
Get a Node IPv4 Address.
Definition:
dsr-option-header.cc:590
ns3::dsr::DsrOptionSRHeader::~DsrOptionSRHeader
virtual ~DsrOptionSRHeader()
Destructor.
Definition:
dsr-option-header.cc:544
ns3::dsr::DsrOptionSRHeader::m_segmentsLeft
uint8_t m_segmentsLeft
Number of left segments.
Definition:
dsr-option-header.h:680
ns3::dsr::DsrOptionSRHeader::GetNodesAddress
std::vector< Ipv4Address > GetNodesAddress() const
Get the vector of ipv4 address.
Definition:
dsr-option-header.cc:580
ns3::dsr::DsrOptionSRHeader::m_address
Ipv4Address m_address
The ip address header deserilize to.
Definition:
dsr-option-header.h:676
ns3::dsr::DsrOptionSRHeader::SetNumberAddress
void SetNumberAddress(uint8_t n)
Set the number of ipv4 address.
Definition:
dsr-option-header.cc:568
ns3::dsr::DsrOptionSRHeader::GetTypeId
static TypeId GetTypeId()
Get the type identificator.
Definition:
dsr-option-header.cc:521
ns3::dsr::DsrOptionSRHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Get the serialized size of the packet.
Definition:
dsr-option-header.cc:612
ns3::dsr::DsrOptionSRHeader::SetSalvage
void SetSalvage(uint8_t salvage)
Set the salvage value for a packet.
Definition:
dsr-option-header.cc:558
ns3::dsr::DsrOptionSRHeader::m_ipv4Address
VectorIpv4Address_t m_ipv4Address
The vector of Nodes' IPv4 Address.
Definition:
dsr-option-header.h:692
ns3::dsr::DsrOptionSRHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Definition:
dsr-option-header.cc:531
ns3::dsr::DsrOptionSRHeader::SetNodeAddress
void SetNodeAddress(uint8_t index, Ipv4Address addr)
Set a Node IPv4 Address.
Definition:
dsr-option-header.cc:585
ns3::dsr::DsrOptionSRHeader::SetSegmentsLeft
void SetSegmentsLeft(uint8_t segmentsLeft)
Set the number of segments left to send.
Definition:
dsr-option-header.cc:548
ns3::dsr::DsrOptionSRHeader::VectorIpv4Address_t
std::vector< Ipv4Address > VectorIpv4Address_t
A vector of IPv4 Address.
Definition:
dsr-option-header.h:688
ns3::dsr::DsrOptionSRHeader::GetSalvage
uint8_t GetSalvage() const
Get the salvage value for a packet.
Definition:
dsr-option-header.cc:563
ns3::dsr::DsrOptionSRHeader::GetAlignment
virtual Alignment GetAlignment() const
Get the Alignment requirement of this option header.
Definition:
dsr-option-header.cc:656
ns3::dsr::DsrOptionSRHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Definition:
dsr-option-header.cc:617
ns3::dsr::DsrOptionSRHeader::GetNodeListSize
uint8_t GetNodeListSize() const
Get the node list size which is the number of ip address of the route.
Definition:
dsr-option-header.cc:595
ns3::dsr::DsrOptionSRHeader::m_salvage
uint8_t m_salvage
Number of savlage times for a packet.
Definition:
dsr-option-header.h:684
ns3::dsr::DsrOptionSRHeader::DsrOptionSRHeader
DsrOptionSRHeader()
Constructor.
Definition:
dsr-option-header.cc:536
ns3::dsr::DsrOptionSRHeader::Print
virtual void Print(std::ostream &os) const
Print some information about the packet.
Definition:
dsr-option-header.cc:600
ns3::dsr::DsrOptionSRHeader::SetNodesAddress
void SetNodesAddress(std::vector< Ipv4Address > ipv4Address)
Set the vector of ipv4 address.
Definition:
dsr-option-header.cc:574
ns3::dsr::DsrOptionSRHeader::GetSegmentsLeft
uint8_t GetSegmentsLeft() const
Get the number of segments left to send.
Definition:
dsr-option-header.cc:553
ns3::dsr::ErrorType
ErrorType
Route Error (RERR) Message Format.
Definition:
dsr-option-header.h:722
ns3::dsr::FLOW_STATE_NOT_SUPPORTED
@ FLOW_STATE_NOT_SUPPORTED
Definition:
dsr-option-header.h:724
ns3::dsr::NODE_UNREACHABLE
@ NODE_UNREACHABLE
Definition:
dsr-option-header.h:723
ns3::dsr::OPTION_NOT_SUPPORTED
@ OPTION_NOT_SUPPORTED
Definition:
dsr-option-header.h:725
ns3::TracedValueCallback::Time
void(* Time)(Time oldValue, Time newValue)
TracedValue callback signature for Time.
Definition:
nstime.h:793
ns3::dsr::operator<<
static std::ostream & operator<<(std::ostream &os, const DsrRoutingHeader &dsr)
Definition:
dsr-fs-header.h:321
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
visualizer.core.start
def start()
Definition:
core.py:1853
ns3::dsr::DsrOptionHeader::Alignment
represents the alignment requirements of an option header
Definition:
dsr-option-header.h:58
ns3::dsr::DsrOptionHeader::Alignment::factor
uint8_t factor
Factor.
Definition:
dsr-option-header.h:59
ns3::dsr::DsrOptionHeader::Alignment::offset
uint8_t offset
Offset.
Definition:
dsr-option-header.h:60
src
dsr
model
dsr-option-header.h
Generated on Tue Feb 6 2024 19:21:17 for ns-3 by
1.9.1