Home
last modified time | relevance | path

Searched refs:OT_ERROR_INVALID_ARGS (Results 1 – 25 of 40) sorted by relevance

12

/openthread-3.4.0/tests/unit/
Dtest_cmd_line_parser.cpp108 {"a", OT_ERROR_INVALID_ARGS, false}, // Error case: Incorrect char in TestParsingInts()
109 {"-1", OT_ERROR_INVALID_ARGS, false}, // Error case: Negative value in TestParsingInts()
110 {"", OT_ERROR_INVALID_ARGS, false}, // Empty string indicate end of the list in TestParsingInts()
132 {"-5", OT_ERROR_INVALID_ARGS, 0}, // Error case: Negative value. in TestParsingInts()
133 {"0y", OT_ERROR_INVALID_ARGS, 0}, // Error case: Incorrect prefix. in TestParsingInts()
134 {"0x7g", OT_ERROR_INVALID_ARGS, 0}, // Error case: Bad hex char. in TestParsingInts()
135 {"0xaaa", OT_ERROR_INVALID_ARGS, 0}, // Error case: Out or range. in TestParsingInts()
136 {"256", OT_ERROR_INVALID_ARGS, 0}, // Error case: Out of range (max value + 1) in TestParsingInts()
137 {"12e", OT_ERROR_INVALID_ARGS, 0}, // Error case: Extra char. in TestParsingInts()
138 {"", OT_ERROR_INVALID_ARGS, 0} // Empty string indicates end of the list in TestParsingInts()
[all …]
/openthread-3.4.0/examples/platforms/simulation/
Ddiag.c82 otEXPECT_ACTION(aGpio == SIM_GPIO, error = OT_ERROR_INVALID_ARGS); in otPlatDiagGpioSet()
93 otEXPECT_ACTION((aGpio == SIM_GPIO) && (aValue != NULL), error = OT_ERROR_INVALID_ARGS); in otPlatDiagGpioGet()
104 otEXPECT_ACTION(aGpio == SIM_GPIO, error = OT_ERROR_INVALID_ARGS); in otPlatDiagGpioSetMode()
115 otEXPECT_ACTION((aGpio == SIM_GPIO) && (aMode != NULL), error = OT_ERROR_INVALID_ARGS); in otPlatDiagGpioGetMode()
130 error = OT_ERROR_INVALID_ARGS); in otPlatDiagRadioSetRawPowerSetting()
145 …ION((aRawPowerSetting != NULL) && (aRawPowerSettingLength != NULL), error = OT_ERROR_INVALID_ARGS); in otPlatDiagRadioGetRawPowerSetting()
147 …tEXPECT_ACTION((sRawPowerSettingLength <= *aRawPowerSettingLength), error = OT_ERROR_INVALID_ARGS); in otPlatDiagRadioGetRawPowerSetting()
Dentropy.c99 otEXPECT_ACTION(aOutput && aOutputLength, error = OT_ERROR_INVALID_ARGS); in otPlatEntropyGet()
124 otEXPECT_ACTION(aOutput && aOutputLength, error = OT_ERROR_INVALID_ARGS); in otPlatEntropyGet()
/openthread-3.4.0/src/cli/
Dcli_srp_client.cpp53 VerifyOrExit(len + 1 <= aDestSize, error = OT_ERROR_INVALID_ARGS); in CopyString()
134 VerifyOrExit(aArgs[2].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
138 VerifyOrExit(len + 1 <= size, error = OT_ERROR_INVALID_ARGS); in Process()
154 VerifyOrExit(aArgs[1].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
224 VerifyOrExit(aArgs[3].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
232 VerifyOrExit(aArgs[1].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
267 VerifyOrExit(aArgs[1].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
305 VerifyOrExit(!aArgs[2].IsEmpty() && aArgs[3].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
343 VerifyOrExit(aArgs[2].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
442 VerifyOrExit(aArgs[9].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ProcessServiceAdd()
[all …]
Dcli_br.cpp61 VerifyOrExit(aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
82 VerifyOrExit(aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
115 VerifyOrExit(aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
144 ExitNow(error = OT_ERROR_INVALID_ARGS); in ParsePrefixTypeArgs()
147 VerifyOrExit(aArgs[1].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ParsePrefixTypeArgs()
372 VerifyOrExit(aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
480 VerifyOrExit(aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
Dcli.cpp361 VerifyOrExit(!aArg.IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ParseJoinerDiscerner()
368 VerifyOrExit(aDiscerner.mLength > 0 && aDiscerner.mLength <= 64, error = OT_ERROR_INVALID_ARGS); in ParseJoinerDiscerner()
408 VerifyOrExit(factor == msFactor, error = OT_ERROR_INVALID_ARGS); in ParsePingInterval()
415 ExitNow(error = OT_ERROR_INVALID_ARGS); in ParsePingInterval()
445 error = OT_ERROR_INVALID_ARGS; in ParsePreference()
483 VerifyOrExit(!aArg.IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ParseToIp6Address()
949 VerifyOrExit(aArgs[4].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
1042 VerifyOrExit(aArgs[4].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ProcessBackboneRouterMgmtMlr()
1241 ExitNow(error = OT_ERROR_INVALID_ARGS); in ProcessBackboneRouterLocal()
1433 error = OT_ERROR_INVALID_ARGS; in Process()
[all …]
Dcli_tcp.cpp170 ExitNow(error = OT_ERROR_INVALID_ARGS); in Process()
185 error = OT_ERROR_INVALID_ARGS); in Process()
242 VerifyOrExit(aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
283 VerifyOrExit(aArgs[2].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
308 VerifyOrExit(aArgs[2].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
335 VerifyOrExit(!aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
336 VerifyOrExit(aArgs[1].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
390 VerifyOrExit(mBenchmarkBytesTotal != 0, error = OT_ERROR_INVALID_ARGS); in Process()
392 VerifyOrExit(aArgs[1].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
433 VerifyOrExit(aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
[all …]
Dcli_network_data.cpp176 VerifyOrExit(aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
216 error = OT_ERROR_INVALID_ARGS; in Process()
382 error = OT_ERROR_INVALID_ARGS; in Process()
433 error = OT_ERROR_INVALID_ARGS; in Process()
480 VerifyOrExit(aArgs[0] == "check", error = OT_ERROR_INVALID_ARGS); in Process()
747 otError error = OT_ERROR_INVALID_ARGS; in Process()
784 ExitNow(error = OT_ERROR_INVALID_ARGS); in Process()
Dcli_dataset.cpp146 otError error = OT_ERROR_INVALID_ARGS; in Process()
222 error = OT_ERROR_INVALID_ARGS; in Process()
246 error = OT_ERROR_INVALID_ARGS; in Process()
397 otError error = OT_ERROR_INVALID_ARGS; in Process()
771 VerifyOrExit(!arg->IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
830 ExitNow(error = OT_ERROR_INVALID_ARGS); in Process()
878 error = OT_ERROR_INVALID_ARGS; in Process()
955 ExitNow(error = OT_ERROR_INVALID_ARGS); in Process()
1016 error = OT_ERROR_INVALID_ARGS; in Process()
1068 VerifyOrExit(!aArgs[1].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
[all …]
Dcli_coap_secure.cpp99 VerifyOrExit(aArgs[0].GetLength() < kMaxUriLength, error = OT_ERROR_INVALID_ARGS); in Process()
137 … VerifyOrExit(aArgs[0].GetLength() < sizeof(mResourceContent), error = OT_ERROR_INVALID_ARGS); in Process()
163 VerifyOrExit(aArgs[0] == "true", error = OT_ERROR_INVALID_ARGS); in Process()
229 VerifyOrExit(!aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ProcessRequest()
230 VerifyOrExit(aArgs[0].GetLength() < sizeof(coapUri), error = OT_ERROR_INVALID_ARGS); in ProcessRequest()
399 VerifyOrExit(!aArgs[1].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
402 VerifyOrExit(length <= sizeof(mPsk), error = OT_ERROR_INVALID_ARGS); in Process()
407 VerifyOrExit(length <= sizeof(mPskId), error = OT_ERROR_INVALID_ARGS); in Process()
465 ExitNow(error = aArgs[0].IsEmpty() ? OT_ERROR_INVALID_ARGS : OT_ERROR_NONE); in Process()
Dcli_srp_server.cpp48 otError error = OT_ERROR_INVALID_ARGS; in Process()
186 VerifyOrExit(aArgs[2].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
214 VerifyOrExit(aArgs[4].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
228 VerifyOrExit(aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
293 VerifyOrExit(aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
Dcli_udp.cpp72 VerifyOrExit(aArgs[2].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
95 VerifyOrExit(aArgs[2].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
171 VerifyOrExit(!aArgs[1].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
183 VerifyOrExit(!aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
Dcli_commissioner.cpp134 VerifyOrExit(!aArgs[1].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
159 VerifyOrExit(!aArgs[2].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
188 error = OT_ERROR_INVALID_ARGS; in Process()
232 ExitNow(error = OT_ERROR_INVALID_ARGS); in Process()
249 VerifyOrExit(!aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
294 ExitNow(error = OT_ERROR_INVALID_ARGS); in Process()
Dcli_joiner.cpp47 otError error = OT_ERROR_INVALID_ARGS; in Process()
157 VerifyOrExit(!aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process()
Dcli.hpp304 VerifyOrExit(aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ProcessGet()
317 VerifyOrExit(aArgs[1].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ProcessSet()
331 VerifyOrExit(aArgs[1].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ProcessSet()
631 VerifyOrExit(aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ProcessGet()
642 VerifyOrExit(aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ProcessGet()
Dcli_coap.cpp159 VerifyOrExit(aArgs[0].GetLength() < kMaxUriLength, error = OT_ERROR_INVALID_ARGS); in Process()
202 … VerifyOrExit(aArgs[0].GetLength() < sizeof(mResourceContent), error = OT_ERROR_INVALID_ARGS); in Process()
291 ExitNow(error = OT_ERROR_INVALID_ARGS); in Process()
308 error = OT_ERROR_INVALID_ARGS); in Process()
376 VerifyOrExit(!aArgs[1].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ProcessRequest()
377 VerifyOrExit(aArgs[1].GetLength() < sizeof(coapUri), error = OT_ERROR_INVALID_ARGS); in ProcessRequest()
587 ExitNow(error = aArgs[0].IsEmpty() ? OT_ERROR_INVALID_ARGS : OT_ERROR_NONE); in Process()
/openthread-3.4.0/tools/ot-fct/
Dcli.cpp101 VerifyOrExit(aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ProcessTargetPowerTable()
129 VerifyOrExit(aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ProcessRegionDomainTable()
219 VerifyOrExit(!arg->IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ProcessCalibrationTable()
231 error = OT_ERROR_INVALID_ARGS); in ProcessCalibrationTable()
241 VerifyOrExit(!arg->IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ProcessCalibrationTable()
254 error = OT_ERROR_INVALID_ARGS; in ProcessCalibrationTable()
261 error = OT_ERROR_INVALID_ARGS; in ProcessCalibrationTable()
270 error = OT_ERROR_INVALID_ARGS; in ProcessCalibrationTable()
/openthread-3.4.0/src/posix/platform/
Dentropy.cpp101 VerifyOrExit(aOutput && aOutputLength, error = OT_ERROR_INVALID_ARGS); in otPlatEntropyGet()
126 VerifyOrExit(aOutput && aOutputLength, error = OT_ERROR_INVALID_ARGS); in otPlatEntropyGet()
Dconfig_file.cpp61 VerifyOrExit((aKey != nullptr) && (aValue != nullptr), error = OT_ERROR_INVALID_ARGS); in Get()
124 VerifyOrExit((aKey != nullptr) && (aValue != nullptr), error = OT_ERROR_INVALID_ARGS); in Add()
158 VerifyOrExit(aKey != nullptr, error = OT_ERROR_INVALID_ARGS); in Clear()
Dudp.cpp264 VerifyOrExit(aUdpSocket->mSockName.mPort != 0, error = OT_ERROR_INVALID_ARGS); in otPlatUdpBind()
358 VerifyOrExit(aUdpSocket->mHandle != nullptr, error = OT_ERROR_INVALID_ARGS); in otPlatUdpConnect()
423 VerifyOrExit(aUdpSocket->mHandle != nullptr, error = OT_ERROR_INVALID_ARGS); in otPlatUdpSend()
427 VerifyOrExit(len == otMessageRead(aMessage, 0, payload, len), error = OT_ERROR_INVALID_ARGS); in otPlatUdpSend()
462 VerifyOrExit(aUdpSocket->mHandle != nullptr, error = OT_ERROR_INVALID_ARGS); in otPlatUdpJoinMulticastGroup()
502 VerifyOrExit(aUdpSocket->mHandle != nullptr, error = OT_ERROR_INVALID_ARGS); in otPlatUdpLeaveMulticastGroup()
/openthread-3.4.0/include/openthread/
Derror.h98 OT_ERROR_INVALID_ARGS = 7, enumerator
/openthread-3.4.0/src/lib/platform/
Dexit_code.h127 (aError == OT_ERROR_INVALID_ARGS ? OT_EXIT_INVALID_ARGUMENTS : OT_EXIT_FAILURE))
/openthread-3.4.0/src/lib/spinel/
Dspinel_buffer.cpp399 VerifyOrExit(aMessage != nullptr, error = OT_ERROR_INVALID_ARGS); in InFrameFeedMessage()
441 VerifyOrExit(aPosition.mSegmentHead == mWriteSegmentHead, error = OT_ERROR_INVALID_ARGS); in InFrameOverwrite()
446 VerifyOrExit(distance + aDataBufferLength <= segmentLength, error = OT_ERROR_INVALID_ARGS); in InFrameOverwrite()
489 VerifyOrExit(aPosition.mSegmentHead == mWriteSegmentHead, error = OT_ERROR_INVALID_ARGS); in InFrameReset()
493 VerifyOrExit(offset < segmentLength, error = OT_ERROR_INVALID_ARGS); in InFrameReset()
/openthread-3.4.0/src/ncp/
Dncp_base.cpp104 case OT_ERROR_INVALID_ARGS: in ThreadErrorToSpinelStatus()
1279 VerifyOrExit(count != 0, parseError = OT_ERROR_INVALID_ARGS); in CommandHandler_PEEK()
1283 VerifyOrExit(mAllowPeekDelegate(address, count), parseError = OT_ERROR_INVALID_ARGS); in CommandHandler_PEEK()
1313 VerifyOrExit(count != 0, parseError = OT_ERROR_INVALID_ARGS); in CommandHandler_POKE()
1314 VerifyOrExit(count <= dataLen, parseError = OT_ERROR_INVALID_ARGS); in CommandHandler_POKE()
1318 VerifyOrExit(mAllowPokeDelegate(address, count), parseError = OT_ERROR_INVALID_ARGS); in CommandHandler_POKE()
1447 error = OT_ERROR_INVALID_ARGS; in HandlePropertySet()
1570 VerifyOrExit(channel <= 31, error = OT_ERROR_INVALID_ARGS); in DecodeChannelMask()
1672 VerifyOrExit(HasOnly1BitSet(mScanChannelMask), error = OT_ERROR_INVALID_ARGS); in HandlePropertySet()
2025 ExitNow(error = OT_ERROR_INVALID_ARGS); in HandlePropertySet()
[all …]
Dncp_base_radio.cpp493 VerifyOrExit(keyIdMode == Mac::Frame::kKeyIdMode1, error = OT_ERROR_INVALID_ARGS); in HandlePropertySet()
498 VerifyOrExit(keySize == sizeof(otMacKey), error = OT_ERROR_INVALID_ARGS); in HandlePropertySet()
501 VerifyOrExit(keySize == sizeof(otMacKey), error = OT_ERROR_INVALID_ARGS); in HandlePropertySet()
504 VerifyOrExit(keySize == sizeof(otMacKey), error = OT_ERROR_INVALID_ARGS); in HandlePropertySet()

12