Home
last modified time | relevance | path

Searched refs:sourceAddress (Results 1 – 3 of 3) sorted by relevance

/openthread-3.4.0/tests/unit/
Dtest_checksum.cpp315 Ip4::Address sourceAddress; in TestTcp4MessageChecksum() local
322 SuccessOrQuit(sourceAddress.FromString(kSourceAddress)); in TestTcp4MessageChecksum()
350 Checksum::UpdateMessageChecksum(*message, sourceAddress, destAddress, Ip4::kProtoTcp); in TestTcp4MessageChecksum()
357 … VerifyOrQuit(CalculateChecksum(sourceAddress, destAddress, Ip4::kProtoTcp, *message) == 0xffff); in TestTcp4MessageChecksum()
370 Ip4::Address sourceAddress; in TestUdp4MessageChecksum() local
375 SuccessOrQuit(sourceAddress.FromString(kSourceAddress)); in TestUdp4MessageChecksum()
406 Checksum::UpdateMessageChecksum(*message, sourceAddress, destAddress, Ip4::kProtoUdp); in TestUdp4MessageChecksum()
413 … VerifyOrQuit(CalculateChecksum(sourceAddress, destAddress, Ip4::kProtoUdp, *message) == 0xffff); in TestUdp4MessageChecksum()
/openthread-3.4.0/src/core/thread/
Dmle.cpp2767 uint16_t sourceAddress; in HandleAdvertisement() local
2773 SuccessOrExit(error = Tlv::Find<SourceAddressTlv>(aRxInfo.mMessage, sourceAddress)); in HandleAdvertisement()
2775 Log(kMessageReceive, kTypeAdvertisement, aRxInfo.mMessageInfo.GetPeerAddr(), sourceAddress); in HandleAdvertisement()
2782 … SuccessOrExit(error = Get<MleRouter>().HandleAdvertisement(aRxInfo, sourceAddress, leaderData)); in HandleAdvertisement()
2790 if (mParent.GetRloc16() != sourceAddress) in HandleAdvertisement()
3117 uint16_t sourceAddress; in HandleParentResponse() local
3132 SuccessOrExit(error = Tlv::Find<SourceAddressTlv>(aRxInfo.mMessage, sourceAddress)); in HandleParentResponse()
3134 Log(kMessageReceive, kTypeParentResponse, aRxInfo.mMessageInfo.GetPeerAddr(), sourceAddress); in HandleParentResponse()
3192 parentinfo.mRloc16 = sourceAddress; in HandleParentResponse()
3263 …VerifyOrExit(IsBetterParent(sourceAddress, linkQuality, linkMargin, connectivityTlv, version, cslA… in HandleParentResponse()
[all …]
Dmle_router.cpp608 uint16_t sourceAddress; in HandleLinkRequest() local
637 switch (Tlv::Find<SourceAddressTlv>(aRxInfo.mMessage, sourceAddress)) in HandleLinkRequest()
640 if (IsActiveRouter(sourceAddress)) in HandleLinkRequest()
642 neighbor = mRouterTable.FindRouterByRloc16(sourceAddress); in HandleLinkRequest()
816 uint16_t sourceAddress; in HandleLinkAccept() local
826 SuccessOrExit(error = Tlv::Find<SourceAddressTlv>(aRxInfo.mMessage, sourceAddress)); in HandleLinkAccept()
829 sourceAddress); in HandleLinkAccept()
831 VerifyOrExit(IsActiveRouter(sourceAddress), error = kErrorParse); in HandleLinkAccept()
833 routerId = RouterIdFromRloc16(sourceAddress); in HandleLinkAccept()
861 if (aRxInfo.mNeighbor && aRxInfo.mNeighbor->GetRloc16() != sourceAddress) in HandleLinkAccept()
[all …]