ESP-IDF
ot::ThreadNetif
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (2/5)...
Files
loading (3/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::ThreadNetif
ot::ThreadNetif class
This module includes definitions for the Thread network interface.
Syntax
Show:
Summary
Declaration
from
thread_netif.hpp:53
class
ThreadNetif
:
public
Ip6
::
Netif
{
public
:
explicit
ThreadNetif
(
Instance
&
aInstance
)
;
void
Up
(
void
)
;
void
Down
(
void
)
;
bool
IsUp
(
void
)
const
{
return
mIsUp
;
}
private
:
bool
mIsUp
;
}
;
Fields
Field
Declared as
ot::ThreadNetif::mIsUp
bool
Methods
Up()
Enables the Thread network interface.
Down()
Disables the Thread network interface.
IsUp() const
Indicates whether or not the Thread network interface is enabled.
Examples
References
from
examples
Code
Location
Scope
Referrer
class
ThreadNetif
:
public
Ip6
::
Netif
thread_netif.hpp:53
class
ThreadNetif
;
child_supervision.hpp:54
class
ThreadNetif
;
meshcop.hpp:56
if
(
Get
<
ThreadNetif
>
(
)
.
HasUnicastAddress
(
target
)
)
address_resolver.cpp:855
ot::AddressResolver::HandleTmf()
Get
<
ThreadNetif
>
(
)
.
AddUnicastAddress
(
newEntry
->
GetAloc
(
)
)
;
dhcp6_server.cpp:163
ot::Dhcp6::Server::AddPrefixAgent()
VerifyOrExit
(
Get
<
ThreadNetif
>
(
)
.
IsUp
(
)
,
error
=
kErrorInvalidState
)
;
discover_scanner.cpp:69
ot::Mle::DiscoverScanner::Discover()
VerifyOrExit
(
!
Get
<
ThreadNetif
>
(
)
.
HasUnicastAddress
(
GetDomainUnicastAddress
(
)
)
)
;
dua_manager.cpp:97
ot::DuaManager::HandleDomainPrefixUpdate()
if
(
Get
<
ThreadNetif
>
(
)
.
HasUnicastAddress
(
GetDomainUnicastAddress
(
)
)
)
dua_manager.cpp:166
ot::DuaManager::SetFixedDuaInterfaceIdentifier()
if
(
Get
<
ThreadNetif
>
(
)
.
HasUnicastAddress
(
Get
<
DuaManager
>
(
)
.
GetDomainUnicastAddress
(
)
)
&&
dua_manager.cpp:301
ot::DuaManager::HandleNotifierEvents()
if
(
Get
<
ThreadNetif
>
(
)
.
HasUnicastAddress
(
target
)
)
dua_manager.cpp:627
ot::DuaManager::ProcessDuaResponse()
if
(
Get
<
ThreadNetif
>
(
)
.
HasUnicastAddress
(
GetDomainUnicastAddress
(
)
)
)
dua_manager.cpp:636
ot::DuaManager::ProcessDuaResponse()
VerifyOrExit
(
!
Get
<
ThreadNetif
>
(
)
.
IsUp
(
)
,
error
=
kErrorInvalidState
)
;
factory_diags.cpp:440
ot::FactoryDiags::Diags::ProcessStart()
ThreadNetif
mThreadNetif
;
instance.hpp:492
ot::Instance
ot::Instance::mThreadNetif
template
<
>
inline
ThreadNetif
&
Instance
::
Get
(
void
)
{
return
mThreadNetif
;
}
instance.hpp:793
ot::Instance
ot::Instance::Get()
VerifyOrExit
(
Get
<
ThreadNetif
>
(
)
.
HasUnicastAddress
(
header
.
GetSource
(
)
)
,
error
=
kErrorDrop
)
;
ip6.cpp:1057
ot::Ip6::Ip6::SendRaw()
Get
<
ThreadNetif
>
(
)
.
IsMulticastSubscribed
(
header
.
GetDestination
(
)
)
)
ip6.cpp:1112
ot::Ip6::Ip6::HandleDatagram()
if
(
Get
<
ThreadNetif
>
(
)
.
HasUnicastAddress
(
header
.
GetDestination
(
)
)
)
ip6.cpp:1121
ot::Ip6::Ip6::HandleDatagram()
instance
.
Get
<
ThreadNetif
>
(
)
.
Up
(
)
;
ip6_api.cpp:51
otIp6SetEnabled()
instance
.
Get
<
ThreadNetif
>
(
)
.
Down
(
)
;
ip6_api.cpp:55
otIp6SetEnabled()
bool
otIp6IsEnabled
(
otInstance
*
aInstance
)
{
return
AsCoreType
(
aInstance
)
.
Get
<
ThreadNetif
>
(
)
.
IsUp
(
)
;
}
ip6_api.cpp:64
otIp6IsEnabled()
return
AsCoreType
(
aInstance
)
.
Get
<
ThreadNetif
>
(
)
.
GetUnicastAddresses
(
)
.
GetHead
(
)
;
ip6_api.cpp:68
otIp6GetUnicastAddresses()
return
AsCoreType
(
aInstance
)
.
Get
<
ThreadNetif
>
(
)
.
HasUnicastAddress
(
AsCoreType
(
aAddress
)
)
;
ip6_api.cpp:73
otIp6HasUnicastAddress()
return
AsCoreType
(
aInstance
)
.
Get
<
ThreadNetif
>
(
)
.
AddExternalUnicastAddress
(
AsCoreType
(
aAddress
)
)
;
ip6_api.cpp:78
otIp6AddUnicastAddress()
return
AsCoreType
(
aInstance
)
.
Get
<
ThreadNetif
>
(
)
.
RemoveExternalUnicastAddress
(
AsCoreType
(
aAddress
)
)
;
ip6_api.cpp:83
otIp6RemoveUnicastAddress()
return
AsCoreType
(
aInstance
)
.
Get
<
ThreadNetif
>
(
)
.
GetMulticastAddresses
(
)
.
GetHead
(
)
;
ip6_api.cpp:88
otIp6GetMulticastAddresses()
return
AsCoreType
(
aInstance
)
.
Get
<
ThreadNetif
>
(
)
.
SubscribeExternalMulticast
(
AsCoreType
(
aAddress
)
)
;
ip6_api.cpp:93
otIp6SubscribeMulticastAddress()
return
AsCoreType
(
aInstance
)
.
Get
<
ThreadNetif
>
(
)
.
UnsubscribeExternalMulticast
(
AsCoreType
(
aAddress
)
)
;
ip6_api.cpp:98
otIp6UnsubscribeMulticastAddress()
AsCoreType
(
aInstance
)
.
Get
<
ThreadNetif
>
(
)
.
SetAddressCallback
(
aCallback
,
aCallbackContext
)
;
ip6_api.cpp:108
otIp6SetAddressCallback()
VerifyOrExit
(
!
instance
.
Get
<
ThreadNetif
>
(
)
.
IsUp
(
)
,
error
=
kErrorInvalidState
)
;
link_api.cpp:347
otLinkSetPromiscuous()
VerifyOrExit
(
!
instance
.
Get
<
ThreadNetif
>
(
)
.
IsUp
(
)
,
error
=
kErrorInvalidState
)
;
link_api.cpp:361
otLinkSetEnabled()
VerifyOrExit
(
!
Get
<
ThreadNetif
>
(
)
.
HasUnicastAddress
(
ip6Header
.
GetSource
(
)
)
)
;
mesh_forwarder.cpp:234
ot::MeshForwarder::UpdateEcnOrDrop()
isReachable
=
Get
<
ThreadNetif
>
(
)
.
HasUnicastAddress
(
aIp6Header
.
GetDestination
(
)
)
;
mesh_forwarder_ftd.cpp:529
ot::MeshForwarder::CheckReachability()
isReachable
=
Get
<
ThreadNetif
>
(
)
.
HasUnicastAddress
(
aIp6Header
.
GetDestination
(
)
)
||
mesh_forwarder_ftd.cpp:541
ot::MeshForwarder::CheckReachability()
VerifyOrExit
(
Get
<
ThreadNetif
>
(
)
.
IsUp
(
)
,
error
=
kErrorInvalidState
)
;
mle.cpp:162
ot::Mle::Mle::Start()
Get
<
ThreadNetif
>
(
)
.
RemoveUnicastAddress
(
Get
<
MleRouter
>
(
)
.
mLeaderAloc
)
;
mle.cpp:680
ot::Mle::Mle::SetStateDetached()
Get
<
ThreadNetif
>
(
)
.
RemoveUnicastAddress
(
Get
<
MleRouter
>
(
)
.
mLeaderAloc
)
;
mle.cpp:708
ot::Mle::Mle::SetStateChild()
Get
<
ThreadNetif
>
(
)
.
ApplyNewMeshLocalPrefix
(
)
;
mle.cpp:890
ot::Mle::Mle::SetMeshLocalPrefix()
retval
=
Get
<
ThreadNetif
>
(
)
.
HasAnyExternalMulticastAddress
(
)
;
mle.cpp:1031
ot::Mle::Mle::HasUnregisteredAddress()
Get
<
ThreadNetif
>
(
)
.
AddUnicastAddress
(
*
newServiceAloc
)
;
mle.cpp:1274
ot::Mle::Mle::UpdateServiceAlocs()
Get
<
ThreadNetif
>
(
)
.
UnsubscribeAllRoutersMulticast
(
)
;
mle_router.cpp:302
ot::Mle::MleRouter::StopLeader()
Get
<
ThreadNetif
>
(
)
.
SubscribeAllRoutersMulticast
(
)
;
mle_router.cpp:326
ot::Mle::MleRouter::HandleChildStart()
Get
<
ThreadNetif
>
(
)
.
SubscribeAllRoutersMulticast
(
)
;
mle_router.cpp:424
ot::Mle::MleRouter::SetStateRouterOrLeader()
Get
<
ThreadNetif
>
(
)
.
UpdatePreferredFlagOn
(
aAddress
,
false
)
;
slaac_address.cpp:230
ot::Utils::Slaac::DeprecateAddress()
Get
<
ThreadNetif
>
(
)
.
RemoveUnicastAddress
(
aAddress
)
;
slaac_address.cpp:248
ot::Utils::Slaac::RemoveAddress()
Get
<
ThreadNetif
>
(
)
.
AddUnicastAddress
(
*
newAddress
)
;
slaac_address.cpp:358
ot::Utils::Slaac::AddAddressFor()
ThreadNetif
::
ThreadNetif
(
Instance
&
aInstance
)
thread_netif.cpp:40
ot::ThreadNetif::ThreadNetif()
void
ThreadNetif
::
Up
(
void
)
thread_netif.cpp:46
ot::ThreadNetif::Up()
void
ThreadNetif
::
Down
(
void
)
thread_netif.cpp:77
ot::ThreadNetif::Down()
VerifyOrExit
(
aSockAddr
.
GetAddress
(
)
.
IsUnspecified
(
)
||
Get
<
ThreadNetif
>
(
)
.
HasUnicastAddress
(
aSockAddr
.
GetAddress
(
)
)
,
udp6.cpp:212
ot::Ip6::Udp::Bind()
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::ThreadNetif
is inherited by 1 classes:
All items filtered out
ot::ThreadNetif
ot::Ip6::Netif
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
Instance
Scope
Location
Project
ot::Instance::mThreadNetif
ot::Instance
instance.hpp:492
return
ot::Instance::Get()
instance.hpp:793
Lifecycle
from
examples
All items filtered out
All items filtered out