ESP-IDF
ot::Dhcp6::Option
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (1/5)...
Summary
Syntax
Methods
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
ot::Dhcp6::Option
ot::Dhcp6::Option class
Syntax
Show:
Summary
Declaration
from
dhcp6.hpp:187
class
Option
{
public
:
void
Init
(
void
)
{
mCode
=
0
;
mLength
=
0
;
}
Code
GetCode
(
void
)
const
{
return
static_cast
<
Code
>
(
BigEndian
::
HostSwap16
(
mCode
)
)
;
}
void
SetCode
(
Code
aCode
)
{
mCode
=
BigEndian
::
HostSwap16
(
static_cast
<
uint16_t
>
(
aCode
)
)
;
}
uint16_t
GetLength
(
void
)
const
{
return
BigEndian
::
HostSwap16
(
mLength
)
;
}
void
SetLength
(
uint16_t
aLength
)
{
mLength
=
BigEndian
::
HostSwap16
(
aLength
)
;
}
private
:
uint16_t
mCode
;
uint16_t
mLength
;
}
;
Fields
Field
Declared as
ot::Dhcp6::Option::mCode
uint16_t
ot::Dhcp6::Option::mLength
uint16_t
Methods
Init()
Initializes the DHCPv6 option to all zeros.
GetCode() const
Returns the DHCPv6 option code.
SetCode()
Sets the DHCPv6 option code.
GetLength() const
Returns the length of DHCPv6 option.
SetLength()
Sets the length of DHCPv6 option.
Examples
References
from
examples
Code
Location
Scope
Referrer
class
Option
dhcp6.hpp:187
class
ClientIdentifier
:
public
Option
dhcp6.hpp:243
ot::Dhcp6::ClientIdentifier
SetLength
(
sizeof
(
*
this
)
-
sizeof
(
Option
)
)
;
dhcp6.hpp:252
ot::Dhcp6::ClientIdentifier::Init()
class
ServerIdentifier
:
public
Option
dhcp6.hpp:310
ot::Dhcp6::ServerIdentifier
SetLength
(
sizeof
(
*
this
)
-
sizeof
(
Option
)
)
;
dhcp6.hpp:319
ot::Dhcp6::ServerIdentifier::Init()
class
IaNa
:
public
Option
dhcp6.hpp:380
ot::Dhcp6::IaNa
SetLength
(
sizeof
(
*
this
)
-
sizeof
(
Option
)
)
;
dhcp6.hpp:392
ot::Dhcp6::IaNa::Init()
class
IaAddress
:
public
Option
dhcp6.hpp:447
ot::Dhcp6::IaAddress
SetLength
(
sizeof
(
*
this
)
-
sizeof
(
Option
)
)
;
dhcp6.hpp:459
ot::Dhcp6::IaAddress::Init()
class
ElapsedTime
:
public
Option
dhcp6.hpp:524
ot::Dhcp6::ElapsedTime
SetLength
(
sizeof
(
*
this
)
-
sizeof
(
Option
)
)
;
dhcp6.hpp:533
ot::Dhcp6::ElapsedTime::Init()
class
StatusCode
:
public
Option
dhcp6.hpp:575
ot::Dhcp6::StatusCode
SetLength
(
sizeof
(
*
this
)
-
sizeof
(
Option
)
)
;
dhcp6.hpp:584
ot::Dhcp6::StatusCode::Init()
class
RapidCommit
:
public
Option
dhcp6.hpp:609
ot::Dhcp6::RapidCommit
SetLength
(
sizeof
(
*
this
)
-
sizeof
(
Option
)
)
;
dhcp6.hpp:618
ot::Dhcp6::RapidCommit::Init()
length
=
sizeof
(
IaNa
)
+
sizeof
(
IaAddress
)
*
count
-
sizeof
(
Option
)
;
dhcp6_client.cpp:344
ot::Dhcp6::Client::AppendIaNa()
Option
option
;
dhcp6_client.cpp:448
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::ProcessIaNa()
VerifyOrExit
(
(
option
.
GetLength
(
)
>=
sizeof
(
option
)
-
sizeof
(
Option
)
)
&&
(
option
.
GetStatusCode
(
)
==
kStatusSuccess
)
,
dhcp6_client.cpp:539
ot::Dhcp6::Client::ProcessStatusCode()
VerifyOrExit
(
option
.
GetLength
(
)
==
sizeof
(
option
)
-
sizeof
(
Option
)
,
error
=
kErrorParse
)
;
dhcp6_client.cpp:552
ot::Dhcp6::Client::ProcessIaAddress()
Option
option
;
dhcp6_server.cpp:228
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::ProcessElapsedTime()
length
=
aIaNa
.
GetLength
(
)
+
sizeof
(
Option
)
-
sizeof
(
IaNa
)
;
dhcp6_server.cpp:276
ot::Dhcp6::Server::ProcessIaNa()
VerifyOrExit
(
option
.
GetLength
(
)
==
sizeof
(
option
)
-
sizeof
(
Option
)
,
error
=
kErrorParse
)
;
dhcp6_server.cpp:301
ot::Dhcp6::Server::ProcessIaAddress()
length
+=
sizeof
(
IaNa
)
+
sizeof
(
StatusCode
)
-
sizeof
(
Option
)
;
dhcp6_server.cpp:397
ot::Dhcp6::Server::AppendIaNa()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
ot::Dhcp6::Option
inherits 7 classess:
ot::Dhcp6::ClientIdentifier
ot::Dhcp6::ServerIdentifier
ot::Dhcp6::IaNa
ot::Dhcp6::IaAddress
ot::Dhcp6::ElapsedTime
ot::Dhcp6::StatusCode
ot::Dhcp6::RapidCommit
All items filtered out
ot::Dhcp6::Option
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