Add separate counters for unicast and broadcast (#994)

* Added tx counts for unicast vs broadcast packets

* Added counters for Rx broadcast vs unicast packets
This commit is contained in:
Adam Eliot
2016-11-22 08:41:27 -08:00
committed by Jonathan Hui
parent 0bc2efe750
commit e40947eb6f
7 changed files with 105 additions and 10 deletions
+4
View File
@@ -832,6 +832,8 @@ typedef struct otLeaderData
typedef struct otMacCounters
{
uint32_t mTxTotal; ///< The total number of transmissions.
uint32_t mTxUnicast; ///< The total number of unicast transmissions.
uint32_t mTxBroadcast; ///< The total number of broadcast transmissions.
uint32_t mTxAckRequested; ///< The number of transmissions with ack request.
uint32_t mTxAcked; ///< The number of transmissions that were acked.
uint32_t mTxNoAckRequested; ///< The number of transmissions without ack request.
@@ -843,6 +845,8 @@ typedef struct otMacCounters
uint32_t mTxRetry; ///< The number of retransmission times.
uint32_t mTxErrCca; ///< The number of CCA failure times.
uint32_t mRxTotal; ///< The total number of received packets.
uint32_t mRxUnicast; ///< The total number of unicast packets received.
uint32_t mRxBroadcast; ///< The total number of broadcast packets received.
uint32_t mRxData; ///< The number of received data.
uint32_t mRxDataPoll; ///< The number of received data poll.
uint32_t mRxBeacon; ///< The number of received beacon.