/openthread-3.4.0/examples/platforms/utils/ |
D | mac_frame.cpp | 41 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/ |
D | mac_frame.cpp | 62 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 …]
|
D | mac.cpp | 227 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 …]
|
D | data_poll_sender.cpp | 594 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()
|
D | mac_links.cpp | 172 const KeyMaterial *Links::GetCurrentMacKey(const Frame &aFrame) const in GetCurrentMacKey() 205 const KeyMaterial *Links::GetTemporaryMacKey(const Frame &aFrame, uint32_t aKeySequence) const in GetTemporaryMacKey()
|
D | mac_links.hpp | 656 const KeyMaterial *GetCurrentMacKey(const Frame &aFrame) const; 668 const KeyMaterial *GetTemporaryMacKey(const Frame &aFrame, uint32_t aKeySequence) const;
|
D | sub_mac.cpp | 384 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()
|
D | mac_frame.hpp | 275 class Frame : public otRadioFrame class 1161 class RxFrame : public Frame 1255 class TxFrame : public Frame
|
D | mac.hpp | 792 uint8_t GetTimeIeOffset(const Frame &aFrame);
|
/openthread-3.4.0/tests/unit/ |
D | test_mac_frame.cpp | 198 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/ |
D | link_metrics_types.cpp | 140 case Mac::Frame::kTypeData: in IsFrameTypeMatch() 143 case Mac::Frame::kTypeMacCmd: in IsFrameTypeMatch() 146 case Mac::Frame::kTypeAck: in IsFrameTypeMatch()
|
D | mesh_forwarder.cpp | 181 … 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 …]
|
D | mesh_forwarder.hpp | 450 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);
|
D | mesh_forwarder_ftd.cpp | 355 … PrepareMacHeaders(aFrame, Mac::Frame::kTypeData, mMacAddrs, panIds, Mac::Frame::kSecurityEncMic32, in SendMesh() 356 Mac::Frame::kKeyIdMode1, &aMessage); in SendMesh()
|
D | mle.hpp | 1885 …static_cast<uint8_t>(Mac::Frame::kKeyIdMode2) | static_cast<uint8_t>(Mac::Frame::kSecurityEncMic32…
|
D | key_manager.cpp | 351 …Get<Mac::SubMac>().SetMacKey(Mac::Frame::kKeyIdMode1, (mKeySequence & 0x7f) + 1, prevKey, curKey, … in UpdateKeyMaterial()
|
D | mle.cpp | 2396 …Crypto::AesCcm::GenerateNonce(extAddress, aHeader.GetFrameCounter(), Mac::Frame::kSecurityEncMic32… in ProcessMessageSecurity()
|
/openthread-3.4.0/tests/fuzz/ |
D | fuzzer_platform.cpp | 74 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/ |
D | trel_link.cpp | 180 isDiscovery = (keyIdMode == Mac::Frame::kKeyIdMode2); in BeginTransmit() 219 uint16_t fcf = Mac::Frame::kTypeAck; in BeginTransmit()
|
/openthread-3.4.0/src/ncp/ |
D | ncp_base_radio.cpp | 493 VerifyOrExit(keyIdMode == Mac::Frame::kKeyIdMode1, error = OT_ERROR_INVALID_ARGS); in HandlePropertySet()
|
/openthread-3.4.0/src/cli/ |
D | README.md | 2283 | RLOC16 | Extended MAC | Frame Error | Msg Error | Avg RSS | Last RSS | Age |
|