mirror of
https://github.com/espressif/openthread.git
synced 2026-08-07 19:27:46 +00:00
[topology] reorder member variables in Neighbor class (#2512)
This commit makes removes the unused `mChannelLength` and moves the `mRloc16` outside of `mValidPending` union.
This commit is contained in:
committed by
Jonathan Hui
parent
98491461e3
commit
20fd57f6a4
@@ -252,7 +252,7 @@ public:
|
||||
* @returns The RLOC16 value.
|
||||
*
|
||||
*/
|
||||
uint16_t GetRloc16(void) const { return mValidPending.mValid.mRloc16; }
|
||||
uint16_t GetRloc16(void) const { return mRloc16; }
|
||||
|
||||
/**
|
||||
* This method sets the RLOC16 value.
|
||||
@@ -260,7 +260,7 @@ public:
|
||||
* @param[in] aRloc16 The RLOC16 value.
|
||||
*
|
||||
*/
|
||||
void SetRloc16(uint16_t aRloc16) { mValidPending.mValid.mRloc16 = aRloc16; }
|
||||
void SetRloc16(uint16_t aRloc16) { mRloc16 = aRloc16; }
|
||||
|
||||
/**
|
||||
* This method indicates whether an IEEE 802.15.4 Data Request message was received.
|
||||
@@ -337,16 +337,15 @@ private:
|
||||
{
|
||||
uint32_t mLinkFrameCounter; ///< The Link Frame Counter
|
||||
uint32_t mMleFrameCounter; ///< The MLE Frame Counter
|
||||
uint16_t mRloc16; ///< The RLOC16
|
||||
} mValid;
|
||||
struct
|
||||
{
|
||||
uint8_t mChallenge[Mle::ChallengeTlv::kMaxSize]; ///< The challenge value
|
||||
uint8_t mChallengeLength; ///< The challenge length
|
||||
} mPending;
|
||||
} mValidPending;
|
||||
|
||||
uint32_t mKeySequence; ///< Current key sequence
|
||||
uint16_t mRloc16; ///< The RLOC16
|
||||
uint8_t mState : 3; ///< The link state
|
||||
uint8_t mMode : 4; ///< The MLE device mode
|
||||
bool mDataRequest : 1; ///< Indicates whether or not a Data Poll was received
|
||||
|
||||
Reference in New Issue
Block a user