GetState() const
Returns the current state.
SetState()
Sets the current state.
IsStateInvalid() const
Indicates whether the neighbor is in the Invalid state.
IsStateChildIdRequest() const
Indicates whether the neighbor is in the Child ID Request state.
IsStateLinkRequest() const
Indicates whether the neighbor is in the Link Request state.
IsStateParentResponse() const
Indicates whether the neighbor is in the Parent Response state.
IsStateRestoring() const
Indicates whether the neighbor is being restored.
IsStateRestored() const
Indicates whether the neighbor is in the Restored state.
IsStateValid() const
Indicates whether the neighbor is valid (frame counters are synchronized).
IsStateValidOrRestoring() const
Indicates whether the neighbor is in valid state or if it is being restored. When in these states messages can be sent to and/or received from the neighbor.
IsStateValidOrAttaching() const
Indicates if the neighbor state is valid, attaching, or restored. The states `kStateRestored`, `kStateChildIdRequest`, `kStateChildUpdateRequest`, `kStateValid`, and `kStateLinkRequest` are considered as valid, attaching, or restored.
MatchesFilter() const
Indicates whether neighbor state matches a given state filter.
Matches() const
Indicates whether neighbor matches a given `AddressMatcher`.
GetDeviceMode() const
Gets the device mode flags.
SetDeviceMode()
Sets the device mode flags.
IsRxOnWhenIdle() const
Indicates whether or not the device is rx-on-when-idle.
IsFullThreadDevice() const
Indicates whether or not the device is a Full Thread Device.
GetNetworkDataType() const
Gets the Network Data type (full set or stable subset) that the device requests.
GetExtAddress() const
Returns the Extended Address.
GetExtAddress()
Returns the Extended Address.
SetExtAddress()
Sets the Extended Address.
GetKeySequence() const
Gets the key sequence value.
SetKeySequence()
Sets the key sequence value.
GetLastHeard() const
Returns the last heard time.
SetLastHeard()
Sets the last heard time.
GetLinkFrameCounters()
Gets the link frame counters.
GetLinkFrameCounters() const
Gets the link frame counters.
GetLinkAckFrameCounter() const
Gets the link ACK frame counter value.
SetLinkAckFrameCounter()
Sets the link ACK frame counter value.
GetMleFrameCounter() const
Gets the MLE frame counter value.
SetMleFrameCounter()
Sets the MLE frame counter value.
GetRloc16() const
Gets the RLOC16 value.
GetRouterId() const
Gets the Router ID value.
SetRloc16()
Sets the RLOC16 value.
IsThreadVersion1p1() const
Indicates whether or not it is Thread 1.1.
IsThreadVersion1p2OrHigher() const
Indicates whether or not neighbor is Thread 1.2 or higher..
IsThreadVersionCslCapable() const
Indicates whether Thread version supports CSL.
IsEnhancedKeepAliveSupported() const
Indicates whether Enhanced Keep-Alive is supported or not.
GetVersion() const
Gets the device MLE version.
SetVersion()
Sets the device MLE version.
GetLinkFailures() const
Gets the number of consecutive link failures.
IncrementLinkFailures()
Increments the number of consecutive link failures.
ResetLinkFailures()
Resets the number of consecutive link failures to zero.
GetLinkInfo()
Returns the LinkQualityInfo object.
GetLinkInfo() const
Returns the LinkQualityInfo object.
GetLinkQualityIn() const
Gets the link quality in value.
GenerateChallenge()
Generates a new challenge value for MLE Link Request/Response exchanges.
GetChallenge() const
Returns the current challenge value for MLE Link Request/Response exchanges.
GetConnectionTime() const
Returns the connection time (in seconds) of the neighbor (seconds since entering `kStateValid`).
StateToString()
Converts a given `State` to a human-readable string.
Init()
Initializes the `Neighbor` object.