Home
last modified time | relevance | path

Searched refs:kErrorParse (Results 1 – 25 of 62) sorted by relevance

123

/openthread-latest/tests/unit/
Dtest_ip_address.cpp131 {"2001:db8::a::b", {0}, kErrorParse}, in TestIp6AddressFromString()
134 {"2001:db8::abcd:efgh", {0}, kErrorParse}, in TestIp6AddressFromString()
137 {"1:2:3:4:5:6:7:8:9", {0}, kErrorParse}, in TestIp6AddressFromString()
140 {"2001:db8::abc:def12:1:2", {0}, kErrorParse}, in TestIp6AddressFromString()
143 {"64:ff9b::123.231.0.257", {0}, kErrorParse}, in TestIp6AddressFromString()
146 {"64:ff9b::1.22.33", {0}, kErrorParse}, in TestIp6AddressFromString()
149 {"64:ff9b::1.22.33.44.5", {0}, kErrorParse}, in TestIp6AddressFromString()
152 {"1:2:3:4:5:6:7:127.1.2.3", {0}, kErrorParse}, in TestIp6AddressFromString()
155 {".", {0}, kErrorParse}, in TestIp6AddressFromString()
158 {":.", {0}, kErrorParse}, in TestIp6AddressFromString()
[all …]
Dtest_tlv.cpp61 VerifyOrQuit(Tlv::ReadTlvValue(*message, 0, buffer, 1) == kErrorParse); in TestTlv()
75 VerifyOrQuit(Tlv::ReadTlvValue(*message, offset, buffer, 1) == kErrorParse); in TestTlv()
89 VerifyOrQuit(Tlv::ReadTlvValue(*message, offset, buffer, 1) == kErrorParse); in TestTlv()
105 VerifyOrQuit(Tlv::ReadTlvValue(*message, offset, buffer, 2) == kErrorParse); in TestTlv()
125 VerifyOrQuit(Tlv::ReadTlvValue(*message, offset, buffer, 3) == kErrorParse); in TestTlv()
136 VerifyOrQuit(Tlv::ReadTlvValue(*message, offset, buffer, 0) == kErrorParse); in TestTlv()
146 VerifyOrQuit(Tlv::ReadTlvValue(*message, offset, buffer, 2) == kErrorParse); in TestTlv()
158 VerifyOrQuit(Tlv::ReadTlvValue(*message, offset, buffer, 1) == kErrorParse); in TestTlv()
168 VerifyOrQuit(Tlv::ReadTlvValue(*message, offset, buffer, 3) == kErrorParse); in TestTlv()
180 VerifyOrQuit(Tlv::ReadTlvValue(*message, offset, buffer, 1) == kErrorParse); in TestTlv()
Dtest_string.cpp332 {"", kErrorParse}, // Does not start with digit char ['0'-'9'] in TestStringParseUint8()
333 {"a12", kErrorParse}, // Does not start with digit char ['0'-'9'] in TestStringParseUint8()
334 {" 12", kErrorParse}, // Does not start with digit char ['0'-'9'] in TestStringParseUint8()
335 {"256", kErrorParse}, // Larger than max `uint8_t` in TestStringParseUint8()
336 {"1000", kErrorParse}, // Larger than max `uint8_t` in TestStringParseUint8()
337 {"0256", kErrorParse}, // Larger than max `uint8_t` in TestStringParseUint8()
Dtest_lowpan.cpp252 VerifyOrQuit(error == kErrorParse, "Lowpan::Decompress failed"); in Test()
1603 testVector.SetError(kErrorParse); in TestErrorNoIphcDispatch()
1622 testVector.SetError(kErrorParse); in TestErrorTruncatedIphc()
1641 testVector.SetError(kErrorParse); in TestErrorReservedValueDestination0100()
1660 testVector.SetError(kErrorParse); in TestErrorReservedValueDestination1101()
1679 testVector.SetError(kErrorParse); in TestErrorReservedValueDestination1110()
1698 testVector.SetError(kErrorParse); in TestErrorReservedValueDestination1111()
1717 testVector.SetError(kErrorParse); in TestErrorUnknownNhc()
1736 testVector.SetError(kErrorParse); in TestErrorReservedNhc5()
1755 testVector.SetError(kErrorParse); in TestErrorReservedNhc6()
[all …]
Dtest_dataset.cpp162 VerifyOrQuit(dataset.ValidateTlvs() == kErrorParse); in TestDataset()
165 VerifyOrQuit(dataset.ValidateTlvs() == kErrorParse); in TestDataset()
226 VerifyOrQuit(dataset.ValidateTlvs() == kErrorParse); in TestDataset()
Dtest_heap_string.cpp288 VerifyOrQuit(data.SetFrom(*message, offset, sizeof(kData4) + 1) == kErrorParse); in TestHeapData()
289 VerifyOrQuit(data.SetFrom(*message, 0, message->GetLength() + 1) == kErrorParse); in TestHeapData()
290 VerifyOrQuit(data.SetFrom(*message, 1, message->GetLength()) == kErrorParse); in TestHeapData()
Dtest_dns.cpp324 VerifyOrQuit(error == kErrorParse); in TestDnsName()
337 VerifyOrQuit(error == kErrorParse); in TestDnsName()
1045 VerifyOrQuit(Dns::Name::ParseName(*message, offset) == kErrorParse); in TestDnsCompressedName()
1046 VerifyOrQuit(Dns::Name::ReadName(*message, offset, name) == kErrorParse); in TestDnsCompressedName()
1057 VerifyOrQuit(Dns::Name::ParseName(*message, offset) == kErrorParse); in TestDnsCompressedName()
1058 VerifyOrQuit(Dns::Name::ReadName(*message, offset, name) == kErrorParse); in TestDnsCompressedName()
1071 VerifyOrQuit(Dns::Name::ParseName(*message, offset) == kErrorParse); in TestDnsCompressedName()
1072 VerifyOrQuit(Dns::Name::ReadName(*message, offset, name) == kErrorParse); in TestDnsCompressedName()
1073 VerifyOrQuit(Dns::Name::CompareName(*message, offset, "FOO.") == kErrorParse); in TestDnsCompressedName()
1087 VerifyOrQuit(Dns::Name::ParseName(*message, offset) == kErrorParse); in TestDnsCompressedName()
[all …]
/openthread-latest/src/core/net/
Dip4_types.cpp46 Error error = kErrorParse; in FromString()
73 VerifyOrExit(aIp6Address.IsIp4Mapped(), error = kErrorParse); in ExtractFromIp4MappedIp6Address()
152 Error error = kErrorParse; in FromString()
205 Error error = kErrorParse; in ParseFrom()
Ddns_types.cpp60 error = kErrorParse; in ResponseCodeToError()
609 VerifyOrExit(nextLabelOffset < mMinLabelOffset, error = kErrorParse); in GetNextLabel()
617 ExitNow(error = kErrorParse); in GetNextLabel()
637 VerifyOrExit(StringFind(aLabelBuffer, kLabelSeparatorChar) == nullptr, error = kErrorParse); in ReadLabel()
711 Error error = kErrorParse; in ExtractLabels()
971 VerifyOrExit(aOffset <= aStartOffset + GetSize(), error = kErrorParse); in ReadName()
1005 return (aOffset + GetSize() <= aMessage.GetLength()) ? kErrorNone : kErrorParse; in CheckRecord()
1040 VerifyOrExit(GetTxtData() != nullptr, error = kErrorParse); in GetNextEntry()
1049 VerifyOrExit(cur + length <= GetTxtDataEnd(), error = kErrorParse); in GetNextEntry()
1240 …erifyOrExit(static_cast<uint32_t>(aOffset) + aLength <= aMessage.GetLength(), error = kErrorParse); in ReadFrom()
[all …]
Dip6_headers.cpp46 Error error = kErrorParse; in ParseFrom()
88 VerifyOrExit(aOffsetRange.Contains(GetSize()), error = kErrorParse); in ParseFrom()
Ddhcp6_client.cpp475 error = kErrorParse); in ProcessServerIdentifier()
492 error = kErrorParse); in ProcessClientIdentifier()
509 VerifyOrExit(length <= aMessage.GetLength() - aOffset, error = kErrorParse); in ProcessIaNa()
540 error = kErrorParse); in ProcessStatusCode()
552 VerifyOrExit(option.GetLength() == sizeof(option) - sizeof(Option), error = kErrorParse); in ProcessIaAddress()
Ddhcp6_server.cpp251 error = kErrorParse); in ProcessClientIdentifier()
262 VerifyOrExit(option.GetLength() == sizeof(option) - sizeof(Option), error = kErrorParse); in ProcessElapsedTime()
278 VerifyOrExit(length <= aMessage.GetLength() - aOffset, error = kErrorParse); in ProcessIaNa()
301 VerifyOrExit(option.GetLength() == sizeof(option) - sizeof(Option), error = kErrorParse); in ProcessIaAddress()
/openthread-latest/src/core/mac/
Dmac_frame.cpp276 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in ValidatePsdu()
277 VerifyOrExit((index + GetFooterLength()) <= mLength, error = kErrorParse); in ValidatePsdu()
463 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in GetDstPanId()
491 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in GetDstAddr()
598 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in GetSrcPanId()
640 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in GetSrcAddr()
658 error = kErrorParse; in GetSrcAddr()
671 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in GetSecurityControlField()
696 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in GetSecurityLevel()
709 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in GetKeyIdMode()
[all …]
/openthread-latest/src/core/thread/
Dlink_metrics.cpp160 VerifyOrExit(reportTlv.IsValid(), error = kErrorParse); in HandleReport()
318 VerifyOrExit(!hasStatus, error = kErrorParse); in HandleManagementResponse()
328 VerifyOrExit(hasStatus, error = kErrorParse); in HandleManagementResponse()
457 VerifyOrExit(hasQueryId, error = kErrorParse); in AppendReport()
556 VerifyOrExit(fwdProbingSubTlv.GetLength() == 0, error = kErrorParse); in HandleManagementRequest()
557 VerifyOrExit(enhAckConfigSubTlv.GetLength() == 0, error = kErrorParse); in HandleManagementRequest()
559 VerifyOrExit(tlvInfo.GetSize() >= minTlvSize, error = kErrorParse); in HandleManagementRequest()
652 VerifyOrExit(!aMetrics.mPduCount, error = kErrorParse); in ReadTypeIdsFromMessage()
657 VerifyOrExit(!aMetrics.mLqi, error = kErrorParse); in ReadTypeIdsFromMessage()
662 VerifyOrExit(!aMetrics.mLinkMargin, error = kErrorParse); in ReadTypeIdsFromMessage()
[all …]
Dmle_router.cpp711 ExitNow(error = kErrorParse); in HandleLinkRequest()
724 VerifyOrExit(neighbor != nullptr, error = kErrorParse); in HandleLinkRequest()
748 ExitNow(error = kErrorParse); in HandleLinkRequest()
757 ExitNow(error = kErrorParse); in HandleLinkRequest()
908 VerifyOrExit(IsRouterRloc16(sourceAddress), error = kErrorParse); in HandleLinkAcceptVariant()
957 ExitNow(error = kErrorParse); in HandleLinkAcceptVariant()
1015 VerifyOrExit(routeTlv.IsRouterIdSet(routerId), error = kErrorParse); in HandleLinkAcceptVariant()
1030 ExitNow(error = kErrorParse); in HandleLinkAcceptVariant()
1081 ExitNow(error = kErrorParse); in HandleLinkAcceptVariant()
1154 ExitNow(error = kErrorParse); in ReadAndProcessRouteTlvOnFtdChild()
[all …]
Dnetwork_diagnostic.cpp1046 VerifyOrExit(offset + tlv.GetSize() <= aMessage.GetLength(), error = kErrorParse); in GetNextDiagTlv()
1076 VerifyOrExit(!tlv.IsExtended(), error = kErrorParse); in GetNextDiagTlv()
1078 VerifyOrExit(connectivityTlv.IsValid(), error = kErrorParse); in GetNextDiagTlv()
1088 VerifyOrExit(!tlv.IsExtended(), error = kErrorParse); in GetNextDiagTlv()
1090 VerifyOrExit(routeTlv.IsValid(), error = kErrorParse); in GetNextDiagTlv()
1099 VerifyOrExit(!tlv.IsExtended(), error = kErrorParse); in GetNextDiagTlv()
1101 VerifyOrExit(leaderDataTlv.IsValid(), error = kErrorParse); in GetNextDiagTlv()
1110 VerifyOrExit(tlvLength <= NetworkData::NetworkData::kMaxSize, error = kErrorParse); in GetNextDiagTlv()
1121 VerifyOrExit((tlvLength % Ip6::Address::kSize) == 0, error = kErrorParse); in GetNextDiagTlv()
1146 VerifyOrExit(macCountersTlv.IsValid(), error = kErrorParse); in GetNextDiagTlv()
[all …]
Dlowpan.cpp79 ExitNow(error = kErrorParse); in ComputeIid()
484 … VerifyOrExit(aMessage.GetOffset() + len + padLength <= aMessage.GetLength(), error = kErrorParse); in CompressExtensionHeader()
585 error = kErrorParse; in DispatchToNextHeader()
596 Error error = kErrorParse; in DecompressBaseHeader()
826 Error error = kErrorParse; in DecompressExtensionHeader()
879 Error error = kErrorParse; in DecompressUdpHeader()
967 Error error = kErrorParse; in Decompress()
1099 Error error = kErrorParse; in ParseFrom()
1220 Error error = kErrorParse; in ParseFrom()
Dmlr_manager.cpp482 VerifyOrExit(aResult == kErrorNone && aMessage != nullptr, error = kErrorParse); in ParseMlrResponse()
483 VerifyOrExit(aMessage->GetCode() == Coap::kCodeChanged, error = kErrorParse); in ParseMlrResponse()
489 VerifyOrExit(offsetRange.GetLength() % sizeof(Ip6::Address) == 0, error = kErrorParse); in ParseMlrResponse()
491 error = kErrorParse); in ParseMlrResponse()
500 …OrExit(aFailedAddresses.IsEmpty() || aStatus != ThreadStatusTlv::kMlrSuccess, error = kErrorParse); in ParseMlrResponse()
Dnetwork_data_leader_ftd.cpp310 VerifyOrExit(response != nullptr, error = kErrorParse); in HandleTmf()
370 VerifyOrExit((cur + 1) <= end && cur->GetNext() <= end, error = kErrorParse); in Validate()
378 VerifyOrExit(prefix->IsValid(), error = kErrorParse); in Validate()
382 error = kErrorParse); in Validate()
393 VerifyOrExit(service->IsValid(), error = kErrorParse); in Validate()
401 error = kErrorParse); in Validate()
422 Error error = kErrorParse; in ValidatePrefix()
502 Error error = kErrorParse; in ValidateService()
/openthread-latest/src/core/radio/
Dtrel_interface.cpp276 VerifyOrExit(!parsedExtAddress, error = kErrorParse); in ParsePeerInfoTxtData()
277 VerifyOrExit(entry.mValueLength == sizeof(Mac::ExtAddress), error = kErrorParse); in ParsePeerInfoTxtData()
283 VerifyOrExit(!parsedExtPanId, error = kErrorParse); in ParsePeerInfoTxtData()
284 VerifyOrExit(entry.mValueLength == sizeof(MeshCoP::ExtendedPanId), error = kErrorParse); in ParsePeerInfoTxtData()
295 VerifyOrExit(parsedExtAddress && parsedExtPanId, error = kErrorParse); in ParsePeerInfoTxtData()
/openthread-latest/src/core/coap/
Dcoap_message.cpp256 VerifyOrExit(curUriPath + optionLength < GetArrayEnd(aUriPath), error = kErrorParse); in ReadUriPathOptions()
382 VerifyOrExit(GetTokenLength() <= kMaxTokenLength, error = kErrorParse); in ParseHeader()
500 Error error = kErrorParse; in Init()
543 VerifyOrExit(mNextOptionOffset < GetMessage().GetLength(), error = kErrorParse); in Advance()
555 VerifyOrExit(optionLength <= GetMessage().GetLength() - mNextOptionOffset, error = kErrorParse); in Advance()
641 error = kErrorParse; in ReadExtendedOptionField()
/openthread-latest/src/core/meshcop/
Dtcat_agent.cpp125 VerifyOrExit(len == sizeof(mCommissionerAuthorizationField), error = kErrorParse); in Connected()
126 …ifyOrExit((mCommissionerAuthorizationField.mHeader & kCommissionerFlag) == 1, error = kErrorParse); in Connected()
131 VerifyOrExit(len == sizeof(mDeviceAuthorizationField), error = kErrorParse); in Connected()
132 VerifyOrExit((mDeviceAuthorizationField.mHeader & kCommissionerFlag) == 0, error = kErrorParse); in Connected()
368 Error error = kErrorParse; in HandleSingleTlv()
475 case kErrorParse: in HandleSingleTlv()
561 VerifyOrExit(aLength <= kPingPayloadMaxLength, error = kErrorParse); in HandlePing()
730 VerifyOrExit(aLength == sizeof(providedChallenge), error = kErrorParse); in HandleRequestPskdHash()
Dsecure_transport.cpp1328 error = kErrorParse); in GetThreadAttributeFromCertificate()
1329 VerifyOrExit(end == p + len, error = kErrorParse); in GetThreadAttributeFromCertificate()
1338 error = kErrorParse); in GetThreadAttributeFromCertificate()
1342 …it(mbedtls_asn1_get_tag(&p, endExtData, &extnOid.len, MBEDTLS_ASN1_OID) == 0, error = kErrorParse); in GetThreadAttributeFromCertificate()
1349 VerifyOrExit(ret == 0 || ret == MBEDTLS_ERR_ASN1_UNEXPECTED_TAG, error = kErrorParse); in GetThreadAttributeFromCertificate()
1352 …t(mbedtls_asn1_get_tag(&p, endExtData, &len, MBEDTLS_ASN1_OCTET_STRING) == 0, error = kErrorParse); in GetThreadAttributeFromCertificate()
1353 VerifyOrExit(endExtData == p + len, error = kErrorParse); in GetThreadAttributeFromCertificate()
1359 VerifyOrExit(len >= 2, error = kErrorParse); in GetThreadAttributeFromCertificate()
1360 VerifyOrExit(*(p + 1) == len - 2, error = kErrorParse); // check TLV Length, not Type. in GetThreadAttributeFromCertificate()
/openthread-latest/src/core/common/
Dstring.cpp190 VerifyOrExit(IsValidUtf8String(aSource), error = kErrorParse); in StringCopy()
207 Error error = kErrorParse; in StringParseUint8()
216 VerifyOrExit(value <= aMaxValue, error = kErrorParse); in StringParseUint8()
Dtlvs.cpp129 VerifyOrExit(mTlvOffsetRange.Contains(size), error = kErrorParse); in ParseFrom()
132 VerifyOrExit(mTlvOffsetRange.GetEndOffset() <= aMessage.GetLength(), error = kErrorParse); in ParseFrom()
203 VerifyOrExit(info.mValueOffsetRange.Contains(aMinLength), error = kErrorParse); in ReadTlvValue()

123