ESP-IDF
ot::Neighbor::IsStateValid() const
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (2/5)...
Files
loading (4/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::Neighbor::IsStateValid() const
ot::Neighbor::IsStateValid() const method
Indicates whether the neighbor is valid (frame counters are synchronized).
Syntax
Show:
Summary
Declaration
from
neighbor.hpp:263
bool
IsStateValid
(
void
)
const
;
Return value
TRUE if the neighbor is valid, FALSE otherwise.
Examples
References
from
examples
Code
Location
Scope
Referrer
bool
IsStateValid
(
void
)
const
{
return
(
mState
==
kStateValid
)
;
}
neighbor.hpp:263
VerifyOrExit
(
IsStateValid
(
)
)
;
child.cpp:144
ot::Child::SetDeviceMode()
return
parentCandidate
.
IsStateValid
(
)
?
parentCandidate
:
Get
<
Mle
::
MleRouter
>
(
)
.
GetParent
(
)
;
data_poll_sender.cpp:62
ot::DataPollSender
ot::DataPollSender::GetParent() const
if
(
!
aChild
.
IsRxOnWhenIdle
(
)
&&
(
aChild
.
IsStateValid
(
)
)
)
indirect_sender.cpp:183
ot::IndirectSender::HandleChildModeChange()
if
(
aNeighbor
->
IsStateValid
(
)
)
mac.cpp:1575
ot::Mac::Mac
ot::Mac::Mac::ProcessReceiveSecurity()
if
(
(
keyIdMode
==
Frame
::
kKeyIdMode1
)
&&
aNeighbor
->
IsStateValid
(
)
)
mac.cpp:1630
ot::Mac::Mac
ot::Mac::Mac::ProcessReceiveSecurity()
if
(
neighbor
->
IsStateValid
(
)
)
mac.cpp:1746
ot::Mac::Mac
ot::Mac::Mac::ProcessEnhAckSecurity()
if
(
neighbor
->
IsStateValid
(
)
)
mac.cpp:1754
ot::Mac::Mac
ot::Mac::Mac::ProcessEnhAckSecurity()
if
(
neighbor
!=
nullptr
&&
neighbor
->
IsStateValid
(
)
)
mle.cpp:2375
ot::Mle::Mle
ot::Mle::Mle::HandleUdpReceive()
VerifyOrExit
(
IsAttached
(
)
&&
aNeighbor
.
IsStateValid
(
)
)
;
mle.cpp:2626
ot::Mle::Mle
ot::Mle::Mle::ReestablishLinkWithNeighbor()
bool
IsNeighborStateValid
(
void
)
const
{
return
(
mNeighbor
!=
nullptr
)
&&
mNeighbor
->
IsStateValid
(
)
;
}
mle.hpp:1055
ot::Mle::Mle::RxInfo
ot::Mle::Mle::RxInfo::IsNeighborStateValid() const
if
(
aNeighbor
==
nullptr
||
!
aNeighbor
->
IsStateValid
(
)
)
mle_router.cpp:590
ot::Mle::MleRouter
ot::Mle::MleRouter::SendLinkRequest()
if
(
!
aNeighbor
->
IsStateValid
(
)
)
mle_router.cpp:619
ot::Mle::MleRouter
ot::Mle::MleRouter::SendLinkRequest()
if
(
!
neighbor
->
IsStateValid
(
)
)
mle_router.cpp:684
ot::Mle::MleRouter
ot::Mle::MleRouter::HandleLinkRequest()
command
=
(
aNeighbor
==
nullptr
||
aNeighbor
->
IsStateValid
(
)
)
?
kCommandLinkAccept
:
kCommandLinkAcceptAndRequest
;
mle_router.cpp:756
ot::Mle::MleRouter
ot::Mle::MleRouter::SendLinkAccept()
if
(
aNeighbor
!=
nullptr
&&
!
aNeighbor
->
IsStateValid
(
)
)
mle_router.cpp:793
ot::Mle::MleRouter
ot::Mle::MleRouter::SendLinkAccept()
if
(
!
router
->
IsStateValid
(
)
&&
aRxInfo
.
IsNeighborStateValid
(
)
&&
Get
<
ChildTable
>
(
)
.
Contains
(
*
aRxInfo
.
mNeighbor
)
)
mle_router.cpp:1295
ot::Mle::MleRouter::HandleAdvertisementOnFtd()
if
(
!
router
->
IsStateValid
(
)
&&
!
router
->
IsStateLinkRequest
(
)
&&
(
linkMargin
>=
kLinkRequestMinMargin
)
)
mle_router.cpp:1315
ot::Mle::MleRouter::HandleAdvertisementOnFtd()
OT_ASSERT
(
aChild
.
IsStateValid
(
)
)
;
mle_router.cpp:1750
ot::Mle::MleRouter::ProcessAddressRegistrationTlv()
if
(
!
child
->
IsStateValid
(
)
)
mle_router.cpp:2033
ot::Mle::MleRouter::HandleChildIdRequest()
VerifyOrExit
(
child
->
IsStateValid
(
)
)
;
mle_router.cpp:2147
ot::Mle::MleRouter::HandleChildUpdateRequestOnParent()
VerifyOrExit
(
child
->
IsStateValid
(
)
,
error
=
kErrorSecurity
)
;
mle_router.cpp:2337
ot::Mle::MleRouter::HandleChildUpdateResponseOnParent()
if
(
aChild
.
IsStateValid
(
)
)
mle_router.cpp:2859
ot::Mle::MleRouter::SendChildUpdateRequest()
else
if
(
aNeighbor
.
IsStateValid
(
)
)
mle_router.cpp:3134
ot::Mle::MleRouter
ot::Mle::MleRouter::RemoveNeighbor()
if
(
(
router
==
nullptr
)
||
!
router
->
IsStateValid
(
)
)
mle_router.cpp:3687
ot::Mle::MleRouter::NeighborHasComparableConnectivity() const
VerifyOrExit
(
!
aChild
.
IsStateValid
(
)
)
;
mle_router.cpp:3722
ot::Mle::MleRouter::SetChildStateToValid()
VerifyOrExit
(
aChild
.
IsStateValid
(
)
)
;
mlr_manager.cpp:143
ot::MlrManager::UpdateProxiedSubscriptions()
return
IsStateValid
(
)
?
Uptime
::
MsecToSec
(
Get
<
Uptime
>
(
)
.
GetUptime
(
)
)
-
mConnectionStart
:
0
;
neighbor.cpp:59
ot::Neighbor
ot::Neighbor::GetConnectionTime() const
matches
=
IsStateValid
(
)
;
neighbor.cpp:146
ot::Neighbor
ot::Neighbor::MatchesFilter() const
if
(
child
->
IsStateValid
(
)
)
neighbor_table.cpp:205
ot::NeighborTable::GetNextNeighborInfo()
if
(
router
!=
nullptr
&&
router
->
IsStateValid
(
)
)
neighbor_table.cpp:224
ot::NeighborTable::GetNextNeighborInfo()
mLinkEstablished
=
aRouter
.
IsStateValid
(
)
;
router.cpp:48
ot::Router::Info::SetFrom()
if
(
aRouter
.
IsStateValid
(
)
)
router_table.cpp:106
ot::RouterTable::RemoveRouter()
VerifyOrExit
(
!
Get
<
Mle
::
Mle
>
(
)
.
HasRloc16
(
aRouter
.
GetRloc16
(
)
)
&&
aRouter
.
IsStateValid
(
)
)
;
router_table.cpp:357
ot::RouterTable::GetLinkCost() const
if
(
parent
.
IsStateValid
(
)
)
router_table.cpp:419
ot::RouterTable::GetNextHopAndPathCost() const
Call Tree
from
examples
ot::Neighbor::IsStateValid() const
is called by 12 functions:
ot::Mle::Mle::RxInfo::IsNeighborStateValid() const
ot::DataPollSender::GetParent() const
ot::Mac::Mac::ProcessReceiveSecurity()
ot::Mac::Mac::ProcessEnhAckSecurity()
ot::Mle::Mle::HandleUdpReceive()
ot::Mle::Mle::ReestablishLinkWithNeighbor()
ot::Mle::MleRouter::SendLinkRequest()
ot::Mle::MleRouter::HandleLinkRequest()
ot::Mle::MleRouter::SendLinkAccept()
ot::Mle::MleRouter::RemoveNeighbor()
ot::Neighbor::GetConnectionTime() const
ot::Neighbor::MatchesFilter() const
All items filtered out
ot::Neighbor::IsStateValid() const
All items filtered out
Data Use
from
examples
ot::Neighbor::IsStateValid() const
reads 2 variables and writes 16 variables:
ot::Neighbor::State::kStateValid
ot::Neighbor::mState
All items filtered out
ot::Neighbor::IsStateValid() const
ot::Child::SetDeviceMode()
ot::IndirectSender::HandleChildModeChange()
ot::Mle::MleRouter::HandleAdvertisementOnFtd()
ot::Mle::MleRouter::ProcessAddressRegistrationTlv()
ot::Mle::MleRouter::HandleChildIdRequest()
ot::Mle::MleRouter::HandleChildUpdateRequestOnParent()
ot::Mle::MleRouter::HandleChildUpdateResponseOnParent()
ot::Mle::MleRouter::SendChildUpdateRequest()
ot::Mle::MleRouter::NeighborHasComparableConnectivity() const
ot::Mle::MleRouter::SetChildStateToValid()
ot::MlrManager::UpdateProxiedSubscriptions()
ot::NeighborTable::GetNextNeighborInfo()
ot::Router::Info::SetFrom()
ot::RouterTable::RemoveRouter()
ot::RouterTable::GetLinkCost() const
ot::RouterTable::GetNextHopAndPathCost() 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