Represents a Network Diagnostic Enhanced Route data.
Public Attributes#
The Router ID.
This is the queried device itself. If set, the other fields should be ignored.
Indicates whether the queried device has a direct link with router.
Link Quality Out (applicable when mHasLink
).
Link Quality In (applicable when mHasLink
).
The next hop Router ID tracked towards this router.
The route cost associated with forwarding to mRouterId
using mNextHop
(when valid).
Public Attribute Documentation#
mIsSelf#
bool otNetworkDiagEnhRouteData::mIsSelf
This is the queried device itself. If set, the other fields should be ignored.
mHasLink#
bool otNetworkDiagEnhRouteData::mHasLink
Indicates whether the queried device has a direct link with router.
mLinkQualityOut#
uint8_t otNetworkDiagEnhRouteData::mLinkQualityOut
Link Quality Out (applicable when mHasLink
).
mLinkQualityIn#
uint8_t otNetworkDiagEnhRouteData::mLinkQualityIn
Link Quality In (applicable when mHasLink
).
mNextHop#
uint8_t otNetworkDiagEnhRouteData::mNextHop
The next hop Router ID tracked towards this router.
This field indicates the next hop router towards mRouterId
when using multi-hop forwarding.
If the device has no direct link with the router (mHasLink == false
), this field indicates the next hop router that would be used to forward messages destined to mRouterId
.
If the device has a direct link with the router (mHasLink == true
), this field indicates the alternate multi-hop path that may be used. Note that whether the direct link or this alternate path through the next hop is used to forward messages depends on their associated total path costs.
If there is no next hop, then OT_NETWORK_MAX_ROUTER_ID + 1
is used.
mNextHopCost#
uint8_t otNetworkDiagEnhRouteData::mNextHopCost
The route cost associated with forwarding to mRouterId
using mNextHop
(when valid).
This is the route cost mNextHop
has claimed to have towards mRouterId
. Importantly, it does not include the link cost to send to mNextHop
itself.