ESP-IDF
otIp6Prefix::mLength
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (2/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
otIp6Prefix::mLength
otIp6Prefix::mLength field
Syntax
Show:
Summary
Declaration
from
ip6.h:147
uint8_t
mLength
;
Examples
References
from
examples
Code
Location
Scope
Referrer
uint8_t
mLength
;
///< The IPv6 prefix length (in bits).
ip6.h:147
VerifyOrExit
(
prefix
.
mLength
==
OT_IP6_PREFIX_BITSIZE
,
error
=
OT_ERROR_INVALID_ARGS
)
;
cli.cpp:5826
ot::Cli::Interpreter
ot::Cli::Interpreter::Process()
idAssociation
->
mNetifAddress
.
mPrefixLength
=
config
.
mPrefix
.
mLength
;
dhcp6_client.cpp:137
ot::Dhcp6::Client
ot::Dhcp6::Client::UpdateAddresses()
mLength
=
aLength
;
ip6_address.cpp:57
ot::Ip6::Prefix
ot::Ip6::Prefix::Set()
return
(
mLength
>=
10
)
&&
ip6_address.cpp:62
ot::Ip6::Prefix
ot::Ip6::Prefix::IsLinkLocal() const
bool
Prefix
::
IsMulticast
(
void
)
const
{
return
(
mLength
>=
8
)
&&
(
mPrefix
.
mFields
.
m8
[
0
]
==
0xff
)
;
}
ip6_address.cpp:66
ot::Ip6::Prefix
ot::Ip6::Prefix::IsMulticast() const
bool
Prefix
::
IsUniqueLocal
(
void
)
const
{
return
(
mLength
>=
7
)
&&
(
(
mPrefix
.
mFields
.
m8
[
0
]
&
0xfe
)
==
0xfc
)
;
}
ip6_address.cpp:68
ot::Ip6::Prefix
ot::Ip6::Prefix::IsUniqueLocal() const
return
(
mLength
==
aPrefixLength
)
&&
(
MatchLength
(
GetBytes
(
)
,
aPrefixBytes
,
GetBytesSize
(
)
)
>=
mLength
)
;
ip6_address.cpp:72
ot::Ip6::Prefix
ot::Ip6::Prefix::IsEqual() const
return
(
mLength
>=
aSubPrefix
.
mLength
)
&&
ip6_address.cpp:77
ot::Ip6::Prefix
ot::Ip6::Prefix::ContainsPrefix() const
return
(
mLength
>=
NetworkPrefix
::
kLength
)
&&
ip6_address.cpp:83
ot::Ip6::Prefix
ot::Ip6::Prefix::ContainsPrefix() const
uint8_t
lastByteBitMask
=
~
(
static_cast
<
uint8_t
>
(
1
<
<
(
byteLength
*
8
-
mLength
)
)
-
1
)
;
ip6_address.cpp:90
ot::Ip6::Prefix
ot::Ip6::Prefix::Tidy()
return
(
mLength
==
aOther
.
mLength
)
&&
(
MatchLength
(
GetBytes
(
)
,
aOther
.
GetBytes
(
)
,
GetBytesSize
(
)
)
>=
GetLength
(
)
)
;
ip6_address.cpp:105
ot::Ip6::Prefix
ot::Ip6::Prefix::operator() const
SuccessOrExit
(
StringParseUint8
(
cur
,
mLength
,
kMaxLength
)
)
;
ip6_address.cpp:180
ot::Ip6::Prefix
ot::Ip6::Prefix::FromString()
aWriter
.
Append
(
"/%d"
,
mLength
)
;
ip6_address.cpp:218
ot::Ip6::Prefix
ot::Ip6::Prefix::ToString() const
uint8_t
GetLength
(
void
)
const
{
return
mLength
;
}
ip6_address.hpp:122
ot::Ip6::Prefix
ot::Ip6::Prefix::GetLength() const
uint8_t
GetBytesSize
(
void
)
const
{
return
SizeForLength
(
mLength
)
;
}
ip6_address.hpp:129
ot::Ip6::Prefix
ot::Ip6::Prefix::GetBytesSize() const
void
SetLength
(
uint8_t
aLength
)
{
mLength
=
aLength
;
}
ip6_address.hpp:158
ot::Ip6::Prefix
ot::Ip6::Prefix::SetLength()
bool
IsValid
(
void
)
const
{
return
(
mLength
<=
kMaxLength
)
;
}
ip6_address.hpp:171
ot::Ip6::Prefix
ot::Ip6::Prefix::IsValid() const
bool
IsValidNat64
(
void
)
const
{
return
IsValidNat64PrefixLength
(
mLength
)
;
}
ip6_address.hpp:293
ot::Ip6::Prefix
ot::Ip6::Prefix::IsValidNat64() const
mPrefixLength
=
aPrefix
.
mLength
;
nd6.cpp:95
ot::Ip6::Nd::PrefixInfoOption
ot::Ip6::Nd::PrefixInfoOption::SetPrefix()
SetLength
(
OptionLengthForPrefix
(
aPrefix
.
mLength
)
)
;
nd6.cpp:129
ot::Ip6::Nd::RouteInfoOption
ot::Ip6::Nd::RouteInfoOption::SetPrefix()
mPrefixLength
=
aPrefix
.
mLength
;
nd6.cpp:130
ot::Ip6::Nd::RouteInfoOption
ot::Ip6::Nd::RouteInfoOption::SetPrefix()
return
aBrUlaPrefix
.
mLength
==
kBrUlaPrefixLength
&&
aBrUlaPrefix
.
mPrefix
.
mFields
.
m8
[
0
]
==
0xfd
;
routing_manager.cpp:660
ot::BorderRouter::RoutingManager
ot::BorderRouter::RoutingManager::IsValidBrUlaPrefix()
return
(
(
(
aConfig
.
mOnMesh
&&
(
aAddr
.
mPrefixLength
==
aConfig
.
mPrefix
.
mLength
)
)
||
slaac_address.cpp:161
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()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
otIp6Prefix::mLength
is written by 2 functions and is read by 20 functions:
ot::Ip6::Prefix::SetLength()
ot::Ip6::Prefix::Set()
All items filtered out
otIp6Prefix::mLength
ot::Ip6::Prefix::GetLength() const
ot::Ip6::Prefix::GetBytesSize() const
ot::Ip6::Prefix::IsValid() const
ot::Ip6::Prefix::IsValidNat64() const
ot::Utils::Slaac::DoesConfigMatchNetifAddr()
ot::Utils::Slaac::AddAddressFor()
ot::Dhcp6::Client::UpdateAddresses()
ot::Ip6::Prefix::IsLinkLocal() const
ot::Ip6::Prefix::IsMulticast() const
ot::Ip6::Prefix::IsUniqueLocal() const
ot::Ip6::Prefix::IsEqual() const
ot::Ip6::Prefix::ContainsPrefix() const
ot::Ip6::Prefix::Tidy()
ot::Ip6::Prefix::operator() const
ot::Ip6::Prefix::FromString()
ot::Ip6::Prefix::ToString() const
ot::Ip6::Nd::PrefixInfoOption::SetPrefix()
ot::Ip6::Nd::RouteInfoOption::SetPrefix()
ot::Cli::Interpreter::Process()
ot::BorderRouter::RoutingManager::IsValidBrUlaPrefix()
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