Home
last modified time | relevance | path

Searched refs:aPrefixLength (Results 1 – 16 of 16) sorted by relevance

/openthread-3.7.0/src/core/net/
Dip6_address.hpp225 bool IsEqual(const uint8_t *aPrefixBytes, uint8_t aPrefixLength) const;
873 bool MatchesPrefix(const uint8_t *aPrefix, uint8_t aPrefixLength) const;
885 …oid SetPrefix(const uint8_t *aPrefix, uint8_t aPrefixLength) { CopyBits(mFields.m8, aPrefix, aPref… in SetPrefix() argument
913 void SetMulticastNetworkPrefix(const uint8_t *aPrefix, uint8_t aPrefixLength);
Dip6_address.cpp81 bool Prefix::IsEqual(const uint8_t *aPrefixBytes, uint8_t aPrefixLength) const in IsEqual()
83 …return (mLength == aPrefixLength) && (MatchLength(GetBytes(), aPrefixBytes, GetBytesSize()) >= mLe… in IsEqual()
408 bool Address::MatchesPrefix(const uint8_t *aPrefix, uint8_t aPrefixLength) const in MatchesPrefix()
410 …rn Prefix::MatchLength(mFields.m8, aPrefix, Prefix::SizeForLength(aPrefixLength)) >= aPrefixLength; in MatchesPrefix()
441 void Address::SetMulticastNetworkPrefix(const uint8_t *aPrefix, uint8_t aPrefixLength) in SetMulticastNetworkPrefix() argument
443 CopyBits(&mFields.m8[kMulticastNetworkPrefixOffset], aPrefix, aPrefixLength); in SetMulticastNetworkPrefix()
444 mFields.m8[kMulticastNetworkPrefixLengthOffset] = aPrefixLength; in SetMulticastNetworkPrefix()
Dip4_types.cpp80 void Address::ExtractFromIp6Address(uint8_t aPrefixLength, const Ip6::Address &aIp6Address) in ExtractFromIp6Address() argument
106 OT_ASSERT(Ip6::Prefix::IsValidNat64PrefixLength(aPrefixLength)); in ExtractFromIp6Address()
108 ip6Index = aPrefixLength / kBitsPerByte; in ExtractFromIp6Address()
Dnd6.cpp144 uint8_t RouteInfoOption::OptionLengthForPrefix(uint8_t aPrefixLength) in OptionLengthForPrefix() argument
158 if (aPrefixLength == kMaxPrefixLenForOptionLen1) in OptionLengthForPrefix()
162 else if (aPrefixLength <= kMaxPrefixLenForOptionLen2) in OptionLengthForPrefix()
Dnd6.hpp416 static uint8_t OptionLengthForPrefix(uint8_t aPrefixLength);
426 static uint16_t OptionSizeForPrefix(uint8_t aPrefixLength) in OptionSizeForPrefix() argument
428 return kLengthUnit * OptionLengthForPrefix(aPrefixLength); in OptionSizeForPrefix()
Dnetif.cpp568 void Netif::UnicastAddress::InitAsSlaacOrigin(uint8_t aPrefixLength, bool aPreferred) in InitAsSlaacOrigin() argument
571 mPrefixLength = aPrefixLength; in InitAsSlaacOrigin()
Dnetif.hpp144 void InitAsSlaacOrigin(uint8_t aPrefixLength, bool aPreferred);
Dip4_types.hpp147 void ExtractFromIp6Address(uint8_t aPrefixLength, const Ip6::Address &aIp6Address);
/openthread-3.7.0/src/core/thread/
Dnetwork_data_tlvs.hpp640 void Init(uint8_t aDomainId, uint8_t aPrefixLength, const uint8_t *aPrefix) in Init() argument
645 mPrefixLength = aPrefixLength; in Init()
646 memcpy(GetPrefix(), aPrefix, Ip6::Prefix::SizeForLength(aPrefixLength)); in Init()
737 bool IsEqual(const uint8_t *aPrefix, uint8_t aPrefixLength) const in IsEqual()
739 return (aPrefixLength == mPrefixLength) && in IsEqual()
740 … (Ip6::Prefix::MatchLength(GetPrefix(), aPrefix, Ip6::Prefix::SizeForLength(aPrefixLength)) >= in IsEqual()
900 static uint16_t CalculateSize(uint8_t aPrefixLength) in CalculateSize() argument
902 return sizeof(PrefixTlv) + Ip6::Prefix::SizeForLength(aPrefixLength); in CalculateSize()
Dnetwork_data.hpp436 const PrefixTlv *FindPrefix(const uint8_t *aPrefix, uint8_t aPrefixLength) const;
679 PrefixTlv *FindPrefix(const uint8_t *aPrefix, uint8_t aPrefixLength) in FindPrefix() argument
681 return AsNonConst(AsConst(this)->FindPrefix(aPrefix, aPrefixLength)); in FindPrefix()
Dnetwork_data.cpp408 const PrefixTlv *NetworkData::FindPrefix(const uint8_t *aPrefix, uint8_t aPrefixLength) const in FindPrefix()
415 if (prefixTlv->IsEqual(aPrefix, aPrefixLength)) in FindPrefix()
/openthread-3.7.0/tests/unit/
Dtest_ip_address.cpp321 bool CheckPrefix(const Ip6::Address &aAddress, const uint8_t *aPrefix, uint8_t aPrefixLength) in CheckPrefix() argument
327 for (uint8_t bit = 0; bit < aPrefixLength; bit++) in CheckPrefix()
342 …eckPrefixInIid(const Ip6::InterfaceIdentifier &aIid, const uint8_t *aPrefix, uint8_t aPrefixLength) in CheckPrefixInIid() argument
348 for (uint8_t bit = 64; bit < aPrefixLength; bit++) in CheckPrefixInIid()
363 …eckInterfaceId(const Ip6::Address &aAddress1, const Ip6::Address &aAddress2, uint8_t aPrefixLength) in CheckInterfaceId() argument
369 for (size_t bit = aPrefixLength; bit < sizeof(Ip6::Address) * kBitsPerByte; bit++) in CheckInterfaceId()
439 Ip6::Prefix PrefixFrom(const char *aAddressString, uint8_t aPrefixLength) in PrefixFrom() argument
445 prefix.Set(address.GetBytes(), aPrefixLength); in PrefixFrom()
Dtest_routing_manager.cpp698 Ip6::Prefix PrefixFromString(const char *aString, uint8_t aPrefixLength) in PrefixFromString() argument
703 prefix.mLength = aPrefixLength; in PrefixFromString()
/openthread-3.7.0/src/core/api/
Dnat64_api.cpp138 void otIp4ExtractFromIp6Address(uint8_t aPrefixLength, const otIp6Address *aIp6Address, otIp4Addres… in otIp4ExtractFromIp6Address() argument
140 AsCoreType(aIp4Address).ExtractFromIp6Address(aPrefixLength, AsCoreType(aIp6Address)); in otIp4ExtractFromIp6Address()
/openthread-3.7.0/include/openthread/
Dnat64.h417 void otIp4ExtractFromIp6Address(uint8_t aPrefixLength, const otIp6Address *aIp6Address, otIp4Addres…
/openthread-3.7.0/src/posix/platform/
Dnetif.cpp1156 static bool isRequiredAnycast(const uint8_t *aAddress, uint8_t aPrefixLength) in isRequiredAnycast() argument
1159 uint8_t firstBytePos = aPrefixLength / 8; in isRequiredAnycast()
1160 uint8_t remainingBits = aPrefixLength % 8; in isRequiredAnycast()
1162 if (aPrefixLength == OT_IP6_ADDRESS_BITSIZE) in isRequiredAnycast()