Home
last modified time | relevance | path

Searched refs:OT_ERROR_FAILED (Results 1 – 25 of 37) sorted by relevance

12

/openthread-latest/src/posix/platform/
Dudp.cpp157 error = (errno == EINVAL) ? OT_ERROR_INVALID_STATE : OT_ERROR_FAILED; in transmitPacket()
213 return rval > 0 ? OT_ERROR_NONE : OT_ERROR_FAILED; in receivePacket()
226 VerifyOrExit(fd >= 0, error = OT_ERROR_FAILED); in otPlatUdpSocket()
244 VerifyOrExit(0 == close(fd), error = OT_ERROR_FAILED); in otPlatUdpClose()
270 …(0 == bind(fd, reinterpret_cast<struct sockaddr *>(&sin6), sizeof(sin6)), error = OT_ERROR_FAILED); in otPlatUdpBind()
275 …it(0 == setsockopt(fd, IPPROTO_IPV6, IPV6_RECVHOPLIMIT, &on, sizeof(on)), error = OT_ERROR_FAILED); in otPlatUdpBind()
276 …xit(0 == setsockopt(fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, &on, sizeof(on)), error = OT_ERROR_FAILED); in otPlatUdpBind()
280 if (error == OT_ERROR_FAILED) in otPlatUdpBind()
300 …erifyOrExit(setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, nullptr, 0) == 0, error = OT_ERROR_FAILED); in otPlatUdpBindToNetif()
304 error = OT_ERROR_FAILED); in otPlatUdpBindToNetif()
[all …]
Dutils.cpp67 VerifyOrExit(file != nullptr, error = OT_ERROR_FAILED); in ExecuteCommand()
79 VerifyOrExit(exitCode == 0, error = OT_ERROR_FAILED); in ExecuteCommand()
Dentropy.cpp104 VerifyOrExit(file != nullptr, error = OT_ERROR_FAILED); in otPlatEntropyGet()
107 VerifyOrExit(readLength == aOutputLength, error = OT_ERROR_FAILED); in otPlatEntropyGet()
Dsettings.cpp440 VerifyOrExit(offset == 0 && size >= 0, error = OT_ERROR_FAILED); in PlatformSettingsDelete()
449 VerifyOrExit(rval == sizeof(key), error = OT_ERROR_FAILED); in PlatformSettingsDelete()
452 VerifyOrExit(rval == sizeof(length), error = OT_ERROR_FAILED); in PlatformSettingsDelete()
460 … VerifyOrExit(offset == lseek(sSettingsFd, length, SEEK_CUR), error = OT_ERROR_FAILED); in PlatformSettingsDelete()
467 … VerifyOrExit(offset == lseek(sSettingsFd, length, SEEK_CUR), error = OT_ERROR_FAILED); in PlatformSettingsDelete()
478 VerifyOrExit(rval == sizeof(key), error = OT_ERROR_FAILED); in PlatformSettingsDelete()
481 VerifyOrExit(rval == sizeof(length), error = OT_ERROR_FAILED); in PlatformSettingsDelete()
499 else if (error == OT_ERROR_FAILED) in PlatformSettingsDelete()
Dhdlc_interface.cpp158 VerifyOrExit(mSockFd != -1, error = OT_ERROR_FAILED); in Init()
164 VerifyOrExit(mSockFd != -1, error = OT_ERROR_FAILED); in Init()
170 ExitNow(error = OT_ERROR_FAILED); in Init()
444 error = OT_ERROR_FAILED; in WaitForWritable()
763 error = OT_ERROR_FAILED; in ResetConnection()
Dmulticast_routing.cpp168 ? OT_ERROR_FAILED in UpdateMldReport()
274 VerifyOrExit(nr >= static_cast<int>(sizeof(struct mrt6msg)), error = OT_ERROR_FAILED); in ProcessMulticastRouterMessages()
340 error = OT_ERROR_FAILED); in AddMulticastForwardingCache()
376 : OT_ERROR_FAILED; in UnblockInboundMulticastForwardingCache()
605 : OT_ERROR_FAILED; in RemoveMulticastForwardingCache()
Dspinel_manager.cpp105 DieNow(OT_ERROR_FAILED); in CreateSpinelInterface()
128 DieNow(OT_ERROR_FAILED); in CreateSpinelInterface()
Dmdns_socket.cpp494 otError error = OT_ERROR_FAILED; in OpenIp4Socket()
544 error = OT_ERROR_FAILED; in OpenIp4Socket()
586 otError error = OT_ERROR_FAILED; in OpenIp6Socket()
625 error = OT_ERROR_FAILED; in OpenIp6Socket()
700 error = OT_ERROR_FAILED; in SetSocketOptionValue()
Dradio.cpp115 DieNow(OT_ERROR_FAILED); in ProcessRadioUrl()
192 … VerifyOrDie((error == OT_ERROR_NONE) || (error == OT_ERROR_NOT_IMPLEMENTED), OT_ERROR_FAILED); in ProcessMaxPowerTable()
660 VerifyOrExit((str = strtok(output, "\r")) != nullptr, error = OT_ERROR_FAILED); in otPlatDiagGpioGet()
692 VerifyOrExit((str = strtok(output, "\r")) != nullptr, error = OT_ERROR_FAILED); in otPlatDiagGpioGetMode()
704 error = OT_ERROR_FAILED; in otPlatDiagGpioGetMode()
741 …it(sscanf(output, fmt, &targetPower, &actualPower, rawPowerSetting) == 3, error = OT_ERROR_FAILED); in otPlatDiagRadioGetPowerSettings()
795 VerifyOrExit((str = strtok(output, "\r")) != nullptr, error = OT_ERROR_FAILED); in otPlatDiagRadioGetRawPowerSetting()
Dmisc.cpp72 error = OT_ERROR_FAILED; in otPlatSetMcuPowerState()
Dinfra_if.cpp231 VerifyOrExit(mInfraIfIcmp6Socket >= 0, error = OT_ERROR_FAILED); in SendIcmp6Nd()
276 ExitNow(error = OT_ERROR_FAILED); in SendIcmp6Nd()
282 ExitNow(error = OT_ERROR_FAILED); in SendIcmp6Nd()
784 ExitNow(error = OT_ERROR_FAILED); in DiscoverNat64Prefix()
Dnetif.cpp587 error = OT_ERROR_FAILED; in UpdateMulticast()
610 VerifyOrExit(ioctl(sIpFd, SIOCGIFFLAGS, &ifr) == 0, perror("ioctl"); error = OT_ERROR_FAILED); in SetLinkState()
620 … VerifyOrExit(ioctl(sIpFd, SIOCSIFFLAGS, &ifr) == 0, perror("ioctl"); error = OT_ERROR_FAILED); in SetLinkState()
1087 VerifyOrExit(write(sTunFd, packet, length) == length, perror("write"); error = OT_ERROR_FAILED); in processReceive()
1217 VerifyOrExit(rval > 0, error = OT_ERROR_FAILED); in processTransmit()
1609 error = OT_ERROR_FAILED; in processNetifAddrEvent()
2106 VerifyOrExit(ioctl(sIpFd, SIOCIFDESTROY, &ifr) == 0, perror("ioctl"); error = OT_ERROR_FAILED);
/openthread-latest/src/lib/spinel/
Dspinel_helper.cpp50 ret = OT_ERROR_FAILED; in SpinelStatusToOtError()
108 ret = OT_ERROR_FAILED; in SpinelStatusToOtError()
/openthread-latest/examples/platforms/simulation/
Dentropy.c102 otEXPECT_ACTION(file != NULL, error = OT_ERROR_FAILED); in otPlatEntropyGet()
105 otEXPECT_ACTION(readLength == aOutputLength, error = OT_ERROR_FAILED); in otPlatEntropyGet()
Dmisc.c99 error = OT_ERROR_FAILED; in otPlatSetMcuPowerState()
Duart.c291 return posix_logfile ? OT_ERROR_NONE : OT_ERROR_FAILED; in otPlatDebugUart_logfile()
Dinfra_if.c186 otError error = OT_ERROR_FAILED; in otPlatInfraIfSendIcmp6Nd()
/openthread-latest/examples/platforms/utils/
Duart_rtt.c59 otError error = OT_ERROR_FAILED; in otPlatUartEnable()
92 …CT_ACTION(SEGGER_RTT_Write(UART_RTT_BUFFER_INDEX, aBuf, aBufLength) != 0, error = OT_ERROR_FAILED); in otPlatUartSend()
Ddebug_uart.c119 return OT_ERROR_FAILED; in otPlatDebugUart_logfile()
/openthread-latest/src/ncp/
Dncp_hdlc.cpp356 otError status = OT_ERROR_FAILED; in OutFrameBegin()
372 status = OT_ERROR_FAILED; in OutFrameBegin()
377 status = OT_ERROR_FAILED; in OutFrameBegin()
/openthread-latest/src/core/border_router/
Dinfra_if.cpp219 return OT_ERROR_FAILED; in otPlatInfraIfSendIcmp6Nd()
222 OT_TOOL_WEAK otError otPlatInfraIfDiscoverNat64Prefix(uint32_t) { return OT_ERROR_FAILED; } in otPlatInfraIfDiscoverNat64Prefix()
/openthread-latest/include/openthread/
Derror.h68 OT_ERROR_FAILED = 1, enumerator
/openthread-latest/src/core/common/
Derror.hpp57 constexpr Error kErrorFailed = OT_ERROR_FAILED;
/openthread-latest/tests/unit/
Dtest_platform.cpp209 VerifyOrExit(file != nullptr, error = OT_ERROR_FAILED); in otPlatEntropyGet()
215 error = OT_ERROR_FAILED; in otPlatEntropyGet()
484 return OT_ERROR_FAILED; in otPlatInfraIfSendIcmp6Nd()
487 OT_TOOL_WEAK otError otPlatInfraIfDiscoverNat64Prefix(uint32_t) { return OT_ERROR_FAILED; } in otPlatInfraIfDiscoverNat64Prefix()
/openthread-latest/tests/fuzz/
Dfuzzer_platform.cpp653 return OT_ERROR_FAILED; in otPlatInfraIfSendIcmp6Nd()
660 return OT_ERROR_FAILED; in otPlatInfraIfDiscoverNat64Prefix()

12