Home
last modified time | relevance | path

Searched refs:kMinLength (Results 1 – 7 of 7) sorted by relevance

/openthread-latest/src/core/thread/
Dlink_metrics_tlvs.hpp89 … static constexpr uint8_t kMinLength = 2; ///< Minimum expected TLV length (type ID and u8 value). member in ot::LinkMetrics::ReportSubTlv
102 bool IsValid(void) const { return GetLength() >= kMinLength; } in IsValid()
140 SetLength(kMinLength); in SetMetricsValue8()
196 …static constexpr uint8_t kMinLength = sizeof(uint8_t) + sizeof(uint8_t); ///< Minimum expected TLV… member in ot::LinkMetrics::FwdProbingRegSubTlv
204 SetLength(kMinLength); in Init()
213 bool IsValid(void) const { return GetLength() >= kMinLength; } in IsValid()
260 …static constexpr uint8_t kMinLength = sizeof(uint8_t); ///< Minimum TLV length (only `EnhAckFlags`… member in ot::LinkMetrics::EnhAckConfigSubTlv
268 SetLength(kMinLength); in Init()
277 bool IsValid(void) const { return GetLength() >= kMinLength; } in IsValid()
Dnetwork_data_service.hpp339 …static constexpr uint8_t kMinLength = sizeof(Ip6::Address) + sizeof(uint16_t); // Address and port. member in ot::NetworkData::Service::Manager::DnsSrpUnicast::AddrData
348 …uint8_t GetLength(void) const { return (mVersion == 0) ? kMinLength : sizeof(AddrData)… in GetLength()
361 static_assert(AddrData::kMinLength + sizeof(uint8_t) == sizeof(AddrData),
368 static constexpr uint8_t kMinLength = sizeof(uint8_t) + AddrData::kMinLength; member in ot::NetworkData::Service::Manager::DnsSrpUnicast::ServiceData
391 static_assert(ServiceData::kMinLength + sizeof(uint8_t) == sizeof(ServiceData),
398 static constexpr uint8_t kMinLength = AddrData::kMinLength; member in ot::NetworkData::Service::Manager::DnsSrpUnicast::ServerData
416 static_assert(ServerData::kMinLength + sizeof(uint8_t) == sizeof(ServerData),
Dnetwork_data_tlvs.hpp1214 (length >= kMinLength + (IsThreadEnterprise() ? 0 : sizeof(uint32_t))) && in IsValid()
1313 return sizeof(NetworkDataTlv) + kMinLength + aServiceDataLength + in CalculateSize()
1325 return kMinLength + (IsThreadEnterprise() ? 0 : sizeof(uint32_t)) + GetServiceDataLength(); in GetFieldsLength()
1330 …static constexpr uint8_t kMinLength = sizeof(uint8_t) + sizeof(uint8_t); // Flags & Ser… member in ot::NetworkData::ServiceTlv
Dlink_metrics.cpp159 …essOrExit(error = aMessage.Read(aOffsetRange, &reportTlv, sizeof(Tlv) + ReportSubTlv::kMinLength)); in HandleReport()
274 enhAckConfigSubTlv.SetLength(EnhAckConfigSubTlv::kMinLength + typeIdCount); in SendMgmtRequestEnhAckProbing()
543 minTlvSize = sizeof(Tlv) + FwdProbingRegSubTlv::kMinLength; in HandleManagementRequest()
548 minTlvSize = sizeof(Tlv) + EnhAckConfigSubTlv::kMinLength; in HandleManagementRequest()
Dnetwork_data_service.cpp292 VerifyOrExit(aLength >= kMinLength, error = kErrorParse); in ParseFrom()
/openthread-latest/src/core/meshcop/
Dmeshcop.hpp66 …static constexpr uint8_t kMinLength = 6; ///< Min PSKd string length (excl… member in ot::MeshCoP::JoinerPskd
Dmeshcop.cpp86 VerifyOrExit(pskdLength >= kMinLength && pskdLength <= kMaxLength); in IsPskdValid()