Home
last modified time | relevance | path

Searched refs:frameInfo (Results 1 – 7 of 7) sorted by relevance

/openthread-latest/tests/gtest/
Dradio_spinel_rcp_test.cpp69 Mac::TxFrame::Info frameInfo; in TEST() local
71 frameInfo.mType = Mac::Frame::kTypeData; in TEST()
72 frameInfo.mVersion = Mac::Frame::kVersion2006; in TEST()
73 frameInfo.mAddrs.mSource.SetShort(kSrcAddr); in TEST()
74 frameInfo.mAddrs.mDestination.SetExtended(kDstAddr); in TEST()
75 frameInfo.mPanIds.SetSource(kSrcPanId); in TEST()
76 frameInfo.mPanIds.SetDestination(kDstPanId); in TEST()
77 frameInfo.mSecurityLevel = Mac::Frame::kSecurityEncMic32; in TEST()
79 frameInfo.PrepareHeadersIn(txFrame); in TEST()
113 Mac::TxFrame::Info frameInfo; in TEST() local
[all …]
/openthread-latest/src/core/mac/
Ddata_poll_sender.cpp546 Mac::TxFrame::Info frameInfo; in PrepareDataRequest() local
551 SuccessOrExit(GetPollDestinationAddress(frameInfo.mAddrs.mDestination, radio)); in PrepareDataRequest()
554 SuccessOrExit(GetPollDestinationAddress(frameInfo.mAddrs.mDestination)); in PrepareDataRequest()
558 if (frameInfo.mAddrs.mDestination.IsExtended()) in PrepareDataRequest()
560 frameInfo.mAddrs.mSource.SetExtended(Get<Mac::Mac>().GetExtAddress()); in PrepareDataRequest()
564 frameInfo.mAddrs.mSource.SetShort(Get<Mac::Mac>().GetShortAddress()); in PrepareDataRequest()
567 frameInfo.mPanIds.SetBothSourceDestination(Get<Mac::Mac>().GetPanId()); in PrepareDataRequest()
569 frameInfo.mType = Mac::Frame::kTypeMacCmd; in PrepareDataRequest()
570 frameInfo.mCommandId = Mac::Frame::kMacCmdDataRequest; in PrepareDataRequest()
571 frameInfo.mSecurityLevel = Mac::Frame::kSecurityEncMic32; in PrepareDataRequest()
[all …]
Dmac.cpp760 TxFrame::Info frameInfo; in PrepareBeaconRequest() local
762 frameInfo.mAddrs.mSource.SetNone(); in PrepareBeaconRequest()
763 frameInfo.mAddrs.mDestination.SetShort(kShortAddrBroadcast); in PrepareBeaconRequest()
764 frameInfo.mPanIds.SetDestination(kShortAddrBroadcast); in PrepareBeaconRequest()
766 frameInfo.mType = Frame::kTypeMacCmd; in PrepareBeaconRequest()
767 frameInfo.mCommandId = Frame::kMacCmdBeaconRequest; in PrepareBeaconRequest()
768 frameInfo.mVersion = Frame::kVersion2003; in PrepareBeaconRequest()
770 frameInfo.PrepareHeadersIn(frame); in PrepareBeaconRequest()
780 TxFrame::Info frameInfo; in PrepareBeacon() local
795 frameInfo.mAddrs.mSource.SetExtended(GetExtAddress()); in PrepareBeacon()
[all …]
Dmac_frame.cpp1392 Info frameInfo; in GenerateEnhAck() local
1413 SuccessOrExit(error = aRxFrame.GetSrcAddr(frameInfo.mAddrs.mDestination)); in GenerateEnhAck()
1414 VerifyOrExit(!frameInfo.mAddrs.mDestination.IsNone(), error = kErrorParse); in GenerateEnhAck()
1427 frameInfo.mPanIds.SetDestination(panId); in GenerateEnhAck()
1432 frameInfo.mPanIds.SetDestination(panId); in GenerateEnhAck()
1440 frameInfo.mType = kTypeAck; in GenerateEnhAck()
1441 frameInfo.mVersion = kVersion2015; in GenerateEnhAck()
1442 frameInfo.mSecurityLevel = static_cast<SecurityLevel>(securityLevel); in GenerateEnhAck()
1443 frameInfo.mKeyIdMode = static_cast<KeyIdMode>(keyIdMode); in GenerateEnhAck()
1445 frameInfo.PrepareHeadersIn(*this); in GenerateEnhAck()
/openthread-latest/tests/unit/
Dtest_mac_frame.cpp294 Mac::TxFrame::Info frameInfo; in TestMacHeader() local
302 VerifyOrQuit(frameInfo.mAddrs.mSource.IsNone()); in TestMacHeader()
303 VerifyOrQuit(frameInfo.mAddrs.mDestination.IsNone()); in TestMacHeader()
304 VerifyOrQuit(!frameInfo.mPanIds.IsSourcePresent()); in TestMacHeader()
305 VerifyOrQuit(!frameInfo.mPanIds.IsDestinationPresent()); in TestMacHeader()
310 frameInfo.mAddrs.mSource.SetNone(); in TestMacHeader()
313 frameInfo.mAddrs.mSource.SetShort(kShortAddr1); in TestMacHeader()
316 frameInfo.mAddrs.mSource.SetExtended(extAddr1); in TestMacHeader()
323 frameInfo.mAddrs.mDestination.SetNone(); in TestMacHeader()
326 frameInfo.mAddrs.mDestination.SetShort(kShortAddr2); in TestMacHeader()
[all …]
/openthread-latest/src/core/thread/
Dmesh_forwarder.cpp166 Mac::TxFrame::Info frameInfo; in PrepareEmptyFrame() local
168 frameInfo.mAddrs.mSource.SetShort(Get<Mac::Mac>().GetShortAddress()); in PrepareEmptyFrame()
170 if (frameInfo.mAddrs.mSource.IsShortAddrInvalid() || aMacDest.IsExtended()) in PrepareEmptyFrame()
172 frameInfo.mAddrs.mSource.SetExtended(Get<Mac::Mac>().GetExtAddress()); in PrepareEmptyFrame()
175 frameInfo.mAddrs.mDestination = aMacDest; in PrepareEmptyFrame()
176 frameInfo.mPanIds.SetBothSourceDestination(Get<Mac::Mac>().GetPanId()); in PrepareEmptyFrame()
178 frameInfo.mType = Mac::Frame::kTypeData; in PrepareEmptyFrame()
179 frameInfo.mSecurityLevel = Mac::Frame::kSecurityEncMic32; in PrepareEmptyFrame()
180 frameInfo.mKeyIdMode = Mac::Frame::kKeyIdMode1; in PrepareEmptyFrame()
182 PrepareMacHeaders(aFrame, frameInfo, nullptr); in PrepareEmptyFrame()
[all …]
Dmesh_forwarder_ftd.cpp329 Mac::TxFrame::Info frameInfo; in SendMesh() local
331 frameInfo.mType = Mac::Frame::kTypeData; in SendMesh()
332 frameInfo.mAddrs = mMacAddrs; in SendMesh()
333 frameInfo.mSecurityLevel = Mac::Frame::kSecurityEncMic32; in SendMesh()
334 frameInfo.mKeyIdMode = Mac::Frame::kKeyIdMode1; in SendMesh()
335 frameInfo.mPanIds.SetBothSourceDestination(Get<Mac::Mac>().GetPanId()); in SendMesh()
337 PrepareMacHeaders(aFrame, frameInfo, &aMessage); in SendMesh()