ESP-IDF
ot::Dhcp6::Option::GetLength() const
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (1/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::Dhcp6::Option::GetLength() const
ot::Dhcp6::Option::GetLength() const method
Returns the length of DHCPv6 option.
Syntax
Show:
Summary
Declaration
from
dhcp6.hpp:218
uint16_t
GetLength
(
void
)
const
;
Return value
The length of DHCPv6 option.
Examples
References
from
examples
Code
Location
Scope
Referrer
uint16_t
GetLength
(
void
)
const
{
return
BigEndian
::
HostSwap16
(
mLength
)
;
}
dhcp6.hpp:218
offset
+=
sizeof
(
option
)
+
option
.
GetLength
(
)
;
dhcp6_client.cpp:457
ot::Dhcp6::Client
ot::Dhcp6::Client::FindOption()
(
(
option
.
GetLength
(
)
==
(
sizeof
(
option
)
-
sizeof
(
Option
)
)
)
&&
dhcp6_client.cpp:472
ot::Dhcp6::Client::ProcessServerIdentifier()
(
option
.
GetLength
(
)
==
(
sizeof
(
option
)
-
sizeof
(
Option
)
)
)
&&
(
option
.
GetDuidType
(
)
==
kDuidLinkLayerAddress
)
&&
dhcp6_client.cpp:490
ot::Dhcp6::Client::ProcessClientIdentifier()
length
=
option
.
GetLength
(
)
-
(
sizeof
(
option
)
-
sizeof
(
Option
)
)
;
dhcp6_client.cpp:507
ot::Dhcp6::Client
ot::Dhcp6::Client::ProcessIaNa()
VerifyOrExit
(
(
option
.
GetLength
(
)
>=
sizeof
(
option
)
-
sizeof
(
Option
)
)
&&
(
option
.
GetStatusCode
(
)
==
kStatusSuccess
)
,
dhcp6_client.cpp:539
ot::Dhcp6::Client
ot::Dhcp6::Client::ProcessStatusCode()
VerifyOrExit
(
option
.
GetLength
(
)
==
sizeof
(
option
)
-
sizeof
(
Option
)
,
error
=
kErrorParse
)
;
dhcp6_client.cpp:552
ot::Dhcp6::Client::ProcessIaAddress()
aOffset
+=
sizeof
(
option
)
+
option
.
GetLength
(
)
;
dhcp6_server.cpp:237
ot::Dhcp6::Server
ot::Dhcp6::Server::FindOption()
VerifyOrExit
(
(
aClientId
.
GetLength
(
)
==
sizeof
(
aClientId
)
-
sizeof
(
Option
)
)
&&
dhcp6_server.cpp:248
ot::Dhcp6::Server::ProcessClientIdentifier()
VerifyOrExit
(
option
.
GetLength
(
)
==
sizeof
(
option
)
-
sizeof
(
Option
)
,
error
=
kErrorParse
)
;
dhcp6_server.cpp:262
ot::Dhcp6::Server
ot::Dhcp6::Server::ProcessElapsedTime()
length
=
aIaNa
.
GetLength
(
)
+
sizeof
(
Option
)
-
sizeof
(
IaNa
)
;
dhcp6_server.cpp:276
ot::Dhcp6::Server
ot::Dhcp6::Server::ProcessIaNa()
VerifyOrExit
(
option
.
GetLength
(
)
==
sizeof
(
option
)
-
sizeof
(
Option
)
,
error
=
kErrorParse
)
;
dhcp6_server.cpp:301
ot::Dhcp6::Server::ProcessIaAddress()
Call Tree
from
examples
ot::Dhcp6::Option::GetLength() const
is called by 6 functions and calls 1 function:
ot::Dhcp6::Client::FindOption()
ot::Dhcp6::Client::ProcessIaNa()
ot::Dhcp6::Client::ProcessStatusCode()
ot::Dhcp6::Server::FindOption()
ot::Dhcp6::Server::ProcessElapsedTime()
ot::Dhcp6::Server::ProcessIaNa()
All items filtered out
ot::Dhcp6::Option::GetLength() const
ot::BigEndian::HostSwap16()
All items filtered out
Data Use
from
examples
ot::Dhcp6::Option::GetLength() const
reads 1 variable and writes 5 variables:
ot::Dhcp6::Option::mLength
All items filtered out
ot::Dhcp6::Option::GetLength() const
ot::Dhcp6::Client::ProcessServerIdentifier()
ot::Dhcp6::Client::ProcessClientIdentifier()
ot::Dhcp6::Client::ProcessIaAddress()
ot::Dhcp6::Server::ProcessClientIdentifier()
ot::Dhcp6::Server::ProcessIaAddress()
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