/openthread-3.5.0/src/core/net/ |
D | ip6_address.cpp | 69 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 …]
|
D | ip6_address.hpp | 116 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 …]
|
D | ip4_types.cpp | 49 SuccessOrExit(StringParseUint8(cur, mFields.m8[index])); in FromString() 97 for (uint8_t &i : mFields.m8) in ExtractFromIp6Address() 110 …mFields.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()
|
D | ip4_types.hpp | 117 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()
|
D | dhcp6_server.hpp | 125 uint8_t GetContextId(void) const { return mAloc.mAddress.mFields.m8[15]; } in GetContextId()
|
/openthread-3.5.0/src/core/thread/ |
D | dua_manager.cpp | 251 if (mDelay.mFields.mRegistrationDelay == 0 || mDelay.mFields.mRegistrationDelay > aDelay) in UpdateRegistrationDelay() 253 mDelay.mFields.mRegistrationDelay = aDelay; in UpdateRegistrationDelay() 255 LogDebg("update regdelay %d", mDelay.mFields.mRegistrationDelay); in UpdateRegistrationDelay() 281 if (mDelay.mFields.mReregistrationDelay == 0 || mDelay.mFields.mReregistrationDelay > delay) in UpdateReregistrationDelay() 283 mDelay.mFields.mReregistrationDelay = delay; in UpdateReregistrationDelay() 285 LogDebg("update reregdelay %d", mDelay.mFields.mReregistrationDelay); in UpdateReregistrationDelay() 294 if (mDelay.mFields.mCheckDelay == 0 || mDelay.mFields.mCheckDelay > aDelay) in UpdateCheckDelay() 296 mDelay.mFields.mCheckDelay = aDelay; in UpdateCheckDelay() 298 LogDebg("update checkdelay %d", mDelay.mFields.mCheckDelay); in UpdateCheckDelay() 374 LogDebg("regdelay %d, reregdelay %d, checkdelay %d", mDelay.mFields.mRegistrationDelay, in HandleTimeTick() [all …]
|
D | lowpan.cpp | 166 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 …]
|
D | dua_manager.hpp | 267 } mFields; member
|
/openthread-3.5.0/tests/unit/ |
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()
|
D | test_multicast_listeners_table.cpp | 103 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()
|
D | test_ip4_header.cpp | 76 VerifyOrQuit(header.GetSource().mFields.m32 == 0); in TestIp4Header() 77 VerifyOrQuit(header.GetDestination().mFields.m32 == 0); in TestIp4Header()
|
D | test_network_data.cpp | 48 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()
|
D | test_ndproxy_table.cpp | 54 iid.mFields.m16[3] = aIndex; in generateRandomIid()
|
D | test_checksum.cpp | 438 source.mFields.m32 = 0x12345678; in TestIcmp4MessageChecksum() 439 dest.mFields.m32 = 0x87654321; in TestIcmp4MessageChecksum()
|
/openthread-3.5.0/src/core/backbone_router/ |
D | bbr_local.cpp | 70 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.5.0/src/core/mac/ |
D | mac_frame.hpp | 75 void Init(void) { mFields.m16 = 0; } in Init() 92 uint16_t GetId(void) const { return (HostSwap16(mFields.m16) & kIdMask) >> kIdOffset; } in GetId() 102 … mFields.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.5.0/src/posix/platform/ |
D | netif.cpp | 301 …if (memcmp(address->mAddress.mFields.m8, netAddr->mAddress.mFields.m8, sizeof(address->mAddress.mF… in UnicastAddressIsSubscribed() 330 memcpy(address, addr.mFields.m8, sizeof(addr.mFields.m8)); in InitNetaskWithPrefixLength() 688 return AddRoute(aPrefix.mPrefix.mFields.m8, aPrefix.mLength, aPriority); in AddRoute() 693 return DeleteRoute(aPrefix.mPrefix.mFields.m8, aPrefix.mLength); in DeleteRoute() 880 return AddRoute(aIp4Cidr.mAddress.mFields.m8, aIp4Cidr.mLength, aPriority); in AddIp4Route() 885 return DeleteRoute(aIp4Cidr.mAddress.mFields.m8, aIp4Cidr.mLength); in DeleteIp4Route() 892 if (aAddressInfo->mAddress->mFields.m8[0] == 0xff) in processAddressChange() 910 …VerifyOrExit(((ntohl(aCidr1.mAddress.mFields.m32) ^ ntohl(aCidr2.mAddress.mFields.m32)) >> (32 - a… in isSameIp4Cidr() 1729 …cpy(&mreq6.ipv6mr_multiaddr, kMLDv2MulticastAddress.mFields.m8, sizeof(kMLDv2MulticastAddress.mFie… 1792 memcpy(&address.mFields.m8, &record->mMulticastAddress, sizeof(address.mFields.m8));
|
D | firewall.cpp | 106 memcpy(prefix.mPrefix.mFields.m8, otThreadGetMeshLocalPrefix(aInstance)->m8, in UpdateIpSets()
|
D | udp.cpp | 74 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.5.0/include/openthread/ |
D | ip6.h | 76 …} mFields; ///< The Interface Identifier accessor fields member 137 … } mFields; ///< IPv6 accessor fields member
|
D | nat64.h | 70 } mFields; member
|
/openthread-3.5.0/src/lib/spinel/ |
D | spinel_encoder.hpp | 373 …otError WriteIp6Address(const otIp6Address &aIp6Addr) { return WriteIp6Address(aIp6Addr.mFields.m8… in WriteIp6Address()
|
/openthread-3.5.0/src/core/utils/ |
D | slaac_address.cpp | 293 sha256.Update(aAddress.mAddress.mFields.m8, BitVectorBytes(aAddress.mPrefixLength)); in GenerateIid()
|
/openthread-3.5.0/src/cli/ |
D | cli_bbr.cpp | 216 SuccessOrExit(error = aArgs[2].ParseAsHexString(iid.mFields.m8)); in Process()
|
/openthread-3.5.0/src/core/meshcop/ |
D | dtls.cpp | 201 …gnoreError(SetClientId(mMessageInfo.GetPeerAddr().mFields.m8, sizeof(mMessageInfo.GetPeerAddr().mF… in HandleUdpReceive()
|