ESP-IDF
ot::NetworkData::OnMeshPrefixConfig::GetPrefix() const
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (3/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::NetworkData::OnMeshPrefixConfig::GetPrefix() const
ot::NetworkData::OnMeshPrefixConfig::GetPrefix() const method
Gets the prefix.
Syntax
Show:
Summary
Declaration
from
network_data_types.hpp:198
const
Ip6
::
Prefix
&
GetPrefix
(
void
)
const
;
Return value
The prefix.
Examples
References
from
examples
Code
Location
Scope
Referrer
const
Ip6
::
Prefix
&
GetPrefix
(
void
)
const
{
return
AsCoreType
(
&
mPrefix
)
;
}
network_data_types.hpp:198
AddPrefix
(
aConfig
.
GetPrefix
(
)
,
NetworkDataTlv
::
kTypeBorderRouter
,
aConfig
.
ConvertToTlvFlags
(
)
,
aConfig
.
mStable
)
;
network_data_local.cpp:54
ot::NetworkData::Local
ot::NetworkData::Local::AddOnMeshPrefix()
entry
=
FindOrAllocatePrefixEntry
(
aConfig
.
GetPrefix
(
)
,
aRequester
)
;
network_data_publisher.cpp:79
ot::NetworkData::Publisher
ot::NetworkData::Publisher::PublishOnMeshPrefix()
LogInfo
(
"Publishing OnMeshPrefix %s"
,
aConfig
.
GetPrefix
(
)
.
ToString
(
)
.
AsCString
(
)
)
;
network_data_publisher.cpp:773
ot::NetworkData::Publisher::PrefixEntry
ot::NetworkData::Publisher::PrefixEntry::Publish()
Publish
(
aConfig
.
GetPrefix
(
)
,
aConfig
.
ConvertToTlvFlags
(
)
,
kTypeOnMeshPrefix
,
aRequester
)
;
network_data_publisher.cpp:775
ot::NetworkData::Publisher::PrefixEntry
ot::NetworkData::Publisher::PrefixEntry::Publish()
VerifyOrExit
(
GetPrefix
(
)
.
GetLength
(
)
==
Ip6
::
NetworkPrefix
::
kLength
)
;
network_data_types.cpp:67
ot::NetworkData::OnMeshPrefixConfig
ot::NetworkData::OnMeshPrefixConfig::IsValid() const
VerifyOrExit
(
IsPrefixValid
(
aInstance
,
GetPrefix
(
)
)
)
;
network_data_types.cpp:71
ot::NetworkData::OnMeshPrefixConfig
ot::NetworkData::OnMeshPrefixConfig::IsValid() const
VerifyOrExit
(
GetPrefix
(
)
.
GetLength
(
)
>
0
)
;
network_data_types.cpp:72
ot::NetworkData::OnMeshPrefixConfig
ot::NetworkData::OnMeshPrefixConfig::IsValid() const
return
IsValidOmrPrefix
(
aOnMeshPrefixConfig
.
GetPrefix
(
)
)
&&
aOnMeshPrefixConfig
.
mOnMesh
&&
routing_manager.cpp:665
ot::BorderRouter::RoutingManager
ot::BorderRouter::RoutingManager::IsValidOmrPrefix()
return
aConfig
.
mSlaac
&&
!
aConfig
.
mDp
&&
(
aConfig
.
GetPrefix
(
)
.
GetLength
(
)
==
Ip6
::
NetworkPrefix
::
kLength
)
;
slaac_address.cpp:121
ot::Utils::Slaac
ot::Utils::Slaac::IsSlaac() const
return
(
mFilter
!=
nullptr
)
?
mFilter
(
&
GetInstance
(
)
,
&
aConfig
.
GetPrefix
(
)
)
:
false
;
slaac_address.cpp:126
ot::Utils::Slaac
ot::Utils::Slaac::IsFiltered() const
(
aAddr
.
GetAddress
(
)
.
MatchesPrefix
(
aConfig
.
GetPrefix
(
)
)
)
)
;
slaac_address.cpp:163
ot::Utils::Slaac
ot::Utils::Slaac::DoesConfigMatchNetifAddr()
newAddress
->
InitAsSlaacOrigin
(
aConfig
.
mOnMesh
?
aConfig
.
GetPrefix
(
)
.
mLength
:
128
,
aConfig
.
mPreferred
)
;
slaac_address.cpp:345
ot::Utils::Slaac
ot::Utils::Slaac::AddAddressFor()
newAddress
->
GetAddress
(
)
.
SetPrefix
(
aConfig
.
GetPrefix
(
)
)
;
slaac_address.cpp:346
ot::Utils::Slaac
ot::Utils::Slaac::AddAddressFor()
IgnoreError
(
Get
<
NetworkData
::
Leader
>
(
)
.
FindDomainIdFor
(
aConfig
.
GetPrefix
(
)
,
domainId
)
)
;
slaac_address.cpp:348
ot::Utils::Slaac
ot::Utils::Slaac::AddAddressFor()
Call Tree
from
examples
ot::NetworkData::OnMeshPrefixConfig::GetPrefix() const
is called by 9 functions:
ot::NetworkData::Local::AddOnMeshPrefix()
ot::NetworkData::Publisher::PublishOnMeshPrefix()
ot::NetworkData::Publisher::PrefixEntry::Publish()
ot::NetworkData::OnMeshPrefixConfig::IsValid() const
ot::Utils::Slaac::IsSlaac() const
ot::Utils::Slaac::IsFiltered() const
ot::Utils::Slaac::DoesConfigMatchNetifAddr()
ot::Utils::Slaac::AddAddressFor()
ot::BorderRouter::RoutingManager::IsValidOmrPrefix()
All items filtered out
ot::NetworkData::OnMeshPrefixConfig::GetPrefix() const
All items filtered out
Data Use
from
examples
All items filtered out
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