Home
last modified time | relevance | path

Searched refs:mFields (Results 1 – 25 of 33) sorted by relevance

12

/openthread-3.4.0/src/core/net/
Dip6_address.cpp69 memcpy(mPrefix.mFields.m8, aPrefix, SizeForLength(aLength)); in Set()
75 return (mLength >= 10) && ((mPrefix.mFields.m16[0] & HostSwap16(0xffc0)) == HostSwap16(0xfe80)); in IsLinkLocal()
78 bool Prefix::IsMulticast(void) const { return (mLength >= 8) && (mPrefix.mFields.m8[0] == 0xff); } in IsMulticast()
80 bool Prefix::IsUniqueLocal(void) const { return (mLength >= 7) && ((mPrefix.mFields.m8[0] & 0xfe) =… in IsUniqueLocal()
106 mPrefix.mFields.m8[byteLength - 1] &= lastByteBitMask; in Tidy()
109 for (uint16_t i = byteLength; i < GetArrayLength(mPrefix.mFields.m8); i++) in Tidy()
111 mPrefix.mFields.m8[i] = 0; in Tidy()
236 bool InterfaceIdentifier::IsUnspecified(void) const { return (mFields.m32[0] == 0) && (mFields.m32[… in IsUnspecified()
243 …faceIdentifier::IsSubnetRouterAnycast(void) const { return (mFields.m32[0] == 0) && (mFields.m32[1… in IsSubnetRouterAnycast()
254 …return (mFields.m32[0] == HostSwap32(0xfdffffff) && mFields.m16[2] == HostSwap16(0xffff) && mField… in IsReservedSubnetAnycast()
[all …]
Dip6_address.hpp116 const uint8_t *GetBytes(void) const { return mPrefix.mFields.m8; } in GetBytes()
124 uint16_t GetSubnetId(void) const { return HostSwap16(mPrefix.mFields.m16[3]); } in GetSubnetId()
165 void SetSubnetId(uint16_t aSubnetId) { mPrefix.mFields.m16[3] = HostSwap16(aSubnetId); } in SetSubnetId()
434 const uint8_t *GetBytes(void) const { return mFields.m8; } in GetBytes()
532 uint16_t GetLocator(void) const { return HostSwap16(mFields.m16[3]); } in GetLocator()
543 void SetLocator(uint16_t aLocator) { mFields.m16[3] = HostSwap16(aLocator); } in SetLocator()
621 const uint8_t *GetBytes(void) const { return mFields.m8; } in GetBytes()
630 void SetBytes(const uint8_t *aBuffer) { memcpy(mFields.m8, aBuffer, kSize); } in SetBytes()
683 bool IsMulticast(void) const { return mFields.m8[0] == 0xff; } in IsMulticast()
821 return static_cast<const NetworkPrefix &>(mFields.mComponents.mNetworkPrefix); in GetPrefix()
[all …]
Dip4_types.cpp49 SuccessOrExit(StringParseUint8(cur, mFields.m8[index])); in FromString()
97 for (uint8_t &i : mFields.m8) in ExtractFromIp6Address()
110mFields.m32 = (aCidr.mAddress.mFields.m32 & aCidr.SubnetMask()) | (HostSwap32(aHost) & aCidr.HostM… in SynthesizeFromCidrAndHost()
115 aWriter.Append("%d.%d.%d.%d", mFields.m8[0], mFields.m8[1], mFields.m8[2], mFields.m8[3]); in ToString()
186 memcpy(mAddress.mFields.m8, aAddress, Ip4::Address::kSize); in Set()
Dip4_types.hpp117 const uint8_t *GetBytes(void) const { return mFields.m8; } in GetBytes()
126 void SetBytes(const uint8_t *aBuffer) { memcpy(mFields.m8, aBuffer, kSize); } in SetBytes()
255 const uint8_t *GetBytes(void) const { return mAddress.mFields.m8; } in GetBytes()
Ddhcp6_server.hpp125 uint8_t GetContextId(void) const { return mAloc.mAddress.mFields.m8[15]; } in GetContextId()
/openthread-3.4.0/src/core/thread/
Ddua_manager.cpp252 if (mDelay.mFields.mRegistrationDelay == 0 || mDelay.mFields.mRegistrationDelay > aDelay) in UpdateRegistrationDelay()
254 mDelay.mFields.mRegistrationDelay = aDelay; in UpdateRegistrationDelay()
256 LogDebg("update regdelay %d", mDelay.mFields.mRegistrationDelay); in UpdateRegistrationDelay()
282 if (mDelay.mFields.mReregistrationDelay == 0 || mDelay.mFields.mReregistrationDelay > delay) in UpdateReregistrationDelay()
284 mDelay.mFields.mReregistrationDelay = delay; in UpdateReregistrationDelay()
286 LogDebg("update reregdelay %d", mDelay.mFields.mReregistrationDelay); in UpdateReregistrationDelay()
295 if (mDelay.mFields.mCheckDelay == 0 || mDelay.mFields.mCheckDelay > aDelay) in UpdateCheckDelay()
297 mDelay.mFields.mCheckDelay = aDelay; in UpdateCheckDelay()
299 LogDebg("update checkdelay %d", mDelay.mFields.mCheckDelay); in UpdateCheckDelay()
375 LogDebg("regdelay %d, reregdelay %d, checkdelay %d", mDelay.mFields.mRegistrationDelay, in HandleTimeTick()
[all …]
Dlowpan.cpp166 if (aIpAddr.mFields.m8[i]) in CompressMulticast()
169 if (aIpAddr.mFields.m8[1] == 0x02 && i >= 15) in CompressMulticast()
172 SuccessOrExit(error = aFrameBuilder.AppendUint8(aIpAddr.mFields.m8[15])); in CompressMulticast()
178 SuccessOrExit(error = aFrameBuilder.AppendUint8(aIpAddr.mFields.m8[1])); in CompressMulticast()
179 SuccessOrExit(error = aFrameBuilder.AppendBytes(aIpAddr.mFields.m8 + 13, 3)); in CompressMulticast()
185 SuccessOrExit(error = aFrameBuilder.AppendUint8(aIpAddr.mFields.m8[1])); in CompressMulticast()
186 SuccessOrExit(error = aFrameBuilder.AppendBytes(aIpAddr.mFields.m8 + 11, 5)); in CompressMulticast()
193 if (multicastContext.mPrefix.GetLength() == aIpAddr.mFields.m8[3] && in CompressMulticast()
194 memcmp(multicastContext.mPrefix.GetBytes(), aIpAddr.mFields.m8 + 4, 8) == 0) in CompressMulticast()
197 SuccessOrExit(error = aFrameBuilder.AppendBytes(aIpAddr.mFields.m8 + 1, 2)); in CompressMulticast()
[all …]
Ddua_manager.hpp245 } mFields; member
/openthread-3.4.0/tests/unit/
Dtest_ip_address.cpp332 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()
Dtest_multicast_listeners_table.cpp103 address.mFields.m16[7] = HostSwap16(i); in TestMulticastListenersTable()
144 address.mFields.m16[7] = Random::NonCrypto::GetUint16InRange(1, 1000); in TestMulticastListenersTable()
147 address.mFields.m16[7] = Random::NonCrypto::GetUint16InRange(1, 1000); in TestMulticastListenersTable()
Dtest_ndproxy_table.cpp53 Random::NonCrypto::FillBuffer(iid.mFields.m8, sizeof(iid)); in generateRandomIid()
54 iid.mFields.m16[3] = aIndex; in generateRandomIid()
Dtest_ip4_header.cpp76 VerifyOrQuit(header.GetSource().mFields.m32 == 0); in TestIp4Header()
77 VerifyOrQuit(header.GetDestination().mFields.m32 == 0); in TestIp4Header()
Dtest_network_data.cpp48 for (uint8_t b : aConfig.mPrefix.mPrefix.mFields.m8) in PrintExternalRouteConfig()
61 for (uint8_t b : aConfig.mPrefix.mPrefix.mFields.m8) in PrintOnMeshPrefixConfig()
73 return (memcmp(aConfig1.mPrefix.mPrefix.mFields.m8, aConfig2.mPrefix.mPrefix.mFields.m8, in CompareExternalRouteConfig()
82 return (memcmp(aConfig1.mPrefix.mPrefix.mFields.m8, aConfig2.mPrefix.mPrefix.mFields.m8, in CompareOnMeshPrefixConfig()
Dtest_checksum.cpp438 source.mFields.m32 = 0x12345678; in TestIcmp4MessageChecksum()
439 dest.mFields.m32 = 0x87654321; in TestIcmp4MessageChecksum()
/openthread-3.4.0/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-3.4.0/src/core/mac/
Dmac_frame.hpp75 void Init(void) { mFields.m16 = 0; } in Init()
92 uint16_t GetId(void) const { return (HostSwap16(mFields.m16) & kIdMask) >> kIdOffset; } in GetId()
102mFields.m16 = HostSwap16((HostSwap16(mFields.m16) & ~kIdMask) | ((aId << kIdOffset) & kIdMask)); in SetId()
111 uint8_t GetLength(void) const { return mFields.m8[0] & kLengthMask; } in GetLength()
119 …void SetLength(uint8_t aLength) { mFields.m8[0] = (mFields.m8[0] & ~kLengthMask) | (aLength & kLen… in SetLength()
139 } mFields; member in ot::Mac::HeaderIe
/openthread-3.4.0/src/posix/platform/
Dnetif.cpp297 …if (memcmp(address->mAddress.mFields.m8, netAddr->mAddress.mFields.m8, sizeof(address->mAddress.mF… in UnicastAddressIsSubscribed()
326 memcpy(address, addr.mFields.m8, sizeof(addr.mFields.m8)); in InitNetaskWithPrefixLength()
684 return AddRoute(aPrefix.mPrefix.mFields.m8, aPrefix.mLength, aPriority); in AddRoute()
689 return DeleteRoute(aPrefix.mPrefix.mFields.m8, aPrefix.mLength); in DeleteRoute()
876 return AddRoute(aIp4Cidr.mAddress.mFields.m8, aIp4Cidr.mLength, aPriority); in AddIp4Route()
881 return DeleteRoute(aIp4Cidr.mAddress.mFields.m8, aIp4Cidr.mLength); in DeleteIp4Route()
888 if (aAddressInfo->mAddress->mFields.m8[0] == 0xff) in processAddressChange()
1558 …cpy(&mreq6.ipv6mr_multiaddr, kMLDv2MulticastAddress.mFields.m8, sizeof(kMLDv2MulticastAddress.mFie…
1621 memcpy(&address.mFields.m8, &record->mMulticastAddress, sizeof(address.mFields.m8));
Dfirewall.cpp106 memcpy(prefix.mPrefix.mFields.m8, otThreadGetMeshLocalPrefix(aInstance)->m8, in UpdateIpSets()
Dudp.cpp74 bool IsMulticast(const otIp6Address &aAddress) { return aAddress.mFields.m8[0] == 0xff; } in IsMulticast()
465 memcpy(&mreq.ipv6mr_multiaddr, aAddress->mFields.m8, sizeof(mreq.ipv6mr_multiaddr)); in otPlatUdpJoinMulticastGroup()
505 memcpy(&mreq.ipv6mr_multiaddr, aAddress->mFields.m8, sizeof(mreq.ipv6mr_multiaddr)); in otPlatUdpLeaveMulticastGroup()
/openthread-3.4.0/include/openthread/
Dip6.h74 …} mFields; ///< The Interface Identifier accessor fields member
135 … } mFields; ///< IPv6 accessor fields member
Dnat64.h70 } mFields; member
/openthread-3.4.0/src/lib/spinel/
Dspinel_encoder.hpp373 …otError WriteIp6Address(const otIp6Address &aIp6Addr) { return WriteIp6Address(aIp6Addr.mFields.m8… in WriteIp6Address()
/openthread-3.4.0/src/core/utils/
Dslaac_address.cpp293 sha256.Update(aAddress.mAddress.mFields.m8, BitVectorBytes(aAddress.mPrefixLength)); in GenerateIid()
/openthread-3.4.0/src/core/meshcop/
Ddtls.cpp201 …gnoreError(SetClientId(mMessageInfo.GetPeerAddr().mFields.m8, sizeof(mMessageInfo.GetPeerAddr().mF… in HandleUdpReceive()
/openthread-3.4.0/src/cli/
Dcli_dataset.cpp556 memcpy(dataset.mMeshLocalPrefix.m8, prefix.mFields.m8, sizeof(dataset.mMeshLocalPrefix.m8)); in Process()
787 … memcpy(dataset.mMeshLocalPrefix.m8, prefix.mFields.m8, sizeof(dataset.mMeshLocalPrefix.m8)); in Process()

12