Home
last modified time | relevance | path

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

123

/openthread-latest/tests/unit/
Dtest_meshcop.cpp126 VerifyOrQuit(t1.IsValid()); in TestTimestamp()
135 VerifyOrQuit(!t2.IsValid()); in TestTimestamp()
148 VerifyOrQuit(t2.IsValid()); in TestTimestamp()
149 VerifyOrQuit(t1.IsValid()); in TestTimestamp()
153 VerifyOrQuit(t1.IsValid()); in TestTimestamp()
159 VerifyOrQuit(t2.IsValid()); in TestTimestamp()
164 VerifyOrQuit(t1.IsValid()); in TestTimestamp()
169 VerifyOrQuit(t1.IsValid()); in TestTimestamp()
175 VerifyOrQuit(t1.IsValid()); in TestTimestamp()
182 VerifyOrQuit(t2.IsValid()); in TestTimestamp()
[all …]
Dtest_serial_number.cpp202 VerifyOrQuit(Preference::IsValid(Preference::kHigh)); in TestPreference()
203 VerifyOrQuit(Preference::IsValid(Preference::kMedium)); in TestPreference()
204 VerifyOrQuit(Preference::IsValid(Preference::kLow)); in TestPreference()
206 VerifyOrQuit(!Preference::IsValid(2)); in TestPreference()
207 VerifyOrQuit(!Preference::IsValid(-2)); in TestPreference()
208 VerifyOrQuit(!Preference::IsValid(127)); in TestPreference()
209 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-latest/src/core/thread/
Dlink_metrics_tlvs.hpp102 bool IsValid(void) const { return GetLength() >= kMinLength; } in IsValid() function in ot::LinkMetrics::ReportSubTlv
185 bool IsValid(void) const { return GetLength() >= sizeof(uint8_t); } in IsValid() function in ot::LinkMetrics::QueryOptionsSubTlv
213 bool IsValid(void) const { return GetLength() >= kMinLength; } in IsValid() function in ot::LinkMetrics::FwdProbingRegSubTlv
277 bool IsValid(void) const { return GetLength() >= kMinLength; } in IsValid() function in ot::LinkMetrics::EnhAckConfigSubTlv
Dmle_tlvs.hpp247 bool IsValid(void) const;
291 …bool IsSingleton(void) const { return IsValid() && (mRouterIdMask.GetNumberOfAllocatedIds() <= 1);… in IsSingleton()
392 …bool IsValid(void) const { return GetLength() >= sizeof(mRouterIdSequence) + sizeof(mRouterIdMask)… in IsValid() function in ot::Mle::RouteTlv
436 …bool IsSingleton(void) const { return IsValid() && (mRouterIdMask.GetNumberOfAllocatedIds() <= 1);… in IsSingleton()
603 bool IsValid(void) const { return GetLength() >= sizeof(*this) - sizeof(Tlv); } in IsValid() function in ot::Mle::LeaderDataTlv
693 bool IsValid(void) const in IsValid() function in ot::Mle::ConnectivityTlv
1023 bool IsValid(void) const;
1068 bool IsValid(void) const { return GetLength() >= sizeof(*this) - sizeof(Tlv); } in IsValid() function in ot::Mle::TimeParameterTlv
1128 bool IsValid(void) const { return GetLength() >= sizeof(*this) - sizeof(Tlv); } in IsValid() function in ot::Mle::CslClockAccuracyTlv
Dthread_tlvs.hpp204 bool IsValid(void) const { return GetLength() >= sizeof(*this) - sizeof(ThreadTlv); } in IsValid() function in ot::ThreadRouterMaskTlv
267 bool IsValid(void) const { return true; } in IsValid() function in ot::ThreadNetworkDataTlv
306 bool IsValid(void) const in IsValid() function in ot::Ip6AddressesTlv
Dnetwork_data_types.hpp145 inline bool IsRoutePreferenceValid(int8_t aPref) { return Preference::IsValid(aPref); } in IsRoutePreferenceValid()
223 bool IsValid(Instance &aInstance) const;
278 bool IsValid(Instance &aInstance) const;
Dmle_tlvs.cpp54 bool RouteTlv::IsValid(void) const in IsValid() function in ot::Mle::RouteTlv
124 bool ChannelTlvValue::IsValid(void) const in IsValid() function in ot::Mle::ChannelTlvValue
Dnetwork_data_types.cpp48 …return aPrefix.IsValid() && !aPrefix.ContainsPrefix(aInstance.Get<Mle::Mle>().GetMeshLocalPrefix()… in IsPrefixValid()
51 bool OnMeshPrefixConfig::IsValid(Instance &aInstance) const in IsValid() function in ot::NetworkData::OnMeshPrefixConfig
159 bool ExternalRouteConfig::IsValid(Instance &aInstance) const in IsValid() function in ot::NetworkData::ExternalRouteConfig
/openthread-latest/src/core/net/
Dnd6.hpp140 bool IsValid(void) const { return mLength > 0; } in IsValid() function in ot::Ip6::Nd::Option
280 bool IsValid(void) const;
390 bool IsValid(void) const;
471 bool IsValid(void) const { return GetSize() >= sizeof(*this); } in IsValid() function in ot::Ip6::Nd::RaFlagsExtOption
580 bool IsValid(void) const { return GetType() == Icmp::Header::kTypeRouterAdvert; } in IsValid() function in ot::Ip6::Nd::RouterAdvert::Header
734 bool IsValid(void) const in IsValid() function in ot::Ip6::Nd::RouterAdvert::RxMessage
864 … bool IsValid(void) const { return (mType == Icmp::Header::kTypeNeighborSolicit) && (mCode == 0); } in IsValid() function in ot::Ip6::Nd::NeighborSolicitHeader
925 … 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.cpp67 if (!prefixAgent.IsValid()) in UpdateService()
149 if (!prefixAgent.IsValid()) in AddPrefixAgent()
306 if (mPrefixAgents[i].IsValid() && mPrefixAgents[i].IsPrefixMatch(option.GetAddress())) in ProcessIaAddress()
437 if (prefixAgent.IsValid()) in AppendIaAddress()
/openthread-latest/src/core/meshcop/
Dmeshcop_tlvs.hpp274 bool IsValid(void) const;
339 bool IsValid(void) const { return GetLength() > 0; } in IsValid() function in ot::MeshCoP::SteeringDataTlv
389 bool IsValid(void) const { return GetLength() >= sizeof(*this) - sizeof(Tlv); } in IsValid() function in ot::MeshCoP::BorderAgentLocatorTlv
431 bool IsValid(void) const { return GetLength() >= sizeof(*this) - sizeof(Tlv); } in IsValid() function in ot::MeshCoP::CommissionerSessionIdTlv
473 bool IsValid(void) const;
618 bool IsValid(void) const;
720 bool IsValid(void) const { return true; } in IsValid() function in ot::MeshCoP::EnergyListTlv
798 bool IsValid(void) const { return GetLength() >= sizeof(*this) - sizeof(Tlv); } in IsValid() function in ot::MeshCoP::VendorStackVersionTlv
977 bool IsValid(void) const { return GetLength() >= sizeof(*this) - sizeof(Tlv); } in IsValid() function in ot::MeshCoP::DiscoveryRequestTlv
1055 bool IsValid(void) const { return GetLength() >= sizeof(*this) - sizeof(Tlv); } in IsValid() function in ot::MeshCoP::DiscoveryResponseTlv
[all …]
Dtimestamp.cpp64 bool Timestamp::IsValid(void) const in IsValid() function in ot::MeshCoP::Timestamp
107 rval = ThreeWayCompare(aFirst.IsValid(), aSecond.IsValid()); in Compare()
Dmeshcop_tlvs.cpp61 bool NetworkNameTlv::IsValid(void) const { return IsValidUtf8String(mNetworkName, GetLength()); } in IsValid() function in ot::MeshCoP::NetworkNameTlv
69 bool SecurityPolicyTlv::IsValid(void) const in IsValid() function in ot::MeshCoP::SecurityPolicyTlv
122 bool ChannelMaskTlv::IsValid(void) const in IsValid() function in ot::MeshCoP::ChannelMaskTlv
Dmeshcop.cpp113 OT_ASSERT(IsValid()); in Matches()
131 OT_ASSERT(IsValid()); in CopyTo()
159 return IsValid() && (mLength == aOther.mLength) && ((mValue & mask) == (aOther.mValue & mask)); in operator ==()
Ddataset.cpp159 isValid = aTlv.ReadValueAs<ChannelTlv>().IsValid(); in IsTlvValid()
163 isValid = aTlv.ReadValueAs<WakeupChannelTlv>().IsValid(); in IsTlvValid()
166 isValid = As<NetworkNameTlv>(aTlv).IsValid(); in IsTlvValid()
170 isValid = As<SecurityPolicyTlv>(aTlv).IsValid(); in IsTlvValid()
174 isValid = As<ChannelMaskTlv>(aTlv).IsValid(); in IsTlvValid()
Dmeshcop.hpp78 bool IsValid(void) const { return IsPskdValid(m8); } in IsValid() function in ot::MeshCoP::JoinerPskd
186 bool IsValid(void) const { return (0 < mLength) && (mLength <= kMaxLength); } in IsValid() function in ot::MeshCoP::JoinerDiscerner
/openthread-latest/src/core/utils/
Dflash.cpp126 if ((record.GetKey() != aKey) || !record.IsValid()) in Get()
213 if (record.IsValid() && record.IsFirst() && (record.GetKey() == aKey)) in DoesValidRecordExist()
237 … if (!record.IsValid() || DoesValidRecordExist(srcOffset + record.GetSize(), record.GetKey())) in Swap()
265 if ((record.GetKey() != aKey) || !record.IsValid()) in Delete()
/openthread-latest/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 * OT_US_PER_S < now) in ExpireMulticastForwardingCache()
490 if (mfc.IsValid()) in DumpMulticastForwardingCache()
555 if (mfc.IsValid()) in SaveMulticastForwardingCache()
/openthread-latest/src/core/common/
Dpreference.cpp52 bool Preference::IsValid(int8_t aPrf) { return (aPrf == kHigh) || (aPrf == kMedium) || (aPrf == kLo… in IsValid() function in ot::Preference
Dpreference.hpp94 static bool IsValid(int8_t aPrf);
/openthread-latest/src/lib/spinel/
Dspi_frame.hpp160 …bool IsValid(void) const { return ((mBuffer[kIndexFlagByte] & kFlagPatternMask) == kFlagPattern); } in IsValid() function in ot::Spinel::SpiFrame

123