/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 | 168 void platformRadioUpdateFdSet(otSysMainloopContext *aContext); 175 void platformRadioProcess(otInstance *aInstance, const otSysMainloopContext *aContext); 194 void platformUartUpdateFdSet(otSysMainloopContext *aContext); 201 void platformUartProcess(const otSysMainloopContext *aContext); 240 void platformNetifUpdateFdSet(otSysMainloopContext *aContext); 247 void platformNetifProcess(const otSysMainloopContext *aContext); 274 void virtualTimeProcess(otInstance *aInstance, const otSysMainloopContext *aContext); 282 void virtualTimeUpdateFdSet(otSysMainloopContext *aContext); 345 void platformTrelUpdateFdSet(otSysMainloopContext *aContext); 352 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 | 69 static void processStateChange(otChangedFlags aFlags, void *aContext) in processStateChange() argument 71 otInstance *instance = static_cast<otInstance *>(aContext); in processStateChange() 377 static int trySelect(otSysMainloopContext &aContext) in trySelect() argument 380 fd_set originReadFdSet = aContext.mReadFdSet; in trySelect() 381 fd_set originWriteFdSet = aContext.mWriteFdSet; in trySelect() 382 fd_set originErrorFdSet = aContext.mErrorFdSet; in trySelect() 385 …rval = select(aContext.mMaxFd + 1, &aContext.mReadFdSet, &aContext.mWriteFdSet, &aContext.mErrorFd… in trySelect() 389 aContext.mReadFdSet = originReadFdSet; in trySelect() 390 aContext.mWriteFdSet = originWriteFdSet; in trySelect() 391 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() 340 void platformResolverProcess(const otSysMainloopContext *aContext) { gResolver.Process(*aContext); } in platformResolverProcess() argument 342 void platformResolverUpdateFdSet(otSysMainloopContext *aContext) { gResolver.UpdateFdSet(*aContext)… in platformResolverUpdateFdSet() argument
|
D | mainloop.hpp | 56 virtual void Update(otSysMainloopContext &aContext) = 0; 63 virtual void Process(const otSysMainloopContext &aContext) = 0; 85 void Update(otSysMainloopContext &aContext); 92 void Process(const otSysMainloopContext &aContext);
|
D | trel.cpp | 486 OT_TOOL_WEAK void trelDnssdUpdateFdSet(otSysMainloopContext *aContext) in trelDnssdUpdateFdSet() argument 491 OT_UNUSED_VARIABLE(aContext); in trelDnssdUpdateFdSet() 494 OT_TOOL_WEAK void trelDnssdProcess(otInstance *aInstance, const otSysMainloopContext *aContext) in trelDnssdProcess() argument 499 OT_UNUSED_VARIABLE(aContext); in trelDnssdProcess() 663 void platformTrelUpdateFdSet(otSysMainloopContext *aContext) in platformTrelUpdateFdSet() argument 665 assert(aContext != nullptr); in platformTrelUpdateFdSet() 669 FD_SET(sSocket, &aContext->mReadFdSet); in platformTrelUpdateFdSet() 673 FD_SET(sSocket, &aContext->mWriteFdSet); in platformTrelUpdateFdSet() 676 if (aContext->mMaxFd < sSocket) in platformTrelUpdateFdSet() 678 aContext->mMaxFd = sSocket; in platformTrelUpdateFdSet() [all …]
|
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/include/openthread/platform/ |
D | crypto.h | 301 otError otPlatCryptoHmacSha256Init(otCryptoContext *aContext); 312 otError otPlatCryptoHmacSha256Deinit(otCryptoContext *aContext); 324 otError otPlatCryptoHmacSha256Start(otCryptoContext *aContext, const otCryptoKey *aKey); 337 otError otPlatCryptoHmacSha256Update(otCryptoContext *aContext, const void *aBuf, uint16_t aBufLeng… 350 otError otPlatCryptoHmacSha256Finish(otCryptoContext *aContext, uint8_t *aBuf, size_t aBufLength); 365 otError otPlatCryptoAesInit(otCryptoContext *aContext); 377 otError otPlatCryptoAesSetKey(otCryptoContext *aContext, const otCryptoKey *aKey); 390 otError otPlatCryptoAesEncrypt(otCryptoContext *aContext, const uint8_t *aInput, uint8_t *aOutput); 401 otError otPlatCryptoAesFree(otCryptoContext *aContext); 415 otError otPlatCryptoHkdfInit(otCryptoContext *aContext); [all …]
|
/openthread-latest/src/core/api/ |
D | coap_secure_api.cpp | 57 void *aContext) in otCoapSecureStartWithMaxConnAttempts() argument 62 …aInstance).GetApplicationCoapSecure().SetMaxConnectionAttempts(aMaxAttempts, aCallback, aContext)); in otCoapSecureStartWithMaxConnAttempts() 124 void *aContext) in otCoapSecureConnect() argument 126 AsCoreType(aInstance).GetApplicationCoapSecure().SetConnectCallback(aHandler, aContext); in otCoapSecureConnect() 151 void *aContext, in otCoapSecureSendRequestBlockWise() argument 155 …Type(aInstance).GetApplicationCoapSecure().SendMessage(AsCoapMessage(aMessage), aHandler, aContext, in otCoapSecureSendRequestBlockWise() 163 void *aContext) in otCoapSecureSendRequest() argument 165 …ype(aInstance).GetApplicationCoapSecure().SendMessage(AsCoapMessage(aMessage), aHandler, aContext); in otCoapSecureSendRequest() 192 void *aContext) in otCoapSecureSetClientConnectEventCallback() argument 194 AsCoreType(aInstance).GetApplicationCoapSecure().SetConnectCallback(aHandler, aContext); in otCoapSecureSetClientConnectEventCallback() [all …]
|
D | mesh_diag_api.cpp | 45 void *aContext) in otMeshDiagDiscoverTopology() argument 48 …eturn AsCoreType(aInstance).Get<Utils::MeshDiag>().DiscoverTopology(*aConfig, aCallback, aContext); in otMeshDiagDiscoverTopology() 66 void *aContext) in otMeshDiagQueryChildTable() argument 68 … return AsCoreType(aInstance).Get<Utils::MeshDiag>().QueryChildTable(aRloc16, aCallback, aContext); in otMeshDiagQueryChildTable() 74 void *aContext) in otMeshDiagQueryChildrenIp6Addrs() argument 76 …n AsCoreType(aInstance).Get<Utils::MeshDiag>().QueryChildrenIp6Addrs(aRloc16, aCallback, aContext); in otMeshDiagQueryChildrenIp6Addrs() 82 void *aContext) in otMeshDiagQueryRouterNeighborTable() argument 84 …sCoreType(aInstance).Get<Utils::MeshDiag>().QueryRouterNeighborTable(aRloc16, aCallback, aContext); in otMeshDiagQueryRouterNeighborTable()
|
D | dns_api.cpp | 99 void *aContext, in otDnsClientResolveAddress() argument 104 return AsCoreType(aInstance).Get<Dns::Client>().ResolveAddress(aHostName, aCallback, aContext, in otDnsClientResolveAddress() 112 void *aContext, in otDnsClientResolveIp4Address() argument 117 … return AsCoreType(aInstance).Get<Dns::Client>().ResolveIp4Address(aHostName, aCallback, aContext, in otDnsClientResolveIp4Address() 146 void *aContext, in otDnsClientBrowse() argument 151 …return AsCoreType(aInstance).Get<Dns::Client>().Browse(aServiceName, aCallback, aContext, AsCoreTy… in otDnsClientBrowse() 199 void *aContext, in otDnsClientResolveService() argument 205 …ype(aInstance).Get<Dns::Client>().ResolveService(aInstanceLabel, aServiceName, aCallback, aContext, in otDnsClientResolveService() 213 void *aContext, in otDnsClientResolveServiceAndHostAddress() argument 220 aInstanceLabel, aServiceName, aCallback, aContext, AsCoreTypePtr(aConfig)); in otDnsClientResolveServiceAndHostAddress()
|
/openthread-latest/src/core/meshcop/ |
D | secure_transport.hpp | 134 typedef void (*ReceiveHandler)(void *aContext, uint8_t *aBuf, uint16_t aLength); 142 void SetConnectCallback(ConnectHandler aConnectHandler, void *aContext) in SetConnectCallback() argument 144 mConnectedCallback.Set(aConnectHandler, aContext); in SetConnectCallback() 153 void SetReceiveCallback(ReceiveHandler aReceiveHandler, void *aContext) in SetReceiveCallback() argument 155 mReceiveCallback.Set(aReceiveHandler, aContext); in SetReceiveCallback() 264 static int HandleMbedtlsGetTimer(void *aContext); 266 static void HandleMbedtlsSetTimer(void *aContext, uint32_t aIntermediate, uint32_t aFinish); 268 static int HandleMbedtlsReceive(void *aContext, unsigned char *aBuf, size_t aLength); 270 static int HandleMbedtlsTransmit(void *aContext, const unsigned char *aBuf, size_t aLength); 316 …typedef Error (*TransportCallback)(void *aContext, ot::Message &aMessage, const Ip6::MessageInfo &… [all …]
|
/openthread-latest/src/cli/ |
D | cli.hpp | 135 explicit Interpreter(Instance *aInstance, otCliOutputCallback aCallback, void *aContext); 156 static void Initialize(otInstance *aInstance, otCliOutputCallback aCallback, void *aContext); 182 otError SetUserCommands(const otCliCommand *aCommands, uint8_t aLength, void *aContext); 229 static void HandleLocateResult(void *aContext, 236 static void HandleMlrRegResult(void *aContext, 250 static void HandleActiveScanResult(otActiveScanResult *aResult, void *aContext); 251 static void HandleEnergyScanResult(otEnergyScanResult *aResult, void *aContext); 252 static void HandleLinkPcapReceive(const otRadioFrame *aFrame, bool aIsTx, void *aContext); 259 void *aContext); 282 static void HandleSntpResponse(void *aContext, uint64_t aTime, otError aResult); [all …]
|
D | cli_coap_secure.hpp | 105 … static void HandleRequest(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo); 108 …static void HandleResponse(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo,… 113 static otError BlockwiseReceiveHook(void *aContext, 124 static otError BlockwiseTransmitHook(void *aContext, 133 …static void DefaultHandler(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo); 137 static void HandleConnectEvent(otCoapSecureConnectEvent aEvent, void *aContext);
|
/openthread-latest/include/openthread/ |
D | coap_secure.h | 87 typedef void (*otHandleCoapSecureClientConnect)(otCoapSecureConnectEvent aEvent, void *aContext); 95 typedef void (*otCoapSecureAutoStopCallback)(void *aContext); 124 void *aContext); 230 void *aContext); 293 void *aContext, 316 void *aContext); 357 …tCoapSecureSetDefaultHandler(otInstance *aInstance, otCoapRequestHandler aHandler, void *aContext); 369 void *aContext); 389 void *aContext,
|
D | mesh_diag.h | 160 …d (*otMeshDiagDiscoverCallback)(otError aError, otMeshDiagRouterInfo *aRouterInfo, void *aContext); 178 void *aContext); 265 void *aContext); 284 void *aContext); 304 void *aContext); 323 void *aContext); 363 … void *aContext); 382 void *aContext);
|
D | dns_client.h | 207 …oid (*otDnsAddressCallback)(otError aError, const otDnsAddressResponse *aResponse, void *aContext); 230 void *aContext, 259 void *aContext, 325 … void (*otDnsBrowseCallback)(otError aError, const otDnsBrowseResponse *aResponse, void *aContext); 367 void *aContext, 491 …oid (*otDnsServiceCallback)(otError aError, const otDnsServiceResponse *aResponse, void *aContext); 529 void *aContext, 565 void *aContext,
|
D | coap.h | 337 typedef void (*otCoapResponseHandler)(void *aContext, 349 typedef void (*otCoapRequestHandler)(void *aContext, otMessage *aMessage, const otMessageInfo *aMes… 369 typedef otError (*otCoapBlockwiseReceiveHook)(void *aContext, 395 typedef otError (*otCoapBlockwiseTransmitHook)(void *aContext, 856 void *aContext, 886 void *aContext, 916 void *aContext, in otCoapSendRequestBlockWise() argument 921 …CoapSendRequestBlockWiseWithParameters(aInstance, aMessage, aMessageInfo, aHandler, aContext, NULL, in otCoapSendRequestBlockWise() 944 void *aContext) in otCoapSendRequest() argument 947 …return otCoapSendRequestWithParameters(aInstance, aMessage, aMessageInfo, aHandler, aContext, NULL… in otCoapSendRequest() [all …]
|
D | backbone_router_ftd.h | 229 … void (*otBackboneRouterMulticastListenerCallback)(void *aContext, 242 … void *aContext); 334 typedef void (*otBackboneRouterNdProxyCallback)(void *aContext, 347 void *aContext); 390 typedef void (*otBackboneRouterDomainPrefixCallback)(void *aContext, 402 void *aContext);
|
D | cli.h | 54 otError (*mCommand)(void *aContext, 77 typedef int (*otCliOutputCallback)(void *aContext, const char *aFormat, va_list aArguments); 86 void otCliInit(otInstance *aInstance, otCliOutputCallback aCallback, void *aContext); 105 otError otCliSetUserCommands(const otCliCommand *aUserCommands, uint8_t aLength, void *aContext);
|
/openthread-latest/src/core/coap/ |
D | coap_secure.cpp | 65 void *aContext, in SendMessage() argument 70 aContext, aTransmitHook, aReceiveHook) in SendMessage() 76 Error SecureSession::SendMessage(Message &aMessage, ResponseHandler aHandler, void *aContext) in SendMessage() argument 78 …return IsConnected() ? CoapBase::SendMessage(aMessage, GetMessageInfo(), aHandler, aContext) : kEr… in SendMessage() 103 void SecureSession::HandleDtlsConnectEvent(ConnectEvent aEvent, void *aContext) in HandleDtlsConnectEvent() argument 105 static_cast<SecureSession *>(aContext)->HandleDtlsConnectEvent(aEvent); in HandleDtlsConnectEvent() 119 void SecureSession::HandleDtlsReceive(void *aContext, uint8_t *aBuf, uint16_t aLength) in HandleDtlsReceive() argument 121 static_cast<SecureSession *>(aContext)->HandleDtlsReceive(aBuf, aLength); in HandleDtlsReceive() 163 MeshCoP::SecureSession *ApplicationCoapSecure::HandleDtlsAccept(void *aContext, const Ip6::MessageI… in HandleDtlsAccept() argument 167 return static_cast<ApplicationCoapSecure *>(aContext)->HandleDtlsAccept(); in HandleDtlsAccept()
|
D | coap_secure.hpp | 74 … SetConnectCallback(ConnectHandler aHandler, void *aContext) { mConnectCallback.Set(aHandler, aCon… in SetConnectCallback() argument 96 void *aContext = nullptr, 116 …Error SendMessage(Message &aMessage, ResponseHandler aHandler = nullptr, void *aContext = nullptr); 127 static void HandleDtlsConnectEvent(ConnectEvent aEvent, void *aContext); 129 static void HandleDtlsReceive(void *aContext, uint8_t *aBuf, uint16_t aLength); 161 …static MeshCoP::SecureSession *HandleDtlsAccept(void *aContext, const Ip6::MessageInfo &aMessageIn…
|
/openthread-latest/src/ncp/ |
D | ncp_base.hpp | 407 static void HandleFrameRemovedFromNcpBuffer(void *aContext, 443 static void HandleStateChanged(otChangedFlags aFlags, void *aContext); 446 static void HandlePcapFrame(const otRadioFrame *aFrame, bool aIsTx, void *aContext); 449 static void HandleTimeSyncUpdate(void *aContext); 457 static void HandleParentResponseInfo(otThreadParentResponseInfo *aInfo, void *aContext); 462 static void HandleDatagramFromStack(otMessage *aMessage, void *aContext); 468 static void HandleActiveScanResult_Jump(otActiveScanResult *aResult, void *aContext); 471 static void HandleEnergyScanResult_Jump(otEnergyScanResult *aResult, void *aContext); 474 static void HandleJamStateChange_Jump(bool aJamState, void *aContext); 481 void *aContext); [all …]
|
/openthread-latest/src/core/thread/ |
D | network_data_leader.cpp | 160 Error Leader::GetContext(const Ip6::Address &aAddress, Lowpan::Context &aContext) const in GetContext() 165 aContext.mPrefix.SetLength(0); in GetContext() 169 GetContextForMeshLocalPrefix(aContext); in GetContext() 181 if (prefixTlv->GetPrefixLength() > aContext.mPrefix.GetLength()) in GetContext() 183 prefixTlv->CopyPrefixTo(aContext.mPrefix); in GetContext() 184 aContext.mContextId = contextTlv->GetContextId(); in GetContext() 185 aContext.mCompressFlag = contextTlv->IsCompress(); in GetContext() 186 aContext.mIsValid = true; in GetContext() 190 return (aContext.mPrefix.GetLength() > 0) ? kErrorNone : kErrorNotFound; in GetContext() 212 Error Leader::GetContext(uint8_t aContextId, Lowpan::Context &aContext) const in GetContext() [all …]
|