Home
last modified time | relevance | path

Searched refs:macCounters (Results 1 – 2 of 2) sorted by relevance

/openthread-2.7.6/src/core/thread/
Dnetwork_diagnostic.cpp266 const otMacCounters &macCounters = Get<Mac::Mac>().GetCounters(); in FillMacCountersTlv() local
268 aMacCountersTlv.SetIfInUnknownProtos(macCounters.mRxOther); in FillMacCountersTlv()
269 aMacCountersTlv.SetIfInErrors(macCounters.mRxErrNoFrame + macCounters.mRxErrUnknownNeighbor + in FillMacCountersTlv()
270macCounters.mRxErrInvalidSrcAddr + macCounters.mRxErrSec + macCounters.mRxErrFcs + in FillMacCountersTlv()
271 macCounters.mRxErrOther); in FillMacCountersTlv()
272 aMacCountersTlv.SetIfOutErrors(macCounters.mTxErrCca); in FillMacCountersTlv()
273 aMacCountersTlv.SetIfInUcastPkts(macCounters.mRxUnicast); in FillMacCountersTlv()
274 aMacCountersTlv.SetIfInBroadcastPkts(macCounters.mRxBroadcast); in FillMacCountersTlv()
275 … aMacCountersTlv.SetIfInDiscards(macCounters.mRxAddressFiltered + macCounters.mRxDestAddrFiltered + in FillMacCountersTlv()
276 macCounters.mRxDuplicated); in FillMacCountersTlv()
[all …]
/openthread-2.7.6/src/cli/
Dcli.cpp1229 const otMacCounters *macCounters = otLinkGetCounters(mInstance); in ProcessCounters() local
1231 OutputLine("TxTotal: %d", macCounters->mTxTotal); in ProcessCounters()
1235 OutputLine(kIndentSize, "%s: %u", counter.mName, macCounters->*counter.mValuePtr); in ProcessCounters()
1238 OutputLine("RxTotal: %d", macCounters->mRxTotal); in ProcessCounters()
1242 OutputLine(kIndentSize, "%s: %u", counter.mName, macCounters->*counter.mValuePtr); in ProcessCounters()