Lines Matching refs:aMessageInfo
76 …ror transmitPacket(int aFd, uint8_t *aPayload, uint16_t aLength, const otMessageInfo &aMessageInfo) in transmitPacket() argument
94 peerAddr.sin6_port = htons(aMessageInfo.mPeerPort); in transmitPacket()
96 memcpy(&peerAddr.sin6_addr, &aMessageInfo.mPeerAddr, sizeof(peerAddr.sin6_addr)); in transmitPacket()
98 if (IsLinkLocal(peerAddr.sin6_addr) && !aMessageInfo.mIsHostInterface) in transmitPacket()
118 …int hopLimit = (aMessageInfo.mHopLimit ? aMessageInfo.mHopLimit : OPENTHREAD_CONFIG_IP6_HOP_LIMIT_… in transmitPacket()
130 if (!IsMulticast(aMessageInfo.mSockAddr) && in transmitPacket()
131 memcmp(&aMessageInfo.mSockAddr, &in6addr_any, sizeof(aMessageInfo.mSockAddr))) in transmitPacket()
140 pktinfo.ipi6_ifindex = aMessageInfo.mIsHostInterface ? 0 : gNetifIndex; in transmitPacket()
142 memcpy(&pktinfo.ipi6_addr, &aMessageInfo.mSockAddr, sizeof(pktinfo.ipi6_addr)); in transmitPacket()
168 otError receivePacket(int aFd, uint8_t *aPayload, uint16_t &aLength, otMessageInfo &aMessageInfo) in receivePacket() argument
200 aMessageInfo.mHopLimit = static_cast<uint8_t>(hoplimit); in receivePacket()
208 aMessageInfo.mIsHostInterface = (pktinfo.ipi6_ifindex != gNetifIndex); in receivePacket()
209 memcpy(&aMessageInfo.mSockAddr, &pktinfo.ipi6_addr, sizeof(aMessageInfo.mSockAddr)); in receivePacket()
214 aMessageInfo.mPeerPort = ntohs(peerAddr.sin6_port); in receivePacket()
215 memcpy(&aMessageInfo.mPeerAddr, &peerAddr.sin6_addr, sizeof(aMessageInfo.mPeerAddr)); in receivePacket()
416 …rror otPlatUdpSend(otUdpSocket *aUdpSocket, otMessage *aMessage, const otMessageInfo *aMessageInfo) in otPlatUdpSend() argument
429 if (aMessageInfo->mMulticastLoop) in otPlatUdpSend()
436 error = transmitPacket(fd, payload, len, *aMessageInfo); in otPlatUdpSend()
438 if (aMessageInfo->mMulticastLoop) in otPlatUdpSend()