ESP-IDF
ot::Ip6::Prefix::GetLength() const
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (4/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::Ip6::Prefix::GetLength() const
ot::Ip6::Prefix::GetLength() const method
Gets the prefix length (in bits).
Syntax
Show:
Summary
Declaration
from
ip6_address.hpp:122
uint8_t
GetLength
(
void
)
const
;
Return value
The prefix length (in bits).
Examples
References
from
examples
Code
Location
Scope
Referrer
uint8_t
GetLength
(
void
)
const
{
return
mLength
;
}
ip6_address.hpp:122
VerifyOrExit
(
aPrefix
.
GetLength
(
)
>
0
,
error
=
kErrorInvalidArgs
)
;
bbr_local.cpp:323
ot::BackboneRouter::Local
ot::BackboneRouter::Local::RemoveDomainPrefix()
(
MatchLength
(
GetBytes
(
)
,
aSubPrefix
.
GetBytes
(
)
,
aSubPrefix
.
GetBytesSize
(
)
)
>=
aSubPrefix
.
GetLength
(
)
)
;
ip6_address.cpp:78
ot::Ip6::Prefix
ot::Ip6::Prefix::ContainsPrefix() const
return
(
mLength
==
aOther
.
mLength
)
&&
(
MatchLength
(
GetBytes
(
)
,
aOther
.
GetBytes
(
)
,
GetBytesSize
(
)
)
>=
GetLength
(
)
)
;
ip6_address.cpp:105
ot::Ip6::Prefix
ot::Ip6::Prefix::operator() const
minLength
=
Min
(
GetLength
(
)
,
aOther
.
GetLength
(
)
)
;
ip6_address.cpp:114
ot::Ip6::Prefix
ot::Ip6::Prefix::operator<() const
isSmaller
=
(
GetLength
(
)
<
aOther
.
GetLength
(
)
)
;
ip6_address.cpp:119
ot::Ip6::Prefix
ot::Ip6::Prefix::operator<() const
if
(
aPrefix
.
GetLength
(
)
>
NetworkPrefix
::
kLength
)
ip6_address.cpp:305
ot::Ip6::InterfaceIdentifier
ot::Ip6::InterfaceIdentifier::ApplyPrefix()
aPrefix
.
GetLength
(
)
-
NetworkPrefix
::
kLength
)
;
ip6_address.cpp:308
ot::Ip6::InterfaceIdentifier
ot::Ip6::InterfaceIdentifier::ApplyPrefix()
return
Prefix
::
MatchLength
(
mFields
.
m8
,
aPrefix
.
GetBytes
(
)
,
aPrefix
.
GetBytesSize
(
)
)
>=
aPrefix
.
GetLength
(
)
;
ip6_address.cpp:396
ot::Ip6::Address
ot::Ip6::Address::MatchesPrefix() const
void
Address
::
SetPrefix
(
const
Prefix
&
aPrefix
)
{
CopyBits
(
mFields
.
m8
,
aPrefix
.
GetBytes
(
)
,
aPrefix
.
GetLength
(
)
)
;
}
ip6_address.cpp:406
ot::Ip6::Address
ot::Ip6::Address::SetPrefix()
ip6Index
=
aPrefix
.
GetLength
(
)
/
kBitsPerByte
;
ip6_address.cpp:529
ot::Ip6::Address
ot::Ip6::Address::SynthesizeFromIp4Address()
SetMulticastNetworkPrefix
(
aPrefix
.
GetBytes
(
)
,
aPrefix
.
GetLength
(
)
)
;
ip6_address.hpp:853
ot::Ip6::Address
ot::Ip6::Address::SetMulticastNetworkPrefix()
rio
=
static_cast
<
RouteInfoOption
*
>
(
AppendOption
(
RouteInfoOption
::
OptionSizeForPrefix
(
aPrefix
.
GetLength
(
)
)
)
)
;
nd6.cpp:305
ot::Ip6::Nd::RouterAdvert::TxMessage
ot::Ip6::Nd::RouterAdvert::TxMessage::AppendRouteInfoOption()
return
(
mPrefixLength
==
aPrefix
.
GetLength
(
)
)
&&
GetAddress
(
)
.
MatchesPrefix
(
aPrefix
)
;
netif.hpp:169
ot::Ip6::Netif::UnicastAddress
ot::Ip6::Netif::UnicastAddress::HasPrefix() const
return
FindPrefix
(
aPrefix
.
GetBytes
(
)
,
aPrefix
.
GetLength
(
)
)
;
network_data.hpp:418
ot::NetworkData::NetworkData
ot::NetworkData::NetworkData::FindPrefix() const
PrefixTlv
*
FindPrefix
(
const
Ip6
::
Prefix
&
aPrefix
)
{
return
FindPrefix
(
aPrefix
.
GetBytes
(
)
,
aPrefix
.
GetLength
(
)
)
;
}
network_data.hpp:649
ot::NetworkData::MutableNetworkData
ot::NetworkData::MutableNetworkData::FindPrefix()
Init
(
aDomainId
,
aPrefix
.
GetLength
(
)
,
aPrefix
.
GetBytes
(
)
)
;
network_data_tlvs.hpp:606
ot::NetworkData::PrefixTlv
ot::NetworkData::PrefixTlv::Init()
VerifyOrExit
(
GetPrefix
(
)
.
GetLength
(
)
==
Ip6
::
NetworkPrefix
::
kLength
)
;
network_data_types.cpp:67
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
if
(
aPrefix
.
GetLength
(
)
==
0
)
routing_manager.cpp:210
ot::BorderRouter::RoutingManager
ot::BorderRouter::RoutingManager::GetFavoredOnLinkPrefix() const
return
(
aPrefix
.
GetLength
(
)
==
kOmrPrefixLength
)
&&
!
aPrefix
.
IsLinkLocal
(
)
&&
!
aPrefix
.
IsMulticast
(
)
;
routing_manager.cpp:672
ot::BorderRouter::RoutingManager
ot::BorderRouter::RoutingManager::IsValidOmrPrefix()
return
(
aOnLinkPrefix
.
GetLength
(
)
==
kOnLinkPrefixLength
)
&&
!
aOnLinkPrefix
.
IsLinkLocal
(
)
&&
routing_manager.cpp:687
ot::BorderRouter::RoutingManager
ot::BorderRouter::RoutingManager::IsValidOnLinkPrefix()
VerifyOrExit
(
aPrefix
.
GetLength
(
)
!=
0
,
isFavored
=
true
)
;
routing_manager.cpp:1007
ot::BorderRouter::RoutingManager::OnLinkPrefix
ot::BorderRouter::RoutingManager::OnLinkPrefix::IsFavoredOver() const
return
aConfig
.
mSlaac
&&
!
aConfig
.
mDp
&&
(
aConfig
.
GetPrefix
(
)
.
GetLength
(
)
==
Ip6
::
NetworkPrefix
::
kLength
)
;
slaac_address.cpp:121
ot::Utils::Slaac
ot::Utils::Slaac::IsSlaac() const
Call Tree
from
examples
ot::Ip6::Prefix::GetLength() const
is called by 20 functions:
ot::Ip6::Address::SetMulticastNetworkPrefix()
ot::Ip6::Netif::UnicastAddress::HasPrefix() const
ot::NetworkData::NetworkData::FindPrefix() const
ot::NetworkData::MutableNetworkData::FindPrefix()
ot::NetworkData::PrefixTlv::Init()
ot::NetworkData::OnMeshPrefixConfig::IsValid() const
ot::Utils::Slaac::IsSlaac() const
ot::BackboneRouter::Local::RemoveDomainPrefix()
ot::Ip6::Prefix::ContainsPrefix() const
ot::Ip6::Prefix::operator() const
ot::Ip6::Prefix::operator<() const
ot::Ip6::InterfaceIdentifier::ApplyPrefix()
ot::Ip6::Address::MatchesPrefix() const
ot::Ip6::Address::SetPrefix()
ot::Ip6::Address::SynthesizeFromIp4Address()
ot::Ip6::Nd::RouterAdvert::TxMessage::AppendRouteInfoOption()
ot::BorderRouter::RoutingManager::GetFavoredOnLinkPrefix() const
ot::BorderRouter::RoutingManager::IsValidOmrPrefix()
ot::BorderRouter::RoutingManager::IsValidOnLinkPrefix()
ot::BorderRouter::RoutingManager::OnLinkPrefix::IsFavoredOver() const
All items filtered out
ot::Ip6::Prefix::GetLength() const
All items filtered out
Data Use
from
examples
ot::Ip6::Prefix::GetLength() const
reads 1 variable:
otIp6Prefix::mLength
All items filtered out
ot::Ip6::Prefix::GetLength() 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