/openthread-3.7.0/src/core/net/ |
D | ip6_address.hpp | 225 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);
|
D | ip6_address.cpp | 81 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()
|
D | ip4_types.cpp | 80 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()
|
D | nd6.cpp | 144 uint8_t RouteInfoOption::OptionLengthForPrefix(uint8_t aPrefixLength) in OptionLengthForPrefix() argument 158 if (aPrefixLength == kMaxPrefixLenForOptionLen1) in OptionLengthForPrefix() 162 else if (aPrefixLength <= kMaxPrefixLenForOptionLen2) in OptionLengthForPrefix()
|
D | nd6.hpp | 416 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()
|
D | netif.cpp | 568 void Netif::UnicastAddress::InitAsSlaacOrigin(uint8_t aPrefixLength, bool aPreferred) in InitAsSlaacOrigin() argument 571 mPrefixLength = aPrefixLength; in InitAsSlaacOrigin()
|
D | netif.hpp | 144 void InitAsSlaacOrigin(uint8_t aPrefixLength, bool aPreferred);
|
D | ip4_types.hpp | 147 void ExtractFromIp6Address(uint8_t aPrefixLength, const Ip6::Address &aIp6Address);
|
/openthread-3.7.0/src/core/thread/ |
D | network_data_tlvs.hpp | 640 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()
|
D | network_data.hpp | 436 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()
|
D | network_data.cpp | 408 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/ |
D | test_ip_address.cpp | 321 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()
|
D | test_routing_manager.cpp | 698 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/ |
D | nat64_api.cpp | 138 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/ |
D | nat64.h | 417 void otIp4ExtractFromIp6Address(uint8_t aPrefixLength, const otIp6Address *aIp6Address, otIp4Addres…
|
/openthread-3.7.0/src/posix/platform/ |
D | netif.cpp | 1156 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()
|