Home
last modified time | relevance | path

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

12

/openthread-3.6.0/src/core/net/
Dip6_address.cpp67 memcpy(mPrefix.mFields.m8, aPrefix, SizeForLength(aLength)); in Set()
74 … ((mPrefix.mFields.m16[0] & BigEndian::HostSwap16(0xffc0)) == BigEndian::HostSwap16(0xfe80)); in IsLinkLocal()
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()
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()
235 bool InterfaceIdentifier::IsUnspecified(void) const { return (mFields.m32[0] == 0) && (mFields.m32[… in IsUnspecified()
242 …faceIdentifier::IsSubnetRouterAnycast(void) const { return (mFields.m32[0] == 0) && (mFields.m32[1… in IsSubnetRouterAnycast()
253 …return (mFields.m32[0] == BigEndian::HostSwap32(0xfdffffff) && mFields.m16[2] == BigEndian::HostSw… in IsReservedSubnetAnycast()
[all …]
Dip6_address.hpp114 const uint8_t *GetBytes(void) const { return mPrefix.mFields.m8; } in GetBytes()
122 uint16_t GetSubnetId(void) const { return BigEndian::HostSwap16(mPrefix.mFields.m16[3]); } in GetSubnetId()
163 …void SetSubnetId(uint16_t aSubnetId) { mPrefix.mFields.m16[3] = BigEndian::HostSwap16(aSubnetId); } in SetSubnetId()
432 const uint8_t *GetBytes(void) const { return mFields.m8; } in GetBytes()
530 uint16_t GetLocator(void) const { return BigEndian::HostSwap16(mFields.m16[3]); } in GetLocator()
541 void SetLocator(uint16_t aLocator) { mFields.m16[3] = BigEndian::HostSwap16(aLocator); } in SetLocator()
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()
819 return static_cast<const NetworkPrefix &>(mFields.mComponents.mNetworkPrefix); in GetPrefix()
[all …]
Dip4_types.cpp51 SuccessOrExit(StringParseUint8(cur, mFields.m8[index])); in FromString()
99 for (uint8_t &i : mFields.m8) in ExtractFromIp6Address()
112mFields.m32 = (aCidr.mAddress.mFields.m32 & aCidr.SubnetMask()) | (BigEndian::HostSwap32(aHost) & … in SynthesizeFromCidrAndHost()
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()
Dip4_types.hpp114 const uint8_t *GetBytes(void) const { return mFields.m8; } in GetBytes()
123 void SetBytes(const uint8_t *aBuffer) { memcpy(mFields.m8, aBuffer, kSize); } in SetBytes()
252 const uint8_t *GetBytes(void) const { return mAddress.mFields.m8; } in GetBytes()
Ddhcp6_server.hpp119 uint8_t GetContextId(void) const { return mAloc.mAddress.mFields.m8[15]; } in GetContextId()
/openthread-3.6.0/src/core/thread/
Ddua_manager.cpp251 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 …]
Dlowpan.cpp164 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 …]
Ddua_manager.hpp267 } mFields; member
/openthread-3.6.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] = BigEndian::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_ip4_header.cpp74 VerifyOrQuit(header.GetSource().mFields.m32 == 0); in TestIp4Header()
75 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_ndproxy_table.cpp54 iid.mFields.m16[3] = aIndex; in generateRandomIid()
Dtest_checksum.cpp439 source.mFields.m32 = 0x12345678; in TestIcmp4MessageChecksum()
440 dest.mFields.m32 = 0x87654321; in TestIcmp4MessageChecksum()
/openthread-3.6.0/src/core/backbone_router/
Dbbr_local.cpp71 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/src/core/mac/
Dmac_frame.hpp68 void Init(void) { mFields.m16 = 0; } in Init()
85 …uint16_t GetId(void) const { return (LittleEndian::HostSwap16(mFields.m16) & kIdMask) >> kIdOffset… in GetId()
95 mFields.m16 = LittleEndian::HostSwap16((LittleEndian::HostSwap16(mFields.m16) & ~kIdMask) | in SetId()
105 uint8_t GetLength(void) const { return mFields.m8[0] & kLengthMask; } in GetLength()
113 …void SetLength(uint8_t aLength) { mFields.m8[0] = (mFields.m8[0] & ~kLengthMask) | (aLength & kLen… in SetLength()
133 } mFields; member in ot::Mac::HeaderIe
/openthread-3.6.0/src/posix/platform/
Dnetif.cpp312 memcpy(address, addr.mFields.m8, sizeof(addr.mFields.m8)); in InitNetaskWithPrefixLength()
670 return AddRoute(aPrefix.mPrefix.mFields.m8, aPrefix.mLength, aPriority); in AddRoute()
675 return DeleteRoute(aPrefix.mPrefix.mFields.m8, aPrefix.mLength); in DeleteRoute()
862 return AddRoute(aIp4Cidr.mAddress.mFields.m8, aIp4Cidr.mLength, aPriority); in AddIp4Route()
867 return DeleteRoute(aIp4Cidr.mAddress.mFields.m8, aIp4Cidr.mLength); in DeleteIp4Route()
874 if (aAddressInfo->mAddress->mFields.m8[0] == 0xff) in processAddressChange()
892 …VerifyOrExit(((ntohl(aCidr1.mAddress.mFields.m32) ^ ntohl(aCidr2.mAddress.mFields.m32)) >> (32 - a… in isSameIp4Cidr()
1791 …cpy(&mreq6.ipv6mr_multiaddr, kMLDv2MulticastAddress.mFields.m8, sizeof(kMLDv2MulticastAddress.mFie…
1854 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()
471 memcpy(&mreq.ipv6mr_multiaddr, aAddress->mFields.m8, sizeof(mreq.ipv6mr_multiaddr)); in otPlatUdpJoinMulticastGroup()
511 memcpy(&mreq.ipv6mr_multiaddr, aAddress->mFields.m8, sizeof(mreq.ipv6mr_multiaddr)); in otPlatUdpLeaveMulticastGroup()
/openthread-3.6.0/include/openthread/
Dip6.h77 …} mFields; ///< The Interface Identifier accessor fields member
138 … } mFields; ///< IPv6 accessor fields member
Dnat64.h70 } mFields; member
/openthread-3.6.0/src/lib/spinel/
Dspinel_encoder.hpp373 …otError WriteIp6Address(const otIp6Address &aIp6Addr) { return WriteIp6Address(aIp6Addr.mFields.m8… in WriteIp6Address()
/openthread-3.6.0/src/cli/
Dcli_bbr.cpp216 SuccessOrExit(error = aArgs[2].ParseAsHexString(iid.mFields.m8)); in Process()
/openthread-3.6.0/src/core/utils/
Dslaac_address.cpp307 sha256.Update(aAddress.mAddress.mFields.m8, BytesForBitSize(aAddress.mPrefixLength)); in GenerateIid()
/openthread-3.6.0/src/core/meshcop/
Dsecure_transport.cpp219 …gnoreError(SetClientId(mMessageInfo.GetPeerAddr().mFields.m8, sizeof(mMessageInfo.GetPeerAddr().mF… in HandleReceive()

12