/openthread-latest/src/core/crypto/ |
D | crypto_platform.cpp | 88 OT_TOOL_WEAK otError otPlatCryptoAesInit(otCryptoContext *aContext) in otPlatCryptoAesInit() argument 93 VerifyOrExit(aContext != nullptr, error = kErrorInvalidArgs); in otPlatCryptoAesInit() 94 VerifyOrExit(aContext->mContextSize >= sizeof(mbedtls_aes_context), error = kErrorFailed); in otPlatCryptoAesInit() 96 context = static_cast<mbedtls_aes_context *>(aContext->mContext); in otPlatCryptoAesInit() 103 OT_TOOL_WEAK otError otPlatCryptoAesSetKey(otCryptoContext *aContext, const otCryptoKey *aKey) in otPlatCryptoAesSetKey() argument 109 VerifyOrExit(aContext != nullptr, error = kErrorInvalidArgs); in otPlatCryptoAesSetKey() 110 VerifyOrExit(aContext->mContextSize >= sizeof(mbedtls_aes_context), error = kErrorFailed); in otPlatCryptoAesSetKey() 112 context = static_cast<mbedtls_aes_context *>(aContext->mContext); in otPlatCryptoAesSetKey() 120 OT_TOOL_WEAK otError otPlatCryptoAesEncrypt(otCryptoContext *aContext, const uint8_t *aInput, uint8… in otPlatCryptoAesEncrypt() argument 125 VerifyOrExit(aContext != nullptr, error = kErrorInvalidArgs); in otPlatCryptoAesEncrypt() [all …]
|
/openthread-latest/src/posix/platform/ |
D | platform-posix.h | 180 void platformRadioUpdateFdSet(otSysMainloopContext *aContext); 188 void platformRadioProcess(otInstance *aInstance, const otSysMainloopContext *aContext); 210 void platformUartUpdateFdSet(otSysMainloopContext *aContext); 218 void platformUartProcess(const otSysMainloopContext *aContext); 262 void platformNetifUpdateFdSet(otSysMainloopContext *aContext); 270 void platformNetifProcess(const otSysMainloopContext *aContext); 301 void virtualTimeProcess(otInstance *aInstance, const otSysMainloopContext *aContext); 310 void virtualTimeUpdateFdSet(otSysMainloopContext *aContext); 381 void platformTrelUpdateFdSet(otSysMainloopContext *aContext); 389 void platformTrelProcess(otInstance *aInstance, const otSysMainloopContext *aContext); [all …]
|
D | daemon.cpp | 336 void Daemon::Update(otSysMainloopContext &aContext) in Update() argument 340 FD_SET(mListenSocket, &aContext.mReadFdSet); in Update() 341 FD_SET(mListenSocket, &aContext.mErrorFdSet); in Update() 343 if (aContext.mMaxFd < mListenSocket) in Update() 345 aContext.mMaxFd = mListenSocket; in Update() 351 FD_SET(mSessionSocket, &aContext.mReadFdSet); in Update() 352 FD_SET(mSessionSocket, &aContext.mErrorFdSet); in Update() 354 if (aContext.mMaxFd < mSessionSocket) in Update() 356 aContext.mMaxFd = mSessionSocket; in Update() 363 void Daemon::Process(const otSysMainloopContext &aContext) in Process() argument [all …]
|
D | system.cpp | 68 static void processStateChange(otChangedFlags aFlags, void *aContext) in processStateChange() argument 70 otInstance *instance = static_cast<otInstance *>(aContext); in processStateChange() 376 static int trySelect(otSysMainloopContext &aContext) in trySelect() argument 379 fd_set originReadFdSet = aContext.mReadFdSet; in trySelect() 380 fd_set originWriteFdSet = aContext.mWriteFdSet; in trySelect() 381 fd_set originErrorFdSet = aContext.mErrorFdSet; in trySelect() 384 …rval = select(aContext.mMaxFd + 1, &aContext.mReadFdSet, &aContext.mWriteFdSet, &aContext.mErrorFd… in trySelect() 388 aContext.mReadFdSet = originReadFdSet; in trySelect() 389 aContext.mWriteFdSet = originWriteFdSet; in trySelect() 390 aContext.mErrorFdSet = originErrorFdSet; in trySelect() [all …]
|
D | resolver.cpp | 267 void Resolver::UpdateFdSet(otSysMainloopContext &aContext) in UpdateFdSet() argument 273 FD_SET(txn.mUdpFd, &aContext.mReadFdSet); in UpdateFdSet() 274 FD_SET(txn.mUdpFd, &aContext.mErrorFdSet); in UpdateFdSet() 275 if (txn.mUdpFd > aContext.mMaxFd) in UpdateFdSet() 277 aContext.mMaxFd = txn.mUdpFd; in UpdateFdSet() 283 void Resolver::Process(const otSysMainloopContext &aContext) in Process() argument 290 … if (FD_ISSET(txn.mUdpFd, &aContext.mErrorFdSet) || FD_ISSET(txn.mUdpFd, &aContext.mReadFdSet)) in Process() 319 void platformResolverProcess(const otSysMainloopContext *aContext) { gResolver.Process(*aContext); } in platformResolverProcess() argument 321 void platformResolverUpdateFdSet(otSysMainloopContext *aContext) { gResolver.UpdateFdSet(*aContext)… in platformResolverUpdateFdSet() argument
|
D | trel.cpp | 451 OT_TOOL_WEAK void trelDnssdUpdateFdSet(otSysMainloopContext *aContext) in trelDnssdUpdateFdSet() argument 456 OT_UNUSED_VARIABLE(aContext); in trelDnssdUpdateFdSet() 459 OT_TOOL_WEAK void trelDnssdProcess(otInstance *aInstance, const otSysMainloopContext *aContext) in trelDnssdProcess() argument 464 OT_UNUSED_VARIABLE(aContext); in trelDnssdProcess() 609 void platformTrelUpdateFdSet(otSysMainloopContext *aContext) in platformTrelUpdateFdSet() argument 611 assert(aContext != nullptr); in platformTrelUpdateFdSet() 615 FD_SET(sSocket, &aContext->mReadFdSet); in platformTrelUpdateFdSet() 619 FD_SET(sSocket, &aContext->mWriteFdSet); in platformTrelUpdateFdSet() 622 if (aContext->mMaxFd < sSocket) in platformTrelUpdateFdSet() 624 aContext->mMaxFd = sSocket; in platformTrelUpdateFdSet() [all …]
|
D | mainloop.hpp | 58 virtual void Update(otSysMainloopContext &aContext) = 0; 66 virtual void Process(const otSysMainloopContext &aContext) = 0; 91 void Update(otSysMainloopContext &aContext); 99 void Process(const otSysMainloopContext &aContext);
|
D | mainloop.cpp | 61 void Manager::Update(otSysMainloopContext &aContext) in Update() argument 65 source->Update(aContext); in Update() 69 void Manager::Process(const otSysMainloopContext &aContext) in Process() argument 73 source->Process(aContext); in Process()
|
/openthread-latest/src/core/coap/ |
D | coap_secure.cpp | 60 …oapSecure::Start(uint16_t aPort, uint16_t aMaxAttempts, AutoStopCallback aCallback, void *aContext) in Start() argument 64 SuccessOrExit(error = Open(aMaxAttempts, aCallback, aContext)); in Start() 71 Error CoapSecure::Start(MeshCoP::SecureTransport::TransportCallback aCallback, void *aContext) in Start() argument 76 error = mDtls.Bind(aCallback, aContext); in Start() 82 Error CoapSecure::Open(uint16_t aMaxAttempts, AutoStopCallback aCallback, void *aContext) in Open() argument 87 mAutoStopCallback.Set(aCallback, aContext); in Open() 105 …CoapSecure::Connect(const Ip6::SockAddr &aSockAddr, ConnectEventCallback aCallback, void *aContext) in Connect() argument 107 mConnectEventCallback.Set(aCallback, aContext); in Connect() 124 void *aContext, in SendMessage() argument 132 …Base::SendMessage(aMessage, mDtls.GetMessageInfo(), TxParameters::GetDefault(), aHandler, aContext, in SendMessage() [all …]
|
D | coap_secure.hpp | 101 Error Start(uint16_t aPort, uint16_t aMaxAttempts, AutoStopCallback aCallback, void *aContext); 113 Error Start(MeshCoP::SecureTransport::TransportCallback aCallback, void *aContext); 122 void SetConnectEventCallback(ConnectEventCallback aCallback, void *aContext) in SetConnectEventCallback() argument 124 mConnectEventCallback.Set(aCallback, aContext); in SetConnectEventCallback() 143 Error Connect(const Ip6::SockAddr &aSockAddr, ConnectEventCallback aCallback, void *aContext); 321 void *aContext = nullptr, 347 void *aContext = nullptr, 367 …Error SendMessage(Message &aMessage, ResponseHandler aHandler = nullptr, void *aContext = nullptr); 389 void *aContext = nullptr); 413 Error Open(uint16_t aMaxAttempts, AutoStopCallback aCallback, void *aContext); [all …]
|
/openthread-latest/include/openthread/platform/ |
D | crypto.h | 325 otError otPlatCryptoHmacSha256Init(otCryptoContext *aContext); 337 otError otPlatCryptoHmacSha256Deinit(otCryptoContext *aContext); 350 otError otPlatCryptoHmacSha256Start(otCryptoContext *aContext, const otCryptoKey *aKey); 364 otError otPlatCryptoHmacSha256Update(otCryptoContext *aContext, const void *aBuf, uint16_t aBufLeng… 378 otError otPlatCryptoHmacSha256Finish(otCryptoContext *aContext, uint8_t *aBuf, size_t aBufLength); 394 otError otPlatCryptoAesInit(otCryptoContext *aContext); 407 otError otPlatCryptoAesSetKey(otCryptoContext *aContext, const otCryptoKey *aKey); 421 otError otPlatCryptoAesEncrypt(otCryptoContext *aContext, const uint8_t *aInput, uint8_t *aOutput); 433 otError otPlatCryptoAesFree(otCryptoContext *aContext); 448 otError otPlatCryptoHkdfInit(otCryptoContext *aContext); [all …]
|
/openthread-latest/src/cli/ |
D | cli.hpp | 136 explicit Interpreter(Instance *aInstance, otCliOutputCallback aCallback, void *aContext); 159 static void Initialize(otInstance *aInstance, otCliOutputCallback aCallback, void *aContext); 187 otError SetUserCommands(const otCliCommand *aCommands, uint8_t aLength, void *aContext); 234 static void HandleLocateResult(void *aContext, 241 …void HandleMeshDiagDiscoverDone(otError aError, otMeshDiagRouterInfo *aRouterInfo, void *aContext); 245 void *aContext); 250 void *aContext); 256 … void *aContext); 262 static void HandleMlrRegResult(void *aContext, 276 static void HandleActiveScanResult(otActiveScanResult *aResult, void *aContext); [all …]
|
D | cli_coap_secure.hpp | 108 … static void HandleRequest(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo); 111 …static void HandleResponse(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo,… 116 static otError BlockwiseReceiveHook(void *aContext, 127 static otError BlockwiseTransmitHook(void *aContext, 136 …static void DefaultHandler(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo); 140 static void HandleConnectEvent(otCoapSecureConnectEvent aEvent, void *aContext);
|
/openthread-latest/src/core/api/ |
D | coap_secure_api.cpp | 57 void *aContext) in otCoapSecureStartWithMaxConnAttempts() argument 59 …n AsCoreType(aInstance).GetApplicationCoapSecure().Start(aPort, aMaxAttempts, aCallback, aContext); in otCoapSecureStartWithMaxConnAttempts() 117 void *aContext) in otCoapSecureConnect() argument 119 …sCoreType(aInstance).GetApplicationCoapSecure().Connect(AsCoreType(aSockAddr), aHandler, aContext); in otCoapSecureConnect() 142 void *aContext, in otCoapSecureSendRequestBlockWise() argument 146 …Type(aInstance).GetApplicationCoapSecure().SendMessage(AsCoapMessage(aMessage), aHandler, aContext, in otCoapSecureSendRequestBlockWise() 154 void *aContext) in otCoapSecureSendRequest() argument 156 …ype(aInstance).GetApplicationCoapSecure().SendMessage(AsCoapMessage(aMessage), aHandler, aContext); in otCoapSecureSendRequest() 183 void *aContext) in otCoapSecureSetClientConnectEventCallback() argument 185 AsCoreType(aInstance).GetApplicationCoapSecure().SetConnectEventCallback(aHandler, aContext); in otCoapSecureSetClientConnectEventCallback() [all …]
|
D | mesh_diag_api.cpp | 49 void *aContext) in otMeshDiagDiscoverTopology() argument 52 …eturn AsCoreType(aInstance).Get<Utils::MeshDiag>().DiscoverTopology(*aConfig, aCallback, aContext); in otMeshDiagDiscoverTopology() 70 void *aContext) in otMeshDiagQueryChildTable() argument 72 … return AsCoreType(aInstance).Get<Utils::MeshDiag>().QueryChildTable(aRloc16, aCallback, aContext); in otMeshDiagQueryChildTable() 78 void *aContext) in otMeshDiagQueryChildrenIp6Addrs() argument 80 …n AsCoreType(aInstance).Get<Utils::MeshDiag>().QueryChildrenIp6Addrs(aRloc16, aCallback, aContext); in otMeshDiagQueryChildrenIp6Addrs() 86 void *aContext) in otMeshDiagQueryRouterNeighborTable() argument 88 …sCoreType(aInstance).Get<Utils::MeshDiag>().QueryRouterNeighborTable(aRloc16, aCallback, aContext); in otMeshDiagQueryRouterNeighborTable()
|
D | dns_api.cpp | 101 void *aContext, in otDnsClientResolveAddress() argument 106 return AsCoreType(aInstance).Get<Dns::Client>().ResolveAddress(aHostName, aCallback, aContext, in otDnsClientResolveAddress() 114 void *aContext, in otDnsClientResolveIp4Address() argument 119 … return AsCoreType(aInstance).Get<Dns::Client>().ResolveIp4Address(aHostName, aCallback, aContext, in otDnsClientResolveIp4Address() 148 void *aContext, in otDnsClientBrowse() argument 153 …return AsCoreType(aInstance).Get<Dns::Client>().Browse(aServiceName, aCallback, aContext, AsCoreTy… in otDnsClientBrowse() 201 void *aContext, in otDnsClientResolveService() argument 207 …ype(aInstance).Get<Dns::Client>().ResolveService(aInstanceLabel, aServiceName, aCallback, aContext, in otDnsClientResolveService() 215 void *aContext, in otDnsClientResolveServiceAndHostAddress() argument 222 aInstanceLabel, aServiceName, aCallback, aContext, AsCoreTypePtr(aConfig)); in otDnsClientResolveServiceAndHostAddress()
|
/openthread-latest/include/openthread/ |
D | coap_secure.h | 90 typedef void (*otHandleCoapSecureClientConnect)(otCoapSecureConnectEvent aEvent, void *aContext); 99 typedef void (*otCoapSecureAutoStopCallback)(void *aContext); 130 void *aContext); 243 void *aContext); 311 void *aContext, 335 void *aContext); 381 …tCoapSecureSetDefaultHandler(otInstance *aInstance, otCoapRequestHandler aHandler, void *aContext); 394 void *aContext); 415 void *aContext,
|
D | mesh_diag.h | 171 …d (*otMeshDiagDiscoverCallback)(otError aError, otMeshDiagRouterInfo *aRouterInfo, void *aContext); 190 void *aContext); 282 void *aContext); 302 void *aContext); 323 void *aContext); 343 void *aContext); 385 … void *aContext); 405 void *aContext);
|
D | dns_client.h | 217 …oid (*otDnsAddressCallback)(otError aError, const otDnsAddressResponse *aResponse, void *aContext); 241 void *aContext, 271 void *aContext, 341 … void (*otDnsBrowseCallback)(otError aError, const otDnsBrowseResponse *aResponse, void *aContext); 385 void *aContext, 515 …oid (*otDnsServiceCallback)(otError aError, const otDnsServiceResponse *aResponse, void *aContext); 554 void *aContext, 591 void *aContext,
|
D | coap.h | 344 typedef void (*otCoapResponseHandler)(void *aContext, 357 typedef void (*otCoapRequestHandler)(void *aContext, otMessage *aMessage, const otMessageInfo *aMes… 378 typedef otError (*otCoapBlockwiseReceiveHook)(void *aContext, 405 typedef otError (*otCoapBlockwiseTransmitHook)(void *aContext, 903 void *aContext, 934 void *aContext, 965 void *aContext, in otCoapSendRequestBlockWise() argument 970 …CoapSendRequestBlockWiseWithParameters(aInstance, aMessage, aMessageInfo, aHandler, aContext, NULL, in otCoapSendRequestBlockWise() 994 void *aContext) in otCoapSendRequest() argument 997 …return otCoapSendRequestWithParameters(aInstance, aMessage, aMessageInfo, aHandler, aContext, NULL… in otCoapSendRequest() [all …]
|
D | backbone_router_ftd.h | 245 … void (*otBackboneRouterMulticastListenerCallback)(void *aContext, 259 … void *aContext); 357 typedef void (*otBackboneRouterNdProxyCallback)(void *aContext, 371 void *aContext); 418 typedef void (*otBackboneRouterDomainPrefixCallback)(void *aContext, 431 void *aContext);
|
D | cli.h | 55 otError (*mCommand)(void *aContext, 80 typedef int (*otCliOutputCallback)(void *aContext, const char *aFormat, va_list aArguments); 90 void otCliInit(otInstance *aInstance, otCliOutputCallback aCallback, void *aContext); 110 otError otCliSetUserCommands(const otCliCommand *aUserCommands, uint8_t aLength, void *aContext);
|
/openthread-latest/src/ncp/ |
D | ncp_base.hpp | 313 static void HandleFrameRemovedFromNcpBuffer(void *aContext, 349 static void HandleStateChanged(otChangedFlags aFlags, void *aContext); 352 static void HandlePcapFrame(const otRadioFrame *aFrame, bool aIsTx, void *aContext); 355 static void HandleTimeSyncUpdate(void *aContext); 363 static void HandleParentResponseInfo(otThreadParentResponseInfo *aInfo, void *aContext); 368 static void HandleDatagramFromStack(otMessage *aMessage, void *aContext); 374 static void HandleActiveScanResult_Jump(otActiveScanResult *aResult, void *aContext); 377 static void HandleEnergyScanResult_Jump(otEnergyScanResult *aResult, void *aContext); 380 static void HandleJamStateChange_Jump(bool aJamState, void *aContext); 387 void *aContext); [all …]
|
/openthread-latest/src/core/meshcop/ |
D | secure_transport.hpp | 126 typedef void (*ReceiveHandler)(void *aContext, uint8_t *aBuf, uint16_t aLength); 136 …typedef Error (*TransportCallback)(void *aContext, ot::Message &aMessage, const Ip6::MessageInfo &… 145 typedef void (*AutoCloseCallback)(void *aContext); 158 Error Open(ReceiveHandler aReceiveHandler, ConnectedHandler aConnectedHandler, void *aContext); 176 …Error SetMaxConnectionAttempts(uint16_t aMaxAttempts, AutoCloseCallback aCallback, void *aContext); 209 Error Bind(TransportCallback aCallback, void *aContext); 541 …static void HandleMbedtlsDebug(void *aContext, int aLevel, const char *aFile, int aLine, const cha… 544 static int HandleMbedtlsGetTimer(void *aContext); 547 static void HandleMbedtlsSetTimer(void *aContext, uint32_t aIntermediate, uint32_t aFinish); 550 static int HandleMbedtlsReceive(void *aContext, unsigned char *aBuf, size_t aLength); [all …]
|
/openthread-latest/src/core/thread/ |
D | network_data_leader.cpp | 175 Error Leader::GetContext(const Ip6::Address &aAddress, Lowpan::Context &aContext) const in GetContext() 180 aContext.mPrefix.SetLength(0); in GetContext() 184 GetContextForMeshLocalPrefix(aContext); in GetContext() 196 if (prefixTlv->GetPrefixLength() > aContext.mPrefix.GetLength()) in GetContext() 198 prefixTlv->CopyPrefixTo(aContext.mPrefix); in GetContext() 199 aContext.mContextId = contextTlv->GetContextId(); in GetContext() 200 aContext.mCompressFlag = contextTlv->IsCompress(); in GetContext() 201 aContext.mIsValid = true; in GetContext() 205 return (aContext.mPrefix.GetLength() > 0) ? kErrorNone : kErrorNotFound; in GetContext() 227 Error Leader::GetContext(uint8_t aContextId, Lowpan::Context &aContext) const in GetContext() [all …]
|