ESP-IDF
ot::Ip6::Header::GetPayloadLength() const
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (3/5)...
Files
loading (3/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
ot::Ip6::Header::GetPayloadLength() const
ot::Ip6::Header::GetPayloadLength() const method
Returns the IPv6 Payload Length value.
Syntax
Show:
Summary
Declaration
from
ip6_headers.hpp:215
uint16_t
GetPayloadLength
(
void
)
const
;
Return value
The IPv6 Payload Length value.
Examples
References
from
examples
Code
Location
Scope
Referrer
uint16_t
GetPayloadLength
(
void
)
const
{
return
BigEndian
::
HostSwap16
(
mPayloadLength
)
;
}
ip6_headers.hpp:215
VerifyOrExit
(
sizeof
(
Header
)
+
header
->
GetPayloadLength
(
)
==
aDataLength
)
;
ip6.cpp:90
ot::Ip6::Ip6
ot::Ip6::Ip6::NewMessageFromData()
aHeader
.
SetPayloadLength
(
aHeader
.
GetPayloadLength
(
)
+
sizeof
(
hbhHeader
)
+
sizeof
(
mplOption
)
)
;
ip6.cpp:181
ot::Ip6::Ip6
ot::Ip6::Ip6::AddMplOption()
tunnelHeader
.
SetPayloadLength
(
aHeader
.
GetPayloadLength
(
)
+
sizeof
(
tunnelHeader
)
)
;
ip6.cpp:214
ot::Ip6::Ip6
ot::Ip6::Ip6::PrepareMulticastToLargerThanRealmLocal()
VerifyOrExit
(
hbhSize
<=
aHeader
.
GetPayloadLength
(
)
,
error
=
kErrorParse
)
;
ip6.cpp:255
ot::Ip6::Ip6
ot::Ip6::Ip6::InsertMplOption()
aHeader
.
SetPayloadLength
(
aHeader
.
GetPayloadLength
(
)
+
ExtensionHeader
::
kLengthUnitSize
)
;
ip6.cpp:277
ot::Ip6::Ip6
ot::Ip6::Ip6::InsertMplOption()
ip6Header
.
SetPayloadLength
(
ip6Header
.
GetPayloadLength
(
)
-
ExtensionHeader
::
kLengthUnitSize
)
;
ip6.cpp:384
ot::Ip6::Ip6
ot::Ip6::Ip6::RemoveMplOption()
VerifyOrExit
(
sizeof
(
Header
)
+
GetPayloadLength
(
)
==
aMessage
.
GetLength
(
)
)
;
ip6_headers.cpp:50
ot::Ip6::Header
ot::Ip6::Header::ParseFrom()
return
IsVersion6
(
)
&&
(
(
sizeof
(
Header
)
+
GetPayloadLength
(
)
)
<=
kMaxLength
)
;
ip6_headers.cpp:66
ot::Ip6::Header
ot::Ip6::Header::IsValid() const
Call Tree
from
examples
ot::Ip6::Header::GetPayloadLength() const
is called by 7 functions and calls 1 function:
ot::Ip6::Ip6::NewMessageFromData()
ot::Ip6::Ip6::AddMplOption()
ot::Ip6::Ip6::PrepareMulticastToLargerThanRealmLocal()
ot::Ip6::Ip6::InsertMplOption()
ot::Ip6::Ip6::RemoveMplOption()
ot::Ip6::Header::ParseFrom()
ot::Ip6::Header::IsValid() const
All items filtered out
ot::Ip6::Header::GetPayloadLength() const
ot::BigEndian::HostSwap16()
All items filtered out
Data Use
from
examples
ot::Ip6::Header::GetPayloadLength() const
reads 1 variable:
ot::Ip6::Header::mPayloadLength
All items filtered out
ot::Ip6::Header::GetPayloadLength() const
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out