Home
last modified time | relevance | path

Searched refs:kMaxLength (Results 1 – 16 of 16) sorted by relevance

/openthread-3.5.0/src/core/meshcop/
Dmeshcop.hpp70 …static constexpr uint8_t kMaxLength = OT_JOINER_MAX_PSKD_LENGTH; ///< Max PSKd string length (excl… member in ot::MeshCoP::JoinerPskd
113 uint8_t GetLength(void) const { return static_cast<uint8_t>(StringLength(m8, kMaxLength + 1)); } in GetLength()
148 …static constexpr uint8_t kMaxLength = OT_JOINER_MAX_DISCERNER_LENGTH; ///< Max length of a Discern… member in ot::MeshCoP::JoinerDiscerner
195 bool IsValid(void) const { return (0 < mLength) && (mLength <= kMaxLength); } in IsValid()
246 …static constexpr uint8_t kMaxLength = OT_STEERING_DATA_MAX_LENGTH; ///< Maximum Steering Data leng… member in ot::MeshCoP::SteeringData
267 void Init(uint8_t aLength = kMaxLength);
Dmeshcop.cpp88 uint16_t pskdLength = StringLength(aPskdString, kMaxLength + 1); in IsPskdValid()
90 VerifyOrExit(pskdLength >= kMinLength && pskdLength <= kMaxLength); in IsPskdValid()
191 OT_ASSERT(aLength <= kMaxLength); in Init()
220 OT_ASSERT((mLength > 0) && (mLength <= kMaxLength)); in UpdateBloomFilter()
Dmeshcop_leader.cpp103 if (mCommissionerId.GetLength() > CommissionerIdTlv::kMaxLength) in HandleTmf()
105 mCommissionerId.SetLength(CommissionerIdTlv::kMaxLength); in HandleTmf()
Dcommissioner.hpp626 char mCommissionerId[CommissionerIdTlv::kMaxLength + 1];
Dmeshcop_tlvs.hpp861 static constexpr uint8_t kMaxLength = 64; ///< maximum length (bytes) member in ot::MeshCoP::CommissionerIdTlv
906 char mCommissionerId[kMaxLength];
Dcommissioner.cpp367 VerifyOrExit(len < CommissionerIdTlv::kMaxLength, error = kErrorInvalidArgs); in SetId()
/openthread-3.5.0/src/core/net/
Dip6_headers.cpp61 static constexpr uint32_t kMaxLength = kMaxDatagramLength; in IsValid() local
63 static constexpr uint32_t kMaxLength = kMaxAssembledDatagramLength; in IsValid()
66 return IsVersion6() && ((sizeof(Header) + GetPayloadLength()) <= kMaxLength); in IsValid()
Dnd6.cpp103 return (GetSize() >= sizeof(*this)) && (mPrefixLength <= Prefix::kMaxLength) && in IsValid()
138 return (GetSize() >= kMinSize) && (mPrefixLength <= Prefix::kMaxLength) && in IsValid()
Dip6_headers.hpp596 static constexpr uint8_t kMaxLength = 5; member in ot::Ip6::PadOption
598 uint8_t mPads[kMaxLength];
Dip6_address.hpp99 …static constexpr uint8_t kMaxLength = OT_IP6_ADDRESS_SIZE * CHAR_BIT; ///< Max length of a prefix … member in ot::Ip6::Prefix
188 bool IsValid(void) const { return (mLength <= kMaxLength); } in IsValid()
Dip6_address.cpp192 SuccessOrExit(StringParseUint8(cur, mLength, kMaxLength)); in FromString()
/openthread-3.5.0/tests/unit/
Dtest_heap_string.cpp169 static constexpr uint16_t kMaxLength = 100; in VerifyData() local
170 uint8_t buffer[kMaxLength]; in VerifyData()
Dtest_meshcop.cpp74 for (uint8_t len = 1; len <= MeshCoP::SteeringData::kMaxLength; len++) in TestSteeringData()
Dtest_ip_address.cpp467 for (uint8_t prefixLength = 1; prefixLength <= ot::Ip6::Prefix::kMaxLength; prefixLength++) in TestIp6Prefix()
/openthread-3.5.0/src/core/coap/
Dcoap_secure.cpp100 static_assert(static_cast<uint16_t>(MeshCoP::JoinerPskd::kMaxLength) <= in SetPsk()
/openthread-3.5.0/src/core/thread/
Ddiscover_scanner.cpp355 uint8_t dataLength = MeshCoP::SteeringData::kMaxLength; in HandleDiscoveryResponse()