Home
last modified time | relevance | path

Searched refs:IsValid (Results 1 – 25 of 72) sorted by relevance

123

/openthread-3.6.0/src/core/meshcop/
Dmeshcop_tlvs.cpp46 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
Dmeshcop_tlvs.hpp171 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 …]
Dmeshcop.cpp118 OT_ASSERT(IsValid()); in Matches()
136 OT_ASSERT(IsValid()); in CopyTo()
164 return IsValid() && (mLength == aOther.mLength) && ((mValue & mask) == (aOther.mValue & mask)); in operator ==()
Dmeshcop.hpp81 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/
Dlink_metrics_tlvs.hpp110 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
Dmle_tlvs.hpp273 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
Dthread_tlvs.hpp223 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
Dmle_tlvs.cpp53 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
Dnetwork_data_types.hpp120 inline bool IsRoutePreferenceValid(int8_t aPref) { return Preference::IsValid(aPref); } in IsRoutePreferenceValid()
206 bool IsValid(Instance &aInstance) const;
266 bool IsValid(Instance &aInstance) const;
Dnetwork_data_types.cpp49 …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/
Dtest_serial_number.cpp188 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()
Dtest_ip4_header.cpp70 VerifyOrQuit(header.IsValid()); in TestIp4Header()
84 VerifyOrQuit(header.IsValid()); in TestIp4Header()
113 VerifyOrQuit(header.IsValid()); in TestIp4Header()
Dtest_ip6_header.cpp75 VerifyOrQuit(header.IsValid()); in TestIp6Header()
88 VerifyOrQuit(header.IsValid()); in TestIp6Header()
/openthread-3.6.0/src/core/net/
Dnd6.hpp140 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
Dip6_headers.cpp49 VerifyOrExit(IsValid()); in ParseFrom()
58 bool Header::IsValid(void) const in IsValid() function in ot::Ip6::Header
Dnd6.cpp77 …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
Ddhcp6_server.cpp75 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()
Ddns_types.cpp1183 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/
Dflash.cpp129 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/
Dpreference.cpp53 bool Preference::IsValid(int8_t aPrf) { return (aPrf == kHigh) || (aPrf == kMedium) || (aPrf == kLo… in IsValid() function in ot::Preference
Dpreference.hpp98 static bool IsValid(int8_t aPrf);
/openthread-3.6.0/src/posix/platform/
Dmulticast_routing.cpp364 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()
Dconfiguration.hpp114 bool IsValid(void) const;
/openthread-3.6.0/src/lib/spinel/
Dspi_frame.hpp164 …bool IsValid(void) const { return ((mBuffer[kIndexFlagByte] & kFlagPatternMask) == kFlagPattern); } in IsValid() function in ot::Spinel::SpiFrame
/openthread-3.6.0/src/ncp/
Dncp_spi.cpp151 VerifyOrExit(inputFrame.IsValid() && outputFrame.IsValid()); in SpiTransactionComplete()

123