Home
last modified time | relevance | path

Searched refs:Frame (Results 1 – 21 of 21) sorted by relevance

/openthread-3.4.0/examples/platforms/utils/
Dmac_frame.cpp41 const Mac::Frame &frame = *static_cast<const Mac::Frame *>(aFrame); in otMacFrameDoesAddrMatch()
71 return static_cast<const Mac::Frame *>(aFrame)->GetType() == Mac::Frame::kTypeAck; in otMacFrameIsAck()
76 return static_cast<const Mac::Frame *>(aFrame)->GetType() == Mac::Frame::kTypeData; in otMacFrameIsData()
81 return static_cast<const Mac::Frame *>(aFrame)->GetType() == Mac::Frame::kTypeMacCmd; in otMacFrameIsCommand()
86 return static_cast<const Mac::Frame *>(aFrame)->IsDataRequestCommand(); in otMacFrameIsDataRequest()
91 return static_cast<const Mac::Frame *>(aFrame)->GetAckRequest(); in otMacFrameIsAckRequested()
119 error = static_cast<const Mac::Frame *>(aFrame)->GetSrcAddr(address); in otMacFrameGetSrcAddr()
133 error = static_cast<const Mac::Frame *>(aFrame)->GetDstAddr(address); in otMacFrameGetDstAddr()
144 return static_cast<const Mac::Frame *>(aFrame)->GetSequence(); in otMacFrameGetSequence()
154 return static_cast<const Mac::Frame *>(aFrame)->IsVersion2015(); in otMacFrameIsVersion2015()
[all …]
/openthread-3.4.0/src/core/mac/
Dmac_frame.cpp62 void Frame::InitMacHeader(Type aType, in InitMacHeader()
169 uint16_t Frame::GetFrameControlField(void) const { return ReadUint16(mPsdu); } in GetFrameControlField()
171 Error Frame::ValidatePsdu(void) const in ValidatePsdu()
183 void Frame::SetAckRequest(bool aAckRequest) in SetAckRequest()
195 void Frame::SetFramePending(bool aFramePending) in SetFramePending()
207 uint8_t Frame::FindDstPanIdIndex(void) const in FindDstPanIdIndex()
219 bool Frame::IsDstPanIdPresent(uint16_t aFcf) in IsDstPanIdPresent()
249 Error Frame::GetDstPanId(PanId &aPanId) const in GetDstPanId()
261 void Frame::SetDstPanId(PanId aPanId) in SetDstPanId()
269 uint8_t Frame::FindDstAddrIndex(void) const { return kFcfSize + kDsnSize + (IsDstPanIdPresent() ? s… in FindDstAddrIndex()
[all …]
Dmac.cpp227 VerifyOrExit(aBeaconFrame->GetType() == Frame::kTypeBeacon, error = kErrorParse); in ConvertBeaconToActiveScanResult()
730 … frame.InitMacHeader(Frame::kTypeMacCmd, Frame::kVersion2003, addrs, panIds, Frame::kSecurityNone); in PrepareBeaconRequest()
732 IgnoreError(frame.SetCommandId(Frame::kMacCmdBeaconRequest)); in PrepareBeaconRequest()
762 …frame->InitMacHeader(Frame::kTypeBeacon, Frame::kVersion2003, addrs, panIds, Frame::kSecurityNone); in PrepareBeacon()
843 case Frame::kKeyIdMode0: in ProcessTransmitSecurity()
855 case Frame::kKeyIdMode1: in ProcessTransmitSecurity()
885 case Frame::kKeyIdMode2: in ProcessTransmitSecurity()
1209 if (aAckFrame->GetVersion() == Frame::kVersion2015) in RecordFrameTransmitStatus()
1511 VerifyOrExit(securityLevel == Frame::kSecurityEncMic32); in ProcessReceiveSecurity()
1520 case Frame::kKeyIdMode0: in ProcessReceiveSecurity()
[all …]
Ddata_poll_sender.cpp594 Get<MeshForwarder>().PrepareMacHeaders(*frame, Mac::Frame::kTypeMacCmd, addresses, panIds, in PrepareDataRequest()
595 … Mac::Frame::kSecurityEncMic32, Mac::Frame::kKeyIdMode1, nullptr); in PrepareDataRequest()
605 IgnoreError(frame->SetCommandId(Mac::Frame::kMacCmdDataRequest)); in PrepareDataRequest()
Dmac_links.cpp172 const KeyMaterial *Links::GetCurrentMacKey(const Frame &aFrame) const in GetCurrentMacKey()
205 const KeyMaterial *Links::GetTemporaryMacKey(const Frame &aFrame, uint32_t aKeySequence) const in GetTemporaryMacKey()
Dmac_links.hpp656 const KeyMaterial *GetCurrentMacKey(const Frame &aFrame) const;
668 const KeyMaterial *GetTemporaryMacKey(const Frame &aFrame, uint32_t aKeySequence) const;
Dsub_mac.cpp384 VerifyOrExit(keyIdMode == Frame::kKeyIdMode1); in ProcessTransmitSecurity()
667 VerifyOrExit(keyIdMode == Frame::kKeyIdMode1); in SignalFrameCounterUsedOnTxDone()
944 case Frame::kKeyIdMode0: in SetMacKey()
945 case Frame::kKeyIdMode2: in SetMacKey()
947 case Frame::kKeyIdMode1: in SetMacKey()
Dmac_frame.hpp275 class Frame : public otRadioFrame class
1161 class RxFrame : public Frame
1255 class TxFrame : public Frame
Dmac.hpp792 uint8_t GetTimeIeOffset(const Frame &aFrame);
/openthread-3.4.0/tests/unit/
Dtest_mac_frame.cpp198 Mac::Frame::Version mVersion; in TestMacHeader()
202 Mac::Frame::SecurityLevel mSecurity; in TestMacHeader()
203 Mac::Frame::KeyIdMode mKeyIdMode; in TestMacHeader()
208 static constexpr Mac::Frame::Version kVer2006 = Mac::Frame::kVersion2006; in TestMacHeader()
209 static constexpr Mac::Frame::Version kVer2015 = Mac::Frame::kVersion2015; in TestMacHeader()
211 static constexpr Mac::Frame::SecurityLevel kNoSec = Mac::Frame::kSecurityNone; in TestMacHeader()
212 static constexpr Mac::Frame::SecurityLevel kMic32 = Mac::Frame::kSecurityMic32; in TestMacHeader()
214 static constexpr Mac::Frame::KeyIdMode kModeId1 = Mac::Frame::kKeyIdMode1; in TestMacHeader()
215 static constexpr Mac::Frame::KeyIdMode kModeId2 = Mac::Frame::kKeyIdMode2; in TestMacHeader()
315 …frame.InitMacHeader(Mac::Frame::kTypeData, testCase.mVersion, addresses, panIds, testCase.mSecurit… in TestMacHeader()
[all …]
/openthread-3.4.0/src/core/thread/
Dlink_metrics_types.cpp140 case Mac::Frame::kTypeData: in IsFrameTypeMatch()
143 case Mac::Frame::kTypeMacCmd: in IsFrameTypeMatch()
146 case Mac::Frame::kTypeAck: in IsFrameTypeMatch()
Dmesh_forwarder.cpp181 … PrepareMacHeaders(aFrame, Mac::Frame::kTypeData, addresses, panIds, Mac::Frame::kSecurityEncMic32, in PrepareEmptyFrame()
182 Mac::Frame::kKeyIdMode1, nullptr); in PrepareEmptyFrame()
792 Mac::Frame::Type aFrameType, in PrepareMacHeaders()
795 Mac::Frame::SecurityLevel aSecurityLevel, in PrepareMacHeaders()
796 Mac::Frame::KeyIdMode aKeyIdMode, in PrepareMacHeaders()
800 Mac::Frame::Version version; in PrepareMacHeaders()
834 Mac::Frame::SecurityLevel securityLevel; in PrepareDataFrame()
835 Mac::Frame::KeyIdMode keyIdMode; in PrepareDataFrame()
844 securityLevel = Mac::Frame::kSecurityNone; in PrepareDataFrame()
845 keyIdMode = Mac::Frame::kKeyIdMode1; in PrepareDataFrame()
[all …]
Dmesh_forwarder.hpp450 Mac::Frame::Type aFrameType,
453 Mac::Frame::SecurityLevel aSecurityLevel,
454 Mac::Frame::KeyIdMode aKeyIdMode,
517 Mac::Frame::Version CalcFrameVersion(const Neighbor *aNeighbor, bool aIePresent) const;
533 void LogFrame(const char *aActionText, const Mac::Frame &aFrame, Error aError);
Dmesh_forwarder_ftd.cpp355 … PrepareMacHeaders(aFrame, Mac::Frame::kTypeData, mMacAddrs, panIds, Mac::Frame::kSecurityEncMic32, in SendMesh()
356 Mac::Frame::kKeyIdMode1, &aMessage); in SendMesh()
Dmle.hpp1885 …static_cast<uint8_t>(Mac::Frame::kKeyIdMode2) | static_cast<uint8_t>(Mac::Frame::kSecurityEncMic32…
Dkey_manager.cpp351 …Get<Mac::SubMac>().SetMacKey(Mac::Frame::kKeyIdMode1, (mKeySequence & 0x7f) + 1, prevKey, curKey, … in UpdateKeyMaterial()
Dmle.cpp2396 …Crypto::AesCcm::GenerateNonce(extAddress, aHeader.GetFrameCounter(), Mac::Frame::kSecurityEncMic32… in ProcessMessageSecurity()
/openthread-3.4.0/tests/fuzz/
Dfuzzer_platform.cpp74 return static_cast<const Mac::Frame *>(aFrame)->GetAckRequest(); in otMacFrameIsAckRequested()
79 return static_cast<const Mac::Frame *>(aFrame)->GetSequence(); in otMacFrameGetSequence()
/openthread-3.4.0/src/core/radio/
Dtrel_link.cpp180 isDiscovery = (keyIdMode == Mac::Frame::kKeyIdMode2); in BeginTransmit()
219 uint16_t fcf = Mac::Frame::kTypeAck; in BeginTransmit()
/openthread-3.4.0/src/ncp/
Dncp_base_radio.cpp493 VerifyOrExit(keyIdMode == Mac::Frame::kKeyIdMode1, error = OT_ERROR_INVALID_ARGS); in HandlePropertySet()
/openthread-3.4.0/src/cli/
DREADME.md2283 | RLOC16 | Extended MAC | Frame Error | Msg Error | Avg RSS | Last RSS | Age |