ESP-IDF
ot::Ip6AddressesTlv
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
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::Ip6AddressesTlv
ot::Ip6AddressesTlv class
Syntax
Show:
Summary
Declaration
from
thread_tlvs.hpp:288
class
Ip6AddressesTlv
:
public
ThreadTlv
,
public
TlvInfo
<
ThreadTlv
::
kIp6Addresses
>
{
public
:
static
constexpr
uint8_t
kMinAddresses
=
1
;
static
constexpr
uint8_t
kMaxAddresses
=
OT_IP6_MAX_MLR_ADDRESSES
;
void
Init
(
void
)
{
SetType
(
kIp6Addresses
)
;
}
bool
IsValid
(
void
)
const
{
return
GetLength
(
)
>=
sizeof
(
Ip6
::
Address
)
*
Ip6AddressesTlv
::
kMinAddresses
&&
GetLength
(
)
<=
sizeof
(
Ip6
::
Address
)
*
Ip6AddressesTlv
::
kMaxAddresses
&&
(
GetLength
(
)
%
sizeof
(
Ip6
::
Address
)
)
==
0
;
}
const
Ip6
::
Address
&
GetIp6Address
(
uint8_t
aIndex
)
const
{
return
*
reinterpret_cast
<
const
Ip6
::
Address
*
>
(
GetValue
(
)
+
(
aIndex
*
sizeof
(
Ip6
::
Address
)
)
)
;
}
}
;
Fields
Field
ot::Ip6AddressesTlv::kMinAddresses
ot::Ip6AddressesTlv::kMaxAddresses
Methods
Init()
Initializes the TLV.
IsValid() const
Indicates whether or not the TLV appears to be well-formed.
GetIp6Address() const
Returns a pointer to the IPv6 address entry.
Examples
References
from
examples
Code
Location
Scope
Referrer
class
Ip6AddressesTlv
:
public
ThreadTlv
,
public
TlvInfo
<
ThreadTlv
::
kIp6Addresses
>
thread_tlvs.hpp:288
Ip6
::
Address
addresses
[
Ip6AddressesTlv
::
kMaxAddresses
]
;
bbr_manager.cpp:143
ot::BackboneRouter::Manager::HandleMulticastListenerRegistration()
VerifyOrExit
(
Tlv
::
FindTlvValueOffsetRange
(
aMessage
,
Ip6AddressesTlv
::
kIp6Addresses
,
offsetRange
)
==
kErrorNone
,
bbr_manager.cpp:180
ot::BackboneRouter::Manager::HandleMulticastListenerRegistration()
VerifyOrExit
(
offsetRange
.
GetLength
(
)
/
sizeof
(
Ip6
::
Address
)
<=
Ip6AddressesTlv
::
kMaxAddresses
,
bbr_manager.cpp:183
ot::BackboneRouter::Manager::HandleMulticastListenerRegistration()
addresses
[
Ip6AddressesTlv
::
kMaxAddresses
-
(
++
successAddressNum
)
]
=
address
;
bbr_manager.cpp:221
ot::BackboneRouter::Manager::HandleMulticastListenerRegistration()
addresses
[
Ip6AddressesTlv
::
kMaxAddresses
-
(
++
successAddressNum
)
]
=
address
;
bbr_manager.cpp:255
ot::BackboneRouter::Manager::HandleMulticastListenerRegistration()
SendBackboneMulticastListenerRegistration
(
&
addresses
[
Ip6AddressesTlv
::
kMaxAddresses
-
successAddressNum
]
,
bbr_manager.cpp:268
ot::BackboneRouter::Manager::HandleMulticastListenerRegistration()
Ip6AddressesTlv
addressesTlv
;
bbr_manager.cpp:289
ot::BackboneRouter::Manager::SendMulticastListenerRegistrationResponse()
Ip6AddressesTlv
addressesTlv
;
bbr_manager.cpp:315
ot::BackboneRouter::Manager::SendBackboneMulticastListenerRegistration()
OT_ASSERT
(
aAddressNum
>=
Ip6AddressesTlv
::
kMinAddresses
&&
aAddressNum
<=
Ip6AddressesTlv
::
kMaxAddresses
)
;
bbr_manager.cpp:318
ot::BackboneRouter::Manager::SendBackboneMulticastListenerRegistration()
Ip6AddressesTlv
addressesTlv
;
mlr_manager.cpp:376
ot::MlrManager::SendMlrMessage()
if
(
ThreadTlv
::
FindTlvValueOffsetRange
(
*
aMessage
,
Ip6AddressesTlv
::
kIp6Addresses
,
offsetRange
)
==
kErrorNone
)
mlr_manager.cpp:487
ot::MlrManager::ParseMlrResponse()
VerifyOrExit
(
offsetRange
.
GetLength
(
)
/
sizeof
(
Ip6
::
Address
)
<=
Ip6AddressesTlv
::
kMaxAddresses
,
mlr_manager.cpp:490
ot::MlrManager::ParseMlrResponse()
return
GetLength
(
)
>=
sizeof
(
Ip6
::
Address
)
*
Ip6AddressesTlv
::
kMinAddresses
&&
thread_tlvs.hpp:308
ot::Ip6AddressesTlv::IsValid() const
GetLength
(
)
<=
sizeof
(
Ip6
::
Address
)
*
Ip6AddressesTlv
::
kMaxAddresses
&&
thread_tlvs.hpp:309
ot::Ip6AddressesTlv::IsValid() const
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::Ip6AddressesTlv
is inherited by 1 classes:
All items filtered out
ot::Ip6AddressesTlv
ot::ThreadTlv
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