Lines Matching refs:error

424     otError error;  in ParseActiveTimestamp()  local
426 SuccessOrExit(error = aArgs++->ParseAsUint64(aDataset.mActiveTimestamp.mSeconds)); in ParseActiveTimestamp()
431 return error; in ParseActiveTimestamp()
461 otError error; in ParseMeshLocalPrefix() local
464 SuccessOrExit(error = aArgs++->ParseAsIp6Address(prefix)); in ParseMeshLocalPrefix()
469 return error; in ParseMeshLocalPrefix()
479 otError error = OT_ERROR_NONE; in ParseNetworkName() local
481 VerifyOrExit(!aArgs->IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ParseNetworkName()
482 error = otNetworkNameFromString(&aDataset.mNetworkName, aArgs++->GetCString()); in ParseNetworkName()
485 return error; in ParseNetworkName()
495 otError error; in ParsePendingTimestamp() local
497 SuccessOrExit(error = aArgs++->ParseAsUint64(aDataset.mPendingTimestamp.mSeconds)); in ParsePendingTimestamp()
502 return error; in ParsePendingTimestamp()
507 otError error; in ParsePskc() local
513 VerifyOrExit(!aArgs->IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ParsePskc()
515 SuccessOrExit(error = otDatasetGeneratePskc( in ParsePskc()
528 ExitNow(error = aArgs++->ParseAsHexString(aDataset.mPskc.m8)); in ParsePskc()
532 return error; in ParsePskc()
542 otError error; in ParseTlvs() local
546 SuccessOrExit(error = aArg.ParseAsHexString(length, aDatasetTlvs.mTlvs)); in ParseTlvs()
550 return error; in ParseTlvs()
557 otError error = OT_ERROR_NONE; in ProcessCommand() local
562 SuccessOrExit(error = otDatasetParseTlvs(&sDatasetTlvs, &dataset)); in ProcessCommand()
572 SuccessOrExit(error = (this->*aMapper.mParse)(aArgs, dataset)); in ProcessCommand()
574 SuccessOrExit(error = otDatasetUpdateTlvs(&dataset, &sDatasetTlvs)); in ProcessCommand()
578 return error; in ProcessCommand()
605 otError error; in Print() local
608 SuccessOrExit(error = otDatasetParseTlvs(&aDatasetTlvs, &dataset)); in Print()
622 return error; in Print()
642 otError error = OT_ERROR_INVALID_ARGS; in Process() local
646 error = otDatasetGetActiveTlvs(GetInstancePtr(), &sDatasetTlvs); in Process()
650 error = otDatasetGetPendingTlvs(GetInstancePtr(), &sDatasetTlvs); in Process()
657 SuccessOrExit(error = otDatasetCreateNewNetwork(GetInstancePtr(), &dataset)); in Process()
663 ExitNow(error = ParseTlvs(aArgs[1], sDatasetTlvs)); in Process()
667 return error; in Process()
700 otError error; in Process() local
703 SuccessOrExit(error = otDatasetGetActiveTlvs(GetInstancePtr(), &dataset)); in Process()
707 error = Print(dataset); in Process()
715 error = OT_ERROR_INVALID_ARGS; in Process()
719 return error; in Process()
724 otError error; in Process() local
727 SuccessOrExit(error = otDatasetGetPendingTlvs(GetInstancePtr(), &datasetTlvs)); in Process()
731 error = Print(datasetTlvs); in Process()
739 error = OT_ERROR_INVALID_ARGS; in Process()
743 return error; in Process()
765 otError error = OT_ERROR_INVALID_ARGS; in Process() local
780 error = otDatasetSetActiveTlvs(GetInstancePtr(), &sDatasetTlvs); in Process()
795 error = otDatasetSetPendingTlvs(GetInstancePtr(), &sDatasetTlvs); in Process()
798 return error; in Process()
803 otError error = OT_ERROR_NONE; in Process() local
817 SuccessOrExit(error = (this->*mapper->mParse)(arg, dataset)); in Process()
823 SuccessOrExit(error = ParseTlvs(*arg, tlvs)); in Process()
828 ExitNow(error = OT_ERROR_INVALID_ARGS); in Process()
850 error = in Process()
872 error = in Process()
878 error = OT_ERROR_INVALID_ARGS; in Process()
882 return error; in Process()
887 otError error = OT_ERROR_NONE; in Process() local
907 SuccessOrExit(error = ParseTlvs(*arg, tlvs)); in Process()
912 SuccessOrExit(error = arg->ParseAsIp6Address(address)); in Process()
917 ExitNow(error = OT_ERROR_INVALID_ARGS); in Process()
948error = otDatasetSendMgmtActiveGet(GetInstancePtr(), &datasetComponents, tlvs.mTlvs, tlvs.mLength, in Process()
973error = otDatasetSendMgmtPendingGet(GetInstancePtr(), &datasetComponents, tlvs.mTlvs, tlvs.mLength, in Process()
978 error = OT_ERROR_INVALID_ARGS; in Process()
982 return error; in Process()
1036 otError error; in ParseSecurityPolicy() local
1042 SuccessOrExit(error = aArgs->ParseAsUint16(policy.mRotationTime)); in ParseSecurityPolicy()
1084 ExitNow(error = OT_ERROR_INVALID_ARGS); in ParseSecurityPolicy()
1091 SuccessOrExit(error = aArgs->ParseAsUint8(versionThreshold)); in ParseSecurityPolicy()
1093 VerifyOrExit(versionThreshold <= kMaxVersionThreshold, error = OT_ERROR_INVALID_ARGS); in ParseSecurityPolicy()
1097 if (error == OT_ERROR_NONE) in ParseSecurityPolicy()
1102 return error; in ParseSecurityPolicy()
1123 otError error = OT_ERROR_NONE; in Process() local
1126 SuccessOrExit(error = ParseTlvs(aArgs[1], datasetTlvs)); in Process()
1130 error = otDatasetSetActiveTlvs(GetInstancePtr(), &datasetTlvs); in Process()
1134 error = otDatasetSetPendingTlvs(GetInstancePtr(), &datasetTlvs); in Process()
1138 error = OT_ERROR_INVALID_ARGS; in Process()
1142 return error; in Process()
1157 otError error = OT_ERROR_NONE; in Process() local
1159 VerifyOrExit(aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
1163 return error; in Process()
1170 otError error = OT_ERROR_NONE; in Process() local
1216 SuccessOrExit(error = otDatasetParseTlvs(&sDatasetTlvs, &dataset)); in Process()
1218error = otDatasetUpdaterRequestUpdate(GetInstancePtr(), &dataset, &Dataset::HandleDatasetUpdater, … in Process()
1235 error = OT_ERROR_INVALID_ARGS; in Process()
1239 return error; in Process()
1280 otError error = OT_ERROR_INVALID_COMMAND; in Process() local
1286 ExitNow(error = Print(sDatasetTlvs)); in Process()
1323 ExitNow(error = OT_ERROR_NONE); in Process()
1330 error = ProcessCommand(*mapper, aArgs + 1); in Process()
1337 error = (this->*command->mHandler)(aArgs + 1); in Process()
1340 return error; in Process()