/openthread-3.4.0/src/core/utils/ |
D | flash.hpp | 152 mFlags = kFlagsInit & ~kFlagAddBegin; in Init() 156 mFlags &= ~kFlagFirst; in Init() 171 … bool IsValid(void) const { return ((mFlags & (kFlagAddComplete | kFlagDelete)) == kFlagDelete); } in IsValid() 173 bool IsAddBeginSet(void) const { return (mFlags & kFlagAddBegin) == 0; } in IsAddBeginSet() 174 void SetAddBeginFlag(void) { mFlags &= ~kFlagAddBegin; } in SetAddBeginFlag() 176 bool IsAddCompleteSet(void) const { return (mFlags & kFlagAddComplete) == 0; } in IsAddCompleteSet() 177 void SetAddCompleteFlag(void) { mFlags &= ~kFlagAddComplete; } in SetAddCompleteFlag() 179 bool IsDeleted(void) const { return (mFlags & kFlagDelete) == 0; } in IsDeleted() 180 void SetDeleted(void) { mFlags &= ~kFlagDelete; } in SetDeleted() 182 bool IsFirst(void) const { return (mFlags & kFlagFirst) == 0; } in IsFirst() [all …]
|
/openthread-3.4.0/src/core/net/ |
D | nd6.hpp | 196 bool IsOnLinkFlagSet(void) const { return (mFlags & kOnLinkFlagMask) != 0; } in IsOnLinkFlagSet() 202 void SetOnLinkFlag(void) { mFlags |= kOnLinkFlagMask; } in SetOnLinkFlag() 208 void ClearOnLinkFlag(void) { mFlags &= ~kOnLinkFlagMask; } in ClearOnLinkFlag() 217 bool IsAutoAddrConfigFlagSet(void) const { return (mFlags & kAutoConfigFlagMask) != 0; } in IsAutoAddrConfigFlagSet() 223 void SetAutoAddrConfigFlag(void) { mFlags |= kAutoConfigFlagMask; } in SetAutoAddrConfigFlag() 229 void ClearAutoAddrConfigFlag(void) { mFlags &= ~kAutoConfigFlagMask; } in ClearAutoAddrConfigFlag() 317 uint8_t mFlags; // The flags field. member in ot::Ip6::Nd::PrefixInfoOption 559 uint8_t mFlags; member in ot::Ip6::Nd::RouterAdvertMessage::Header 796 bool IsRouterFlagSet(void) const { return (mFlags & kRouterFlag) != 0; } in IsRouterFlagSet() 802 void SetRouterFlag(void) { mFlags |= kRouterFlag; } in SetRouterFlag() [all …]
|
D | dns_types.hpp | 130 … Type GetType(void) const { return static_cast<Type>((mFlags[0] & kQrFlagMask) >> kQrFlagOffset); } in GetType() 140 mFlags[0] &= ~kQrFlagMask; in SetType() 141 mFlags[0] |= static_cast<uint8_t>(aType) << kQrFlagOffset; in SetType() 164 …QueryType GetQueryType(void) const { return static_cast<QueryType>((mFlags[0] & kOpCodeMask) >> kO… in GetQueryType() 174 mFlags[0] &= ~kOpCodeMask; in SetQueryType() 175 mFlags[0] |= static_cast<uint8_t>(aType) << kOpCodeOffset; in SetQueryType() 185 … bool IsAuthoritativeAnswerFlagSet(void) const { return (mFlags[0] & kAaFlagMask) == kAaFlagMask; } in IsAuthoritativeAnswerFlagSet() 191 void ClearAuthoritativeAnswerFlag(void) { mFlags[0] &= ~kAaFlagMask; } in ClearAuthoritativeAnswerFlag() 197 void SetAuthoritativeAnswerFlag(void) { mFlags[0] |= kAaFlagMask; } in SetAuthoritativeAnswerFlag() 205 bool IsTruncationFlagSet(void) const { return (mFlags[0] & kTcFlagMask) == kTcFlagMask; } in IsTruncationFlagSet() [all …]
|
D | sntp_client.hpp | 86 uint8_t GetFlags(void) const { return mFlags; } in GetFlags() 94 void SetFlags(uint8_t aFlags) { mFlags = aFlags; } in SetFlags() 102 Mode GetMode(void) const { return static_cast<Mode>((mFlags & kModeMask) >> kModeOffset); } in GetMode() 369 …uint8_t mFlags; // SNTP flags: LI Leap Indicator, VN Version Number and Mode. member in ot::Sntp::Header
|
D | nd6.cpp | 189 return NetworkData::RoutePreferenceFromValue((mFlags & kPreferenceMask) >> kPreferenceOffset); in GetDefaultRouterPreference() 194 mFlags &= ~kPreferenceMask; in SetDefaultRouterPreference() 195 …mFlags |= (NetworkData::RoutePreferenceToValue(aPreference) << kPreferenceOffset) & kPreferenceMas… in SetDefaultRouterPreference()
|
D | tcp6.hpp | 585 uint16_t GetFlags(void) const { return HostSwap16(mFlags); } in GetFlags() 616 uint16_t mFlags; member in ot::Ip6::Tcp::Header
|
D | sntp_client.cpp | 54 : mFlags(kNtpVersion << kVersionOffset | kModeClient << kModeOffset) in Header()
|
/openthread-3.4.0/src/core/thread/ |
D | network_data_tlvs.hpp | 419 mFlags = 0; in Init() 451 uint8_t GetFlags(void) const { return mFlags; } in GetFlags() 459 void SetFlags(uint8_t aFlags) { mFlags = aFlags; } in SetFlags() 468 bool IsNat64(void) const { return (mFlags & kNat64Flag) != 0; } in IsNat64() 513 uint8_t mFlags; member in ot::NetworkData::HasRouteEntry 920 mFlags = 0; in Init() 944 uint16_t GetFlags(void) const { return HostSwap16(mFlags); } in GetFlags() 952 void SetFlags(uint16_t aFlags) { mFlags = HostSwap16(aFlags); } in SetFlags() 969 bool IsPreferred(void) const { return (HostSwap16(mFlags) & kPreferredFlag) != 0; } in IsPreferred() 978 bool IsSlaac(void) const { return (HostSwap16(mFlags) & kSlaacFlag) != 0; } in IsSlaac() [all …]
|
D | mle_tlvs.cpp | 89 return Preference::From2BitUint(mFlags >> kFlagsParentPriorityOffset); in GetParentPriority() 94 …mFlags = static_cast<uint8_t>(Preference::To2BitUint(aParentPriority) << kFlagsParentPriorityOffse… in SetParentPriority()
|
D | network_data_publisher.cpp | 826 VerifyOrExit((mType != aNewType) || (mFlags != aNewFlags) || (mPrefix != aPrefix)); in Publish() 833 mFlags = aNewFlags; in Publish() 842 mFlags = aNewFlags; in Publish() 894 config.SetFromTlvFlags(mFlags); in AddOnMeshPrefix() 905 config.SetFromTlvFlags(static_cast<uint8_t>(mFlags)); in AddExternalRoute() 972 int8_t preference = BorderRouterEntry::PreferenceFromFlags(mFlags); in CountOnMeshPrefixEntries() 973 … uint16_t flagsWithoutPreference = BorderRouterEntry::FlagsWithoutPreference(mFlags); in CountOnMeshPrefixEntries() 1019 … preference = HasRouteEntry::PreferenceFromFlags(static_cast<uint8_t>(mFlags)); in CountExternalRouteEntries() 1020 … flagsWithoutPreference = HasRouteEntry::FlagsWithoutPreference(static_cast<uint8_t>(mFlags)); in CountExternalRouteEntries()
|
D | network_data_publisher.hpp | 498 uint16_t mFlags; member in ot::NetworkData::Publisher::PrefixEntry
|
D | mle_tlvs.hpp | 951 uint8_t mFlags; member in ot::Mle::ConnectivityTlv
|
/openthread-3.4.0/src/core/meshcop/ |
D | meshcop_tlvs.hpp | 1009 uint8_t mFlags[kThread12FlagsLength]; member in ot::MeshCoP::SecurityPolicyTlv 1011 uint8_t mFlags[kThread11FlagsLength]; member in ot::MeshCoP::SecurityPolicyTlv 1804 mFlags = 0; in Init() 1823 uint8_t GetVersion(void) const { return mFlags >> kVersionOffset; } in GetVersion() 1833 mFlags = (mFlags & ~kVersionMask) | ((aVersion << kVersionOffset) & kVersionMask); in SetVersion() 1843 bool IsJoiner(void) const { return (mFlags & kJoinerMask) != 0; } in IsJoiner() 1855 mFlags |= kJoinerMask; in SetJoiner() 1859 mFlags &= ~kJoinerMask; in SetJoiner() 1869 uint8_t mFlags; member in ot::MeshCoP::DiscoveryRequestTlv 1889 mFlags = 0; in Init() [all …]
|
D | meshcop_tlvs.cpp | 155 uint8_t length = Min(static_cast<uint8_t>(sizeof(mFlags)), GetFlagsLength()); in GetSecurityPolicy() 158 securityPolicy.SetFlags(mFlags, length); in GetSecurityPolicy() 166 aSecurityPolicy.GetFlags(mFlags, sizeof(mFlags)); in SetSecurityPolicy()
|
/openthread-3.4.0/src/core/mac/ |
D | mac_frame.hpp | 1594 mFlags = kProtocolVersion << kVersionOffset; in Init() 1620 uint8_t GetProtocolVersion(void) const { return mFlags >> kVersionOffset; } in GetProtocolVersion() 1629 bool IsNative(void) const { return (mFlags & kNativeFlag) != 0; } in IsNative() 1635 void ClearNative(void) { mFlags &= ~kNativeFlag; } in ClearNative() 1641 void SetNative(void) { mFlags |= kNativeFlag; } in SetNative() 1650 bool IsJoiningPermitted(void) const { return (mFlags & kJoiningFlag) != 0; } in IsJoiningPermitted() 1656 void ClearJoiningPermitted(void) { mFlags &= ~kJoiningFlag; } in ClearJoiningPermitted() 1664 mFlags |= kJoiningFlag; in SetJoiningPermitted() 1667 mFlags &= ~kVersionMask; in SetJoiningPermitted() 1668 mFlags |= OPENTHREAD_CONFIG_MAC_JOIN_BEACON_VERSION << kVersionOffset; in SetJoiningPermitted() [all …]
|