ESP-IDF
ot::Ip6::InterfaceIdentifier::GetLocator() 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::Ip6::InterfaceIdentifier::GetLocator() const
ot::Ip6::InterfaceIdentifier::GetLocator() const method
Gets the Interface Identifier (IID) address locator fields. Assumes the IID to match the locator pattern `0000:00ff:fe00:xxxx` (does not explicitly check this) and returns the last `uint16` portion of the IID.
Syntax
Show:
Summary
Declaration
from
ip6_address.hpp:482
uint16_t
GetLocator
(
void
)
const
;
Return value
The RLOC16 or ALOC16.
Examples
References
from
examples
Code
Location
Scope
Referrer
uint16_t
GetLocator
(
void
)
const
{
return
BigEndian
::
HostSwap16
(
mFields
.
m16
[
3
]
)
;
}
ip6_address.hpp:482
aMessageInfo
.
GetPeerAddr
(
)
.
GetIid
(
)
.
GetLocator
(
)
,
target
.
ToString
(
)
.
AsCString
(
)
,
rloc16
)
;
address_resolver.cpp:677
ot::AddressResolver
ot::AddressResolver::HandleTmf()
aMessageInfo
.
GetPeerAddr
(
)
.
GetIid
(
)
.
GetLocator
(
)
,
target
.
ToString
(
)
.
AsCString
(
)
)
;
address_resolver.cpp:853
ot::AddressResolver
ot::AddressResolver::HandleTmf()
uint16_t
srcRloc16
=
aMessageInfo
.
GetPeerAddr
(
)
.
GetIid
(
)
.
GetLocator
(
)
;
address_resolver.cpp:880
ot::AddressResolver
ot::AddressResolver::HandleTmf()
uint16_t
locator
=
GetLocator
(
)
;
ip6_address.cpp:298
ot::Ip6::InterfaceIdentifier
ot::Ip6::InterfaceIdentifier::IsAnycastServiceLocator() const
option
.
SetSeedId
(
aAddress
.
GetIid
(
)
.
GetLocator
(
)
)
;
ip6_mpl.cpp:100
ot::Ip6::Mpl
ot::Ip6::Mpl::ProcessOption()
error
=
aFrameBuilder
.
AppendBigEndianUint16
(
aIpAddr
.
GetIid
(
)
.
GetLocator
(
)
)
;
lowpan.cpp:106
ot::Lowpan::Lowpan
ot::Lowpan::Lowpan::CompressSourceIid()
error
=
aFrameBuilder
.
AppendBigEndianUint16
(
aIpAddr
.
GetIid
(
)
.
GetLocator
(
)
)
;
lowpan.cpp:135
ot::Lowpan::Lowpan
ot::Lowpan::Lowpan::CompressDestinationIid()
VerifyOrExit
(
aMessageInfo
.
GetPeerAddr
(
)
.
GetIid
(
)
.
GetLocator
(
)
==
aSenderRloc16
)
;
mesh_diag.cpp:271
ot::Utils::MeshDiag
ot::Utils::MeshDiag::ProcessMessage()
aMacAddr
.
SetShort
(
aIp6Addr
.
GetIid
(
)
.
GetLocator
(
)
)
;
mesh_forwarder.cpp:719
ot::MeshForwarder
ot::MeshForwarder::GetMacDestinationAddress()
uint16_t
rloc16
=
aIp6Header
.
GetDestination
(
)
.
GetIid
(
)
.
GetLocator
(
)
;
mesh_forwarder_ftd.cpp:402
ot::MeshForwarder
ot::MeshForwarder::UpdateIp6RouteFtd()
uint16_t
aloc16
=
aIp6Header
.
GetDestination
(
)
.
GetIid
(
)
.
GetLocator
(
)
;
mesh_forwarder_ftd.cpp:408
ot::MeshForwarder
ot::MeshForwarder::UpdateIp6RouteFtd()
data
.
Init
(
aMessageInfo
.
GetPeerAddr
(
)
.
GetIid
(
)
.
GetLocator
(
)
,
++
mSessionId
)
;
meshcop_leader.cpp:75
ot::MeshCoP::Leader
ot::MeshCoP::Leader::HandleTmf()
uint16_t
rloc
=
aMessageInfo
.
GetPeerAddr
(
)
.
GetIid
(
)
.
GetLocator
(
)
;
meshcop_leader.cpp:146
ot::MeshCoP::Leader
ot::MeshCoP::Leader::HandleTmf()
oldRloc16
=
aMessageInfo
.
GetPeerAddr
(
)
.
GetIid
(
)
.
GetLocator
(
)
;
mle_router.cpp:3504
ot::Mle::MleRouter
ot::Mle::MleRouter::SendAddressSolicitResponse()
macAddress
.
SetShort
(
aIp6Address
.
GetIid
(
)
.
GetLocator
(
)
)
;
neighbor_table.cpp:146
ot::NeighborTable
ot::NeighborTable::FindNeighbor()
RegisterNetworkData
(
aMessageInfo
.
GetPeerAddr
(
)
.
GetIid
(
)
.
GetLocator
(
)
,
networkData
)
;
network_data_leader_ftd.cpp:251
ot::NetworkData::Leader
ot::NetworkData::Leader::HandleTmf()
Call Tree
from
examples
ot::Ip6::InterfaceIdentifier::GetLocator() const
is called by 12 functions and calls 1 function:
ot::AddressResolver::HandleTmf()
ot::Lowpan::Lowpan::CompressSourceIid()
ot::Lowpan::Lowpan::CompressDestinationIid()
ot::MeshForwarder::GetMacDestinationAddress()
ot::MeshForwarder::UpdateIp6RouteFtd()
ot::Mle::MleRouter::SendAddressSolicitResponse()
ot::NeighborTable::FindNeighbor()
ot::NetworkData::Leader::HandleTmf()
ot::Utils::MeshDiag::ProcessMessage()
ot::MeshCoP::Leader::HandleTmf()
ot::Ip6::InterfaceIdentifier::IsAnycastServiceLocator() const
ot::Ip6::Mpl::ProcessOption()
All items filtered out
ot::Ip6::InterfaceIdentifier::GetLocator() const
ot::BigEndian::HostSwap16()
All items filtered out
Data Use
from
examples
ot::Ip6::InterfaceIdentifier::GetLocator() const
reads 2 variables:
otIp6InterfaceIdentifier::
::m16
otIp6InterfaceIdentifier::mFields
All items filtered out
ot::Ip6::InterfaceIdentifier::GetLocator() 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