/openthread-3.6.0/src/core/meshcop/ |
D | meshcop_tlvs.cpp | 46 bool Tlv::IsValid(const Tlv &aTlv) in IsValid() function in ot::MeshCoP::Tlv 70 isValid = aTlv.ReadValueAs<ChannelTlv>().IsValid(); in IsValid() 73 isValid = As<NetworkNameTlv>(aTlv).IsValid(); in IsValid() 77 isValid = As<SecurityPolicyTlv>(aTlv).IsValid(); in IsValid() 81 isValid = As<ChannelMaskTlv>(aTlv).IsValid(); in IsValid() 117 bool NetworkNameTlv::IsValid(void) const { return IsValidUtf8String(mNetworkName, GetLength()); } in IsValid() function in ot::MeshCoP::NetworkNameTlv 125 bool SecurityPolicyTlv::IsValid(void) const in IsValid() function in ot::MeshCoP::SecurityPolicyTlv 161 bool ChannelMaskTlv::IsValid(void) const in IsValid() function in ot::MeshCoP::ChannelMaskTlv
|
D | meshcop_tlvs.hpp | 171 static bool IsValid(const Tlv &aTlv); 303 bool IsValid(void) const; 377 bool IsValid(void) const { return GetLength() > 0; } in IsValid() function in ot::MeshCoP::SteeringDataTlv 433 bool IsValid(void) const { return GetLength() >= sizeof(*this) - sizeof(Tlv); } in IsValid() function in ot::MeshCoP::BorderAgentLocatorTlv 480 bool IsValid(void) const { return GetLength() >= sizeof(*this) - sizeof(Tlv); } in IsValid() function in ot::MeshCoP::CommissionerSessionIdTlv 527 bool IsValid(void) const; 647 bool IsValid(void) const; 757 bool IsValid(void) const { return true; } in IsValid() function in ot::MeshCoP::EnergyListTlv 846 bool IsValid(void) const { return GetLength() >= sizeof(*this) - sizeof(Tlv); } in IsValid() function in ot::MeshCoP::VendorStackVersionTlv 1039 bool IsValid(void) const { return GetLength() >= sizeof(*this) - sizeof(Tlv); } in IsValid() function in ot::MeshCoP::DiscoveryRequestTlv [all …]
|
D | meshcop.cpp | 118 OT_ASSERT(IsValid()); in Matches() 136 OT_ASSERT(IsValid()); in CopyTo() 164 return IsValid() && (mLength == aOther.mLength) && ((mValue & mask) == (aOther.mValue & mask)); in operator ==()
|
D | meshcop.hpp | 81 bool IsValid(void) const { return IsPskdValid(m8); } in IsValid() function in ot::MeshCoP::JoinerPskd 194 bool IsValid(void) const { return (0 < mLength) && (mLength <= kMaxLength); } in IsValid() function in ot::MeshCoP::JoinerDiscerner
|
/openthread-3.6.0/src/core/thread/ |
D | link_metrics_tlvs.hpp | 110 bool IsValid(void) const { return GetLength() >= kMinLength; } in IsValid() function in ot::LinkMetrics::ReportSubTlv 202 bool IsValid(void) const { return GetLength() >= sizeof(uint8_t); } in IsValid() function in ot::LinkMetrics::QueryOptionsSubTlv 233 bool IsValid(void) const { return GetLength() >= kMinLength; } in IsValid() function in ot::LinkMetrics::FwdProbingRegSubTlv 304 bool IsValid(void) const { return GetLength() >= kMinLength; } in IsValid() function in ot::LinkMetrics::EnhAckConfigSubTlv
|
D | mle_tlvs.hpp | 273 bool IsValid(void) const; 323 …bool IsSingleton(void) const { return IsValid() && (mRouterIdMask.GetNumberOfAllocatedIds() <= 1);… in IsSingleton() 433 …bool IsValid(void) const { return GetLength() >= sizeof(mRouterIdSequence) + sizeof(mRouterIdMask)… in IsValid() function in ot::Mle::RouteTlv 483 …bool IsSingleton(void) const { return IsValid() && (mRouterIdMask.GetNumberOfAllocatedIds() <= 1);… in IsSingleton() 660 bool IsValid(void) const { return GetLength() >= sizeof(*this) - sizeof(Tlv); } in IsValid() function in ot::Mle::LeaderDataTlv 756 bool IsValid(void) const in IsValid() function in ot::Mle::ConnectivityTlv 1114 bool IsValid(void) const; 1165 bool IsValid(void) const { return GetLength() >= sizeof(*this) - sizeof(Tlv); } in IsValid() function in ot::Mle::TimeParameterTlv 1232 bool IsValid(void) const { return GetLength() >= sizeof(*this) - sizeof(Tlv); } in IsValid() function in ot::Mle::CslClockAccuracyTlv
|
D | thread_tlvs.hpp | 223 bool IsValid(void) const { return GetLength() >= sizeof(*this) - sizeof(ThreadTlv); } in IsValid() function in ot::ThreadRouterMaskTlv 294 bool IsValid(void) const { return true; } in IsValid() function in ot::ThreadNetworkDataTlv 337 bool IsValid(void) const in IsValid() function in ot::Ip6AddressesTlv
|
D | mle_tlvs.cpp | 53 bool RouteTlv::IsValid(void) const in IsValid() function in ot::Mle::RouteTlv 123 bool ChannelTlvValue::IsValid(void) const in IsValid() function in ot::Mle::ChannelTlvValue
|
D | network_data_types.hpp | 120 inline bool IsRoutePreferenceValid(int8_t aPref) { return Preference::IsValid(aPref); } in IsRoutePreferenceValid() 206 bool IsValid(Instance &aInstance) const; 266 bool IsValid(Instance &aInstance) const;
|
D | network_data_types.cpp | 49 …return aPrefix.IsValid() && !aPrefix.ContainsPrefix(aInstance.Get<Mle::Mle>().GetMeshLocalPrefix()… in IsPrefixValid() 52 bool OnMeshPrefixConfig::IsValid(Instance &aInstance) const in IsValid() function in ot::NetworkData::OnMeshPrefixConfig 160 bool ExternalRouteConfig::IsValid(Instance &aInstance) const in IsValid() function in ot::NetworkData::ExternalRouteConfig
|
/openthread-3.6.0/tests/unit/ |
D | test_serial_number.cpp | 188 VerifyOrQuit(Preference::IsValid(Preference::kHigh)); in TestPreference() 189 VerifyOrQuit(Preference::IsValid(Preference::kMedium)); in TestPreference() 190 VerifyOrQuit(Preference::IsValid(Preference::kLow)); in TestPreference() 192 VerifyOrQuit(!Preference::IsValid(2)); in TestPreference() 193 VerifyOrQuit(!Preference::IsValid(-2)); in TestPreference() 194 VerifyOrQuit(!Preference::IsValid(127)); in TestPreference() 195 VerifyOrQuit(!Preference::IsValid(-128)); in TestPreference()
|
D | test_ip4_header.cpp | 70 VerifyOrQuit(header.IsValid()); in TestIp4Header() 84 VerifyOrQuit(header.IsValid()); in TestIp4Header() 113 VerifyOrQuit(header.IsValid()); in TestIp4Header()
|
D | test_ip6_header.cpp | 75 VerifyOrQuit(header.IsValid()); in TestIp6Header() 88 VerifyOrQuit(header.IsValid()); in TestIp6Header()
|
/openthread-3.6.0/src/core/net/ |
D | nd6.hpp | 140 bool IsValid(void) const { return mLength > 0; } in IsValid() function in ot::Ip6::Nd::Option 287 bool IsValid(void) const; 402 bool IsValid(void) const; 488 bool IsValid(void) const { return GetSize() >= sizeof(*this); } in IsValid() function in ot::Ip6::Nd::RaFlagsExtOption 722 bool IsValid(void) const in IsValid() function in ot::Ip6::Nd::RouterAdvertMessage 851 … bool IsValid(void) const { return (mType == Icmp::Header::kTypeNeighborSolicit) && (mCode == 0); } in IsValid() function in ot::Ip6::Nd::NeighborSolicitMessage 916 … bool IsValid(void) const { return (mType == Icmp::Header::kTypeNeighborAdvert) && (mCode == 0); } in IsValid() function in ot::Ip6::Nd::NeighborAdvertMessage
|
D | ip6_headers.cpp | 49 VerifyOrExit(IsValid()); in ParseFrom() 58 bool Header::IsValid(void) const in IsValid() function in ot::Ip6::Header
|
D | nd6.cpp | 77 …return ((aOption != nullptr) && ((aOption + 1) <= mEnd) && aOption->IsValid() && (Next(aOption) <=… in Validate() 101 bool PrefixInfoOption::IsValid(void) const in IsValid() function in ot::Ip6::Nd::PrefixInfoOption 136 bool RouteInfoOption::IsValid(void) const in IsValid() function in ot::Ip6::Nd::RouteInfoOption
|
D | dhcp6_server.cpp | 75 if (!prefixAgent.IsValid()) in UpdateService() 157 if (!prefixAgent.IsValid()) in AddPrefixAgent() 322 if (mPrefixAgents[i].IsValid() && mPrefixAgents[i].IsPrefixMatch(option.GetAddress())) in ProcessIaAddress() 453 if (prefixAgent.IsValid()) in AppendIaAddress()
|
D | dns_types.cpp | 1183 bool AaaaRecord::IsValid(void) const in IsValid() function in ot::Dns::AaaaRecord 1188 bool KeyRecord::IsValid(void) const { return GetType() == Dns::ResourceRecord::kTypeKey; } in IsValid() function in ot::Dns::KeyRecord 1197 bool Ecdsa256KeyRecord::IsValid(void) const in IsValid() function in ot::Dns::Ecdsa256KeyRecord 1199 return KeyRecord::IsValid() && GetLength() == sizeof(*this) - sizeof(ResourceRecord) && in IsValid() 1204 bool SigRecord::IsValid(void) const in IsValid() function in ot::Dns::SigRecord 1224 bool LeaseOption::IsValid(void) const in IsValid() function in ot::Dns::LeaseOption 1259 VerifyOrExit(IsValid(), error = kErrorParse); in ReadFrom()
|
/openthread-3.6.0/src/core/utils/ |
D | flash.cpp | 129 if ((record.GetKey() != aKey) || !record.IsValid()) in Get() 216 if (record.IsValid() && record.IsFirst() && (record.GetKey() == aKey)) in DoesValidRecordExist() 240 … if (!record.IsValid() || DoesValidRecordExist(srcOffset + record.GetSize(), record.GetKey())) in Swap() 268 if ((record.GetKey() != aKey) || !record.IsValid()) in Delete()
|
/openthread-3.6.0/src/core/common/ |
D | preference.cpp | 53 bool Preference::IsValid(int8_t aPrf) { return (aPrf == kHigh) || (aPrf == kMedium) || (aPrf == kLo… in IsValid() function in ot::Preference
|
D | preference.hpp | 98 static bool IsValid(int8_t aPrf);
|
/openthread-3.6.0/src/posix/platform/ |
D | multicast_routing.cpp | 364 if (!mfc.IsValid() || mfc.mIif != kMifIndexBackbone || mfc.mOif == kMifIndexThread || in UnblockInboundMulticastForwardingCache() 390 if (mfc.IsValid() && mfc.mIif == kMifIndexBackbone && mfc.mGroupAddr == aGroupAddr) in RemoveInboundMulticastForwardingCache() 412 … if (mfc.IsValid() && mfc.mLastUseTime + kMulticastForwardingCacheExpireTimeout * US_PER_S < now) in ExpireMulticastForwardingCache() 490 if (mfc.IsValid()) in DumpMulticastForwardingCache() 556 if (mfc.IsValid()) in SaveMulticastForwardingCache()
|
D | configuration.hpp | 114 bool IsValid(void) const;
|
/openthread-3.6.0/src/lib/spinel/ |
D | spi_frame.hpp | 164 …bool IsValid(void) const { return ((mBuffer[kIndexFlagByte] & kFlagPatternMask) == kFlagPattern); } in IsValid() function in ot::Spinel::SpiFrame
|
/openthread-3.6.0/src/ncp/ |
D | ncp_spi.cpp | 151 VerifyOrExit(inputFrame.IsValid() && outputFrame.IsValid()); in SpiTransactionComplete()
|