Home
last modified time | relevance | path

Searched refs:m8 (Results 1 – 25 of 65) sorted by relevance

123

/openthread-2.7.6/examples/platforms/utils/
Dsoft_source_match_table.c170 checksum += (uint16_t)aExtAddress->m8[0] | (uint16_t)(aExtAddress->m8[1] << 8); in utilsSoftSrcMatchExtFindEntry()
171 checksum += (uint16_t)aExtAddress->m8[2] | (uint16_t)(aExtAddress->m8[3] << 8); in utilsSoftSrcMatchExtFindEntry()
172 checksum += (uint16_t)aExtAddress->m8[4] | (uint16_t)(aExtAddress->m8[5] << 8); in utilsSoftSrcMatchExtFindEntry()
173 checksum += (uint16_t)aExtAddress->m8[6] | (uint16_t)(aExtAddress->m8[7] << 8); in utilsSoftSrcMatchExtFindEntry()
207 checksum += (uint16_t)aExtAddress->m8[0] | (uint16_t)(aExtAddress->m8[1] << 8); in addToSrcMatchExtIndirect()
208 checksum += (uint16_t)aExtAddress->m8[2] | (uint16_t)(aExtAddress->m8[3] << 8); in addToSrcMatchExtIndirect()
209 checksum += (uint16_t)aExtAddress->m8[4] | (uint16_t)(aExtAddress->m8[5] << 8); in addToSrcMatchExtIndirect()
210 checksum += (uint16_t)aExtAddress->m8[6] | (uint16_t)(aExtAddress->m8[7] << 8); in addToSrcMatchExtIndirect()
/openthread-2.7.6/src/core/thread/
Dmle_types.cpp68 m8[0] = 0xfd; in SetFromExtendedPanId()
69 memcpy(&m8[1], aExtendedPanId.m8, 5); in SetFromExtendedPanId()
70 m8[6] = 0x00; in SetFromExtendedPanId()
71 m8[7] = 0x00; in SetFromExtendedPanId()
Dlowpan.cpp85 aIpAddress.mFields.m8[i / CHAR_BIT] &= ~(0x80 >> (i % CHAR_BIT)); in ComputeIid()
86 …aIpAddress.mFields.m8[i / CHAR_BIT] |= aContext.mPrefix.GetBytes()[i / CHAR_BIT] & (0x80 >> (i % C… in ComputeIid()
119 SuccessOrExit(error = buf.Write(aIpAddr.mFields.m8 + 14, 2)); in CompressSourceIid()
162 SuccessOrExit(error = buf.Write(aIpAddr.mFields.m8 + 14, 2)); in CompressDestinationIid()
190 if (aIpAddr.mFields.m8[i]) in CompressMulticast()
193 if (aIpAddr.mFields.m8[1] == 0x02 && i >= 15) in CompressMulticast()
196 SuccessOrExit(error = buf.Write(aIpAddr.mFields.m8[15])); in CompressMulticast()
202 SuccessOrExit(error = buf.Write(aIpAddr.mFields.m8[1])); in CompressMulticast()
203 SuccessOrExit(error = buf.Write(aIpAddr.mFields.m8 + 13, 3)); in CompressMulticast()
209 SuccessOrExit(error = buf.Write(aIpAddr.mFields.m8[1])); in CompressMulticast()
[all …]
Dkey_manager.cpp256 hmac.Start(mNetworkKey.m8, sizeof(mNetworkKey.m8)); in ComputeKeys()
274 hkdf.Extract(salt, sizeof(salt), mNetworkKey.m8, sizeof(NetworkKey)); in ComputeTrelKey()
275 hkdf.Expand(kTrelInfoString, sizeof(kTrelInfoString), aTrelKey.m8, sizeof(Mac::Key)); in ComputeTrelKey()
405 memcpy(mKek.m8, aKek, sizeof(mKek)); in SetKek()
Dkey_manager.hpp147 Error GenerateRandom(void) { return Random::Crypto::FillBuffer(m8, sizeof(m8)); } in GenerateRandom()
166 Error GenerateRandom(void) { return Random::Crypto::FillBuffer(m8, sizeof(Pskc)); } in GenerateRandom()
/openthread-2.7.6/src/core/net/
Dip6_address.cpp56 m8[0] = 0xfd; in GenerateRandomUla()
58 return Random::Crypto::FillBuffer(&m8[1], kSize - 1); in GenerateRandomUla()
66 memcpy(mPrefix.mFields.m8, aPrefix, SizeForLength(aLength)); in Set()
184 …32[0] == HostSwap32(0xfdffffff) && mFields.m16[2] == HostSwap16(0xffff) && mFields.m8[6] == 0xff && in IsReservedSubnetAnycast()
185 mFields.m8[7] >= 0x80); in IsReservedSubnetAnycast()
194 error = Random::Crypto::FillBuffer(mFields.m8, kSize); in GenerateRandom()
201 memcpy(mFields.m8, aBuffer, kSize); in SetBytes()
210 addr.CopyTo(mFields.m8); in SetFromExtAddress()
215 aExtAddress.Set(mFields.m8); in ConvertToExtAddress()
221 aMacAddress.SetExtended(mFields.m8); in ConvertToMacAddress()
[all …]
Dip6_address.hpp110 const uint8_t *GetBytes(void) const { return mPrefix.mFields.m8; } in GetBytes()
143 … void Set(const NetworkPrefix &aNetworkPrefix) { Set(aNetworkPrefix.m8, NetworkPrefix::kLength); } in Set()
171 … return mLength >= 10 && mPrefix.mFields.m8[0] == 0xfe && (mPrefix.mFields.m8[1] & 0xc0) == 0x80; in IsLinkLocal()
181 bool IsMulticast(void) const { return mLength >= 8 && mPrefix.mFields.m8[0] == 0xff; } in IsMulticast()
190 … bool IsUniqueLocal(void) const { return mLength >= 7 && (mPrefix.mFields.m8[0] & 0xfe) == 0xfc; } in IsUniqueLocal()
231 … (MatchLength(GetBytes(), aSubPrefix.m8, NetworkPrefix::kSize) >= NetworkPrefix::kLength); in ContainsPrefix()
394 const uint8_t *GetBytes(void) const { return mFields.m8; } in GetBytes()
569 const uint8_t *GetBytes(void) const { return mFields.m8; } in GetBytes()
578 void SetBytes(const uint8_t *aBuffer) { memcpy(mFields.m8, aBuffer, kSize); } in SetBytes()
631 bool IsMulticast(void) const { return mFields.m8[0] == 0xff; } in IsMulticast()
[all …]
Dip6_headers.hpp168 bool IsVersion6(void) const { return (mVersionClassFlow.m8[0] & kVersionMask) == kVersion6; } in IsVersion6()
199 uint8_t GetEcn(void) const { return (mVersionClassFlow.m8[1] & kEcnMask) >> kEcnOffset; } in GetEcn()
209 …mVersionClassFlow.m8[1] = (mVersionClassFlow.m8[1] & ~kEcnMask) | ((aEcn << kEcnOffset) & kEcnMask… in SetEcn()
324 uint8_t m8[sizeof(uint32_t) / sizeof(uint8_t)]; member
/openthread-2.7.6/src/core/mac/
Dmac_types.hpp134 CopyAddress(m8, aBuffer, aByteOrder); in Set()
144 bool IsGroup(void) const { return (m8[0] & kGroupFlag) != 0; } in IsGroup()
156 m8[0] |= kGroupFlag; in SetGroup()
160 m8[0] &= ~kGroupFlag; in SetGroup()
168 void ToggleGroup(void) { m8[0] ^= kGroupFlag; } in ToggleGroup()
177 bool IsLocal(void) const { return (m8[0] & kLocalFlag) != 0; } in IsLocal()
189 m8[0] |= kLocalFlag; in SetLocal()
193 m8[0] &= ~kLocalFlag; in SetLocal()
201 void ToggleLocal(void) { m8[0] ^= kLocalFlag; } in ToggleLocal()
212 CopyAddress(aBuffer, m8, aByteOrder); in CopyTo()
[all …]
Dmac_types.cpp60 IgnoreError(Random::Crypto::FillBuffer(m8, sizeof(ExtAddress))); in GenerateRandom()
70 string.AppendHexBytes(m8, sizeof(ExtAddress)); in ToString()
99 string.AppendHexBytes(GetExtended().m8, sizeof(ExtAddress)); in ToString()
117 string.AppendHexBytes(m8, sizeof(ExtendedPanId)); in ToString()
140 uint8_t len = static_cast<uint8_t>(StringLength(m8, kMaxSize + 1)); in GetAsData()
142 return NameData(m8, len); in GetAsData()
174 …VerifyOrExit(memcmp(m8, aNameData.GetBuffer(), newLen) || (m8[newLen] != '\0'), error = kErrorAlre… in Set()
176 memcpy(m8, aNameData.GetBuffer(), newLen); in Set()
177 m8[newLen] = '\0'; in Set()
/openthread-2.7.6/src/core/meshcop/
Dmeshcop.cpp56 memcpy(m8, aPskdString, StringLength(aPskdString, sizeof(m8))); in SetFrom()
66 for (uint8_t i = 0; i < sizeof(m8); i++) in operator ==()
68 if (m8[i] != aOther.m8[i]) in operator ==()
74 if (m8[i] == '\0') in operator ==()
120 return (Encoding::BigEndian::ReadUint64(aJoinerId.m8) & mask) == (mValue & mask); in Matches()
130 uint8_t *cur = &aExtAddress.m8[sizeof(Mac::ExtAddress) - 1]; in CopyTo()
191 memset(m8, 0, sizeof(m8)); in Init()
197 m8[0] = kPermitAll; in SetToPermitAllJoiners()
252 for (uint8_t b : aJoinerId.m8) in CalculateHashBitIndexes()
278 if (m8[i] != aMatch) in DoesAllMatch()
[all …]
Dmeshcop.hpp80 bool IsValid(void) const { return IsPskdValid(m8); } in IsValid()
101 const char *GetAsCString(void) const { return m8; } in GetAsCString()
111 uint8_t GetLength(void) const { return static_cast<uint8_t>(StringLength(m8, kMaxLength + 1)); } in GetLength()
297 const uint8_t *GetData(void) const { return m8; } in GetData()
305 uint8_t *GetData(void) { return m8; } in GetData()
399 bool GetBit(uint8_t aBit) const { return (m8[BitIndex(aBit)] & BitFlag(aBit)) != 0; } in GetBit()
400 void SetBit(uint8_t aBit) { m8[BitIndex(aBit)] |= BitFlag(aBit); } in SetBit()
401 void ClearBit(uint8_t aBit) { m8[BitIndex(aBit)] &= ~BitFlag(aBit); } in ClearBit()
/openthread-2.7.6/src/cli/
Dcli_dataset.cpp81 mInterpreter.OutputBytes(aDataset.mExtendedPanId.m8); in Print()
95 mInterpreter.OutputBytes(aDataset.mNetworkKey.m8); in Print()
102 mInterpreter.OutputLine("%s", aDataset.mNetworkName.m8); in Print()
113 mInterpreter.OutputBytes(aDataset.mPskc.m8); in Print()
355 mInterpreter.OutputBytes(sDataset.mExtendedPanId.m8); in ProcessExtPanId()
361 SuccessOrExit(error = aArgs[0].ParseAsHexString(sDataset.mExtendedPanId.m8)); in ProcessExtPanId()
388 … memcpy(sDataset.mMeshLocalPrefix.m8, prefix.mFields.m8, sizeof(sDataset.mMeshLocalPrefix.m8)); in ProcessMeshLocalPrefix()
404 mInterpreter.OutputBytes(sDataset.mNetworkKey.m8); in ProcessNetworkKey()
410 SuccessOrExit(error = aArgs[0].ParseAsHexString(sDataset.mNetworkKey.m8)); in ProcessNetworkKey()
426 mInterpreter.OutputLine("%s", sDataset.mNetworkName.m8); in ProcessNetworkName()
[all …]
/openthread-2.7.6/tests/unit/
Dtest_pskc.cpp49 VerifyOrQuit(memcmp(pskc.m8, expectedPskc, sizeof(pskc)) == 0); in TestMinimumPassphrase()
79 VerifyOrQuit(memcmp(pskc.m8, expectedPskc, sizeof(pskc)) == 0); in TestMaximumPassphrase()
94 VerifyOrQuit(memcmp(pskc.m8, expectedPskc, sizeof(pskc)) == 0); in TestExampleInSpec()
Dtest_ip_address.cpp211 if ((aAddress.mFields.m8[index] & mask) != (aPrefix[index] & mask)) in CheckPrefix()
232 if ((aAddress1.mFields.m8[index] & mask) != (aAddress2.mFields.m8[index] & mask)) in CheckInterfaceId()
260 memcpy(address.mFields.m8, prefix, sizeof(address)); in TestIp6AddressSetPrefix()
294 memcpy(address1.mFields.m8, prefixBytes, sizeof(address1)); in TestIp6Prefix()
296 address2.mFields.m8[0] ^= 0x80; // Change first bit. in TestIp6Prefix()
348 prefix2.mPrefix.mFields.m8[index] ^= mask; in TestIp6Prefix()
/openthread-2.7.6/include/openthread/
Ddataset.h64 uint8_t m8[OT_NETWORK_KEY_SIZE]; ///< Byte values member
83 char m8[OT_NETWORK_NAME_MAX_SIZE + 1]; ///< Byte values. The `+ 1` is for null char. member
95 uint8_t m8[OT_EXT_PAN_ID_SIZE]; ///< Byte values member
121 uint8_t m8[OT_PSKC_MAX_SIZE]; ///< Byte values member
Dip6.h71 uint8_t m8[OT_IP6_IID_SIZE]; ///< 8-bit fields member
92 uint8_t m8[OT_IP6_PREFIX_SIZE]; ///< The Network Prefix. member
131 uint8_t m8[OT_IP6_ADDRESS_SIZE]; ///< 8-bit fields member
Dnetdiag.h243 uint8_t m8[OT_NETWORK_BASE_TLV_MAX_LENGTH]; member
259 uint8_t m8[OT_NETWORK_BASE_TLV_MAX_LENGTH]; member
/openthread-2.7.6/src/core/utils/
Dheap.hpp264 uint16_t offset = static_cast<uint16_t>(reinterpret_cast<uint8_t *>(aPointer) - mMemory.m8); in BlockOf()
323 return static_cast<uint16_t>(reinterpret_cast<const uint8_t *>(&aBlock) - mMemory.m8); in BlockOffset()
342 uint8_t m8[kMemorySize]; member
Dslaac_address.cpp289 sha256.Update(aAddress.mAddress.mFields.m8, BitVectorBytes(aAddress.mPrefixLength)); in GenerateIid()
334 error = Random::Crypto::FillBuffer(aKey.m8, sizeof(IidSecretKey)); in GetIidSecretKey()
338 IgnoreError(Random::Crypto::FillBuffer(aKey.m8, sizeof(IidSecretKey))); in GetIidSecretKey()
/openthread-2.7.6/src/core/backbone_router/
Dbbr_local.cpp70 mAllNetworkBackboneRouters.mFields.m8[0] = 0xff; // Multicast in Local()
71 mAllNetworkBackboneRouters.mFields.m8[1] = 0x32; // Flags = 3, Scope = 2 in Local()
72 mAllNetworkBackboneRouters.mFields.m8[15] = 3; // Group ID = 3 in Local()
77 mAllDomainBackboneRouters.mFields.m8[0] = 0xff; // Multicast in Local()
78 mAllDomainBackboneRouters.mFields.m8[1] = 0x32; // Flags = 3, Scope = 2 in Local()
79 mAllDomainBackboneRouters.mFields.m8[15] = 3; // Group ID = 3 in Local()
/openthread-2.7.6/src/lib/spinel/
Dradio_spinel_impl.hpp247 SuccessOrExit(error = Get(SPINEL_PROP_HWADDR, SPINEL_DATATYPE_EUI64_S, mIeeeEui64.m8)); in Init()
625 memcpy(opDataset.mNetworkKey.m8, key, len); in ThreadDatasetHandler()
637 memcpy(opDataset.mNetworkName.m8, name, len); in ThreadDatasetHandler()
638 opDataset.mNetworkName.m8[len] = '\0'; in ThreadDatasetHandler()
650 memcpy(opDataset.mExtendedPanId.m8, xpanid, len); in ThreadDatasetHandler()
663 memcpy(opDataset.mMeshLocalPrefix.m8, addr, OT_MESH_LOCAL_PREFIX_SIZE); in ThreadDatasetHandler()
699 memcpy(opDataset.mPskc.m8, psk, OT_PSKC_MAX_SIZE); in ThreadDatasetHandler()
1150 … aKeyIdMode, aKeyId, aPrevKey.m8, sizeof(otMacKey), aCurrKey.m8, sizeof(otMacKey), in SetMacKey()
1151 aNextKey.m8, sizeof(otMacKey))); in SetMacKey()
1156 memcpy(mPrevKey.m8, aPrevKey.m8, OT_MAC_KEY_SIZE); in SetMacKey()
[all …]
Dspinel_encoder.hpp373 …rror WriteIp6Address(const otIp6Address &aIp6Addr) { return WriteIp6Address(aIp6Addr.mFields.m8); } in WriteIp6Address()
427 otError WriteEui64(const otExtAddress &aExtAddress) { return WriteEui64(aExtAddress.m8); } in WriteEui64()
/openthread-2.7.6/examples/platforms/cc2538/
Dradio.c326 …LogInfoPlat("ExtAddr=%X%X%X%X%X%X%X%X", aAddress->m8[7], aAddress->m8[6], aAddress->m8[5], aAddres… in otPlatRadioSetExtendedAddress()
327 aAddress->m8[3], aAddress->m8[2], aAddress->m8[1], aAddress->m8[0]); in otPlatRadioSetExtendedAddress()
331 ((volatile uint32_t *)RFCORE_FFSM_EXT_ADDR0)[i] = aAddress->m8[i]; in otPlatRadioSetExtendedAddress()
949 if (HWREG(addr + j) != aExtAddress->m8[j]) in findSrcMatchExtEntry()
1115 HWREG(addr++) = aExtAddress->m8[i]; in otPlatRadioAddSrcMatchExtEntry()
/openthread-2.7.6/src/posix/platform/
Dradio.cpp198 addr.m8[i] = aAddress->m8[sizeof(addr) - 1 - i]; in otPlatRadioSetExtendedAddress()
362 addr.m8[i] = aExtAddress->m8[sizeof(addr) - 1 - i]; in otPlatRadioAddSrcMatchExtEntry()
381 addr.m8[i] = aExtAddress->m8[sizeof(addr) - 1 - i]; in otPlatRadioClearSrcMatchExtEntry()

123