/openthread-3.6.0/examples/platforms/utils/ |
D | soft_source_match_table.c | 168 checksum += (uint16_t)aExtAddress->m8[0] | (uint16_t)(aExtAddress->m8[1] << 8); in utilsSoftSrcMatchExtFindEntry() 169 checksum += (uint16_t)aExtAddress->m8[2] | (uint16_t)(aExtAddress->m8[3] << 8); in utilsSoftSrcMatchExtFindEntry() 170 checksum += (uint16_t)aExtAddress->m8[4] | (uint16_t)(aExtAddress->m8[5] << 8); in utilsSoftSrcMatchExtFindEntry() 171 checksum += (uint16_t)aExtAddress->m8[6] | (uint16_t)(aExtAddress->m8[7] << 8); in utilsSoftSrcMatchExtFindEntry() 205 checksum += (uint16_t)aExtAddress->m8[0] | (uint16_t)(aExtAddress->m8[1] << 8); in addToSrcMatchExtIndirect() 206 checksum += (uint16_t)aExtAddress->m8[2] | (uint16_t)(aExtAddress->m8[3] << 8); in addToSrcMatchExtIndirect() 207 checksum += (uint16_t)aExtAddress->m8[4] | (uint16_t)(aExtAddress->m8[5] << 8); in addToSrcMatchExtIndirect() 208 checksum += (uint16_t)aExtAddress->m8[6] | (uint16_t)(aExtAddress->m8[7] << 8); in addToSrcMatchExtIndirect()
|
/openthread-3.6.0/src/core/net/ |
D | ip6_address.cpp | 57 m8[0] = 0xfd; in GenerateRandomUla() 59 return Random::Crypto::FillBuffer(&m8[1], kSize - 1); in GenerateRandomUla() 67 memcpy(mPrefix.mFields.m8, aPrefix, SizeForLength(aLength)); in Set() 77 bool Prefix::IsMulticast(void) const { return (mLength >= 8) && (mPrefix.mFields.m8[0] == 0xff); } in IsMulticast() 79 bool Prefix::IsUniqueLocal(void) const { return (mLength >= 7) && ((mPrefix.mFields.m8[0] & 0xfe) =… in IsUniqueLocal() 95 (MatchLength(GetBytes(), aSubPrefix.m8, NetworkPrefix::kSize) >= NetworkPrefix::kLength); in ContainsPrefix() 105 mPrefix.mFields.m8[byteLength - 1] &= lastByteBitMask; in Tidy() 108 for (uint16_t i = byteLength; i < GetArrayLength(mPrefix.mFields.m8); i++) in Tidy() 110 mPrefix.mFields.m8[i] = 0; in Tidy() 254 mFields.m8[6] == 0xff && mFields.m8[7] >= 0x80); in IsReservedSubnetAnycast() [all …]
|
D | ip4_types.cpp | 51 SuccessOrExit(StringParseUint8(cur, mFields.m8[index])); in FromString() 99 for (uint8_t &i : mFields.m8) in ExtractFromIp6Address() 117 aWriter.Append("%d.%d.%d.%d", mFields.m8[0], mFields.m8[1], mFields.m8[2], mFields.m8[3]); in ToString() 188 memcpy(mAddress.mFields.m8, aAddress, Ip4::Address::kSize); in Set()
|
D | ip6_address.hpp | 114 const uint8_t *GetBytes(void) const { return mPrefix.mFields.m8; } in GetBytes() 155 … void Set(const NetworkPrefix &aNetworkPrefix) { Set(aNetworkPrefix.m8, NetworkPrefix::kLength); } in Set() 432 const uint8_t *GetBytes(void) const { return mFields.m8; } in GetBytes() 619 const uint8_t *GetBytes(void) const { return mFields.m8; } in GetBytes() 628 void SetBytes(const uint8_t *aBuffer) { memcpy(mFields.m8, aBuffer, kSize); } in SetBytes() 681 bool IsMulticast(void) const { return mFields.m8[0] == 0xff; } in IsMulticast() 829 void GetPrefix(uint8_t aLength, Prefix &aPrefix) const { aPrefix.Set(mFields.m8, aLength); } in GetPrefix() 864 …void SetPrefix(const uint8_t *aPrefix, uint8_t aPrefixLength) { CopyBits(mFields.m8, aPrefix, aPre… in SetPrefix() 902 SetMulticastNetworkPrefix(aNetworkPrefix.m8, NetworkPrefix::kLength); in SetMulticastNetworkPrefix() 1029 …bool operator<(const Address &aOther) const { return memcmp(mFields.m8, aOther.mFields.m8, sizeof(… in operator <()
|
D | ip6_headers.hpp | 125 bool IsVersion6(void) const { return (mVerTcFlow.m8[0] & kVersionMask) == kVersion6; } in IsVersion6() 197 Ecn GetEcn(void) const { return static_cast<Ecn>((mVerTcFlow.m8[1] & kEcnMask) >> kEcnOffset); } in GetEcn() 205 …void SetEcn(Ecn aEcn) { mVerTcFlow.m8[1] = (mVerTcFlow.m8[1] & ~kEcnMask) | ((aEcn << kEcnOffset) … in SetEcn() 361 uint8_t m8[sizeof(uint32_t) / sizeof(uint8_t)]; member
|
/openthread-3.6.0/src/core/meshcop/ |
D | meshcop.cpp | 58 memcpy(m8, aPskdString, StringLength(aPskdString, sizeof(m8))); in SetFrom() 68 for (size_t i = 0; i < sizeof(m8); i++) in operator ==() 70 if (m8[i] != aOther.m8[i]) in operator ==() 76 if (m8[i] == '\0') in operator ==() 122 return (BigEndian::ReadUint64(aJoinerId.m8) & mask) == (mValue & mask); in Matches() 132 uint8_t *cur = &aExtAddress.m8[sizeof(Mac::ExtAddress) - 1]; in CopyTo() 194 memset(m8, 0, sizeof(m8)); in Init() 200 m8[0] = kPermitAll; in SetToPermitAllJoiners() 255 for (uint8_t b : aJoinerId.m8) in CalculateHashBitIndexes() 281 if (m8[i] != aMatch) in DoesAllMatch() [all …]
|
D | network_name.cpp | 56 return NameData(m8, static_cast<uint8_t>(StringLength(m8, kMaxSize + 1))); in GetAsData() 94 if (data.MatchesBytesIn(m8) && m8[newLen] == '\0') in Set() 99 data.CopyBytesTo(m8); in Set() 100 m8[newLen] = '\0'; in Set()
|
D | meshcop.hpp | 81 bool IsValid(void) const { return IsPskdValid(m8); } in IsValid() 102 const char *GetAsCString(void) const { return m8; } in GetAsCString() 112 uint8_t GetLength(void) const { return static_cast<uint8_t>(StringLength(m8, kMaxLength + 1)); } in GetLength() 298 const uint8_t *GetData(void) const { return m8; } in GetData() 306 uint8_t *GetData(void) { return m8; } in GetData() 400 bool GetBit(uint8_t aBit) const { return (m8[BitIndex(aBit)] & BitFlag(aBit)) != 0; } in GetBit() 401 void SetBit(uint8_t aBit) { m8[BitIndex(aBit)] |= BitFlag(aBit); } in SetBit() 402 void ClearBit(uint8_t aBit) { m8[BitIndex(aBit)] &= ~BitFlag(aBit); } in ClearBit()
|
D | network_name.hpp | 123 NetworkName(void) { m8[0] = '\0'; } in NetworkName() 131 const char *GetAsCString(void) const { return m8; } in GetAsCString()
|
/openthread-3.6.0/src/posix/platform/ |
D | power.hpp | 46 Domain(void) { m8[0] = '\0'; } in Domain() 68 bool operator==(const Domain &aOther) const { return strcmp(m8, aOther.m8) == 0; } in operator ==() 79 …bool operator!=(const char *aCString) const { return (aCString == nullptr) ? true : strcmp(m8, aCS… in operator !=() 87 const char *AsCString(void) const { return m8; } in AsCString() 91 char m8[kDomainSize + 1]; member in ot::Power::Domain
|
D | firewall.cpp | 106 memcpy(prefix.mPrefix.mFields.m8, otThreadGetMeshLocalPrefix(aInstance)->m8, in UpdateIpSets() 107 sizeof(otThreadGetMeshLocalPrefix(aInstance)->m8)); in UpdateIpSets()
|
/openthread-3.6.0/tests/unit/ |
D | test_pskc.cpp | 51 VerifyOrQuit(memcmp(pskc.m8, expectedPskc, OT_PSKC_MAX_SIZE) == 0); in TestMinimumPassphrase() 82 VerifyOrQuit(memcmp(pskc.m8, expectedPskc, sizeof(pskc.m8)) == 0); in TestMaximumPassphrase() 98 VerifyOrQuit(memcmp(pskc.m8, expectedPskc, sizeof(pskc.m8)) == 0); in TestExampleInSpec()
|
D | test_ip_address.cpp | 332 if ((aAddress.mFields.m8[index] & mask) != (aPrefix[index] & mask)) in CheckPrefix() 353 if ((aIid.mFields.m8[index - 8] & mask) != (aPrefix[index] & mask)) in CheckPrefixInIid() 374 if ((aAddress1.mFields.m8[index] & mask) != (aAddress2.mFields.m8[index] & mask)) in CheckInterfaceId() 403 memcpy(address.mFields.m8, prefix, sizeof(address)); in TestIp6AddressSetPrefix() 463 memcpy(address1.mFields.m8, prefixBytes, sizeof(address1)); in TestIp6Prefix() 465 address2.mFields.m8[0] ^= 0x80; // Change first bit. in TestIp6Prefix() 517 prefix2.mPrefix.mFields.m8[index] ^= mask; in TestIp6Prefix() 752 VerifyOrQuit(memcmp(answer.mPrefix.mFields.m8, prefix.mPrefix.mFields.m8, in TestIp6PrefixTidy() 753 sizeof(answer.mPrefix.mFields.m8)) == 0); in TestIp6PrefixTidy()
|
/openthread-3.6.0/src/core/mac/ |
D | mac_types.hpp | 137 CopyAddress(m8, aBuffer, aByteOrder); in Set() 147 bool IsGroup(void) const { return (m8[0] & kGroupFlag) != 0; } in IsGroup() 159 m8[0] |= kGroupFlag; in SetGroup() 163 m8[0] &= ~kGroupFlag; in SetGroup() 171 void ToggleGroup(void) { m8[0] ^= kGroupFlag; } in ToggleGroup() 180 bool IsLocal(void) const { return (m8[0] & kLocalFlag) != 0; } in IsLocal() 192 m8[0] |= kLocalFlag; in SetLocal() 196 m8[0] &= ~kLocalFlag; in SetLocal() 204 void ToggleLocal(void) { m8[0] ^= kLocalFlag; } in ToggleLocal() 215 CopyAddress(aBuffer, m8, aByteOrder); in CopyTo() [all …]
|
/openthread-3.6.0/src/core/thread/ |
D | lowpan.cpp | 164 if (aIpAddr.mFields.m8[i]) in CompressMulticast() 167 if (aIpAddr.mFields.m8[1] == 0x02 && i >= 15) in CompressMulticast() 170 SuccessOrExit(error = aFrameBuilder.AppendUint8(aIpAddr.mFields.m8[15])); in CompressMulticast() 176 SuccessOrExit(error = aFrameBuilder.AppendUint8(aIpAddr.mFields.m8[1])); in CompressMulticast() 177 SuccessOrExit(error = aFrameBuilder.AppendBytes(aIpAddr.mFields.m8 + 13, 3)); in CompressMulticast() 183 SuccessOrExit(error = aFrameBuilder.AppendUint8(aIpAddr.mFields.m8[1])); in CompressMulticast() 184 SuccessOrExit(error = aFrameBuilder.AppendBytes(aIpAddr.mFields.m8 + 11, 5)); in CompressMulticast() 191 if (multicastContext.mPrefix.GetLength() == aIpAddr.mFields.m8[3] && in CompressMulticast() 192 memcmp(multicastContext.mPrefix.GetBytes(), aIpAddr.mFields.m8 + 4, 8) == 0) in CompressMulticast() 195 SuccessOrExit(error = aFrameBuilder.AppendBytes(aIpAddr.mFields.m8 + 1, 2)); in CompressMulticast() [all …]
|
D | link_metrics_tlvs.hpp | 134 uint8_t GetMetricsValue8(void) const { return mMetricsValue.m8; } in GetMetricsValue8() 152 mMetricsValue.m8 = aMetricsValue; in SetMetricsValue8() 172 uint8_t m8; member
|
D | key_manager.cpp | 296 cryptoKey.Set(mNetworkKey.m8, NetworkKey::kSize); in ComputeKeys() 318 cryptoKey.Set(mNetworkKey.m8, NetworkKey::kSize); in ComputeTrelKey() 325 hkdf.Expand(kTrelInfoString, sizeof(kTrelInfoString), aKey.m8, Mac::Key::kSize); in ComputeTrelKey() 523 …SuccessOrAssert(Crypto::Storage::ExportKey(mNetworkKeyRef, aNetworkKey.m8, NetworkKey::kSize, keyL… in GetNetworkKey() 542 SuccessOrAssert(Crypto::Storage::ExportKey(mPskcRef, aPskc.m8, Pskc::kSize, keyLen)); in GetPskc() 578 … Crypto::Storage::kTypePersistent, aNetworkKey.m8, NetworkKey::kSize)); in StoreNetworkKey() 597 … Crypto::Storage::kTypePersistent, aPskc.m8, Pskc::kSize)); in StorePskc()
|
/openthread-3.6.0/src/cli/ |
D | cli_mac_filter.cpp | 95 for (uint8_t byte : aExtAddress.m8) in IsDefaultRss() 185 SuccessOrExit(error = aArgs[1].ParseAsHexString(extAddr.m8)); in Process() 214 SuccessOrExit(error = aArgs[1].ParseAsHexString(extAddr.m8)); in Process() 361 SuccessOrExit(error = aArgs[1].ParseAsHexString(extAddr.m8)); in Process() 391 SuccessOrExit(error = aArgs[1].ParseAsHexString(extAddr.m8)); in Process() 420 SuccessOrExit(error = aArgs[1].ParseAsHexString(extAddr.m8)); in Process()
|
D | cli_output.cpp | 195 …OutputFormat("%x:%x:%x:%x::/64", (aPrefix.m8[0] << 8) | aPrefix.m8[1], (aPrefix.m8[2] << 8) | aPre… in OutputIp6Prefix() 196 (aPrefix.m8[4] << 8) | aPrefix.m8[5], (aPrefix.m8[6] << 8) | aPrefix.m8[7]); in OutputIp6Prefix()
|
D | cli_dataset.cpp | 244 …xtendedPanId(const otOperationalDataset &aDataset) { OutputBytesLine(aDataset.mExtendedPanId.m8); } in OutputExtendedPanId() 283 …utputNetworkKey(const otOperationalDataset &aDataset) { OutputBytesLine(aDataset.mNetworkKey.m8); } in OutputNetworkKey() 304 …utNetworkName(const otOperationalDataset &aDataset) { OutputLine("%s", aDataset.mNetworkName.m8); } in OutputNetworkName() 369 void Dataset::OutputPskc(const otOperationalDataset &aDataset) { OutputBytesLine(aDataset.mPskc.m8)… in OutputPskc() 427 return aArgs++->ParseAsHexString(aDataset.mExtendedPanId.m8); in ParseExtendedPanId() 437 memcpy(aDataset.mMeshLocalPrefix.m8, prefix.mFields.m8, sizeof(aDataset.mMeshLocalPrefix.m8)); in ParseMeshLocalPrefix() 445 return aArgs++->ParseAsHexString(aDataset.mNetworkKey.m8); in ParseNetworkKey() 499 ExitNow(error = aArgs++->ParseAsHexString(aDataset.mPskc.m8)); in ParsePskc()
|
/openthread-3.6.0/src/lib/spinel/ |
D | radio_spinel.cpp | 157 SuccessOrExit(error = Get(SPINEL_PROP_HWADDR, SPINEL_DATATYPE_EUI64_S, sIeeeEui64.m8)); in Init() 980 …otError error = otPlatCryptoExportKey(aKeyMaterial.mKeyMaterial.mKeyRef, aKey.m8, sizeof(aKey), &k… in ReadMacKey() 1034 … aKeyIdMode, aKeyId, aPrevKey.m8, sizeof(aPrevKey), aCurrKey.m8, sizeof(aCurrKey), in SetMacKey() 1035 aNextKey.m8, sizeof(aNextKey))); in SetMacKey() 1069 memcpy(aIeeeEui64, sIeeeEui64.m8, sizeof(sIeeeEui64.m8)); in GetIeeeEui64() 1078 SuccessOrExit(error = Set(SPINEL_PROP_MAC_15_4_LADDR, SPINEL_DATATYPE_EUI64_S, aExtAddress.m8)); in SetExtendedAddress() 1131 … Insert(SPINEL_PROP_MAC_SRC_MATCH_EXTENDED_ADDRESSES, SPINEL_DATATYPE_EUI64_S, aExtAddress.m8)); in AddSrcMatchExtEntry() 1138 if (memcmp(aExtAddress.m8, mSrcMatchExtEntries[i].m8, OT_EXT_ADDRESS_SIZE) == 0) in AddSrcMatchExtEntry() 1178 … Remove(SPINEL_PROP_MAC_SRC_MATCH_EXTENDED_ADDRESSES, SPINEL_DATATYPE_EUI64_S, aExtAddress.m8)); in ClearSrcMatchExtEntry() 1183 if (memcmp(mSrcMatchExtEntries[i].m8, aExtAddress.m8, OT_EXT_ADDRESS_SIZE) == 0) in ClearSrcMatchExtEntry() [all …]
|
/openthread-3.6.0/include/openthread/ |
D | dataset.h | 67 uint8_t m8[OT_NETWORK_KEY_SIZE]; ///< Byte values member 92 char m8[OT_NETWORK_NAME_MAX_SIZE + 1]; ///< Byte values. The `+ 1` is for null char. member 104 uint8_t m8[OT_EXT_PAN_ID_SIZE]; ///< Byte values member 130 uint8_t m8[OT_PSKC_MAX_SIZE]; ///< Byte values member
|
/openthread-3.6.0/src/core/utils/ |
D | heap.hpp | 265 uint16_t offset = static_cast<uint16_t>(reinterpret_cast<uint8_t *>(aPointer) - mMemory.m8); in BlockOf() 324 return static_cast<uint16_t>(reinterpret_cast<const uint8_t *>(&aBlock) - mMemory.m8); in BlockOffset() 343 uint8_t m8[kMemorySize]; member
|
/openthread-3.6.0/src/core/backbone_router/ |
D | bbr_local.cpp | 71 mAllNetworkBackboneRouters.mFields.m8[0] = 0xff; // Multicast in Local() 72 mAllNetworkBackboneRouters.mFields.m8[1] = 0x32; // Flags = 3, Scope = 2 in Local() 73 mAllNetworkBackboneRouters.mFields.m8[15] = 3; // Group ID = 3 in Local() 78 mAllDomainBackboneRouters.mFields.m8[0] = 0xff; // Multicast in Local() 79 mAllDomainBackboneRouters.mFields.m8[1] = 0x32; // Flags = 3, Scope = 2 in Local() 80 mAllDomainBackboneRouters.mFields.m8[15] = 3; // Group ID = 3 in Local()
|
/openthread-3.6.0/include/openthread/platform/ |
D | crypto.h | 151 uint8_t m8[OT_CRYPTO_SHA256_HASH_SIZE]; ///< Hash bytes. member 197 uint8_t m8[OT_CRYPTO_ECDSA_PUBLIC_KEY_SIZE]; member 220 uint8_t m8[OT_CRYPTO_ECDSA_SIGNATURE_SIZE]; member
|