[telemetry] implement RA/RS counters (#8416)

This commit is contained in:
whd
2022-11-22 09:23:58 -08:00
committed by GitHub
parent a8367287a5
commit 9f702782bd
7 changed files with 53 additions and 2 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ extern "C" {
* @note This number versions both OpenThread platform and user APIs.
*
*/
#define OPENTHREAD_API_VERSION (263)
#define OPENTHREAD_API_VERSION (264)
/**
* @addtogroup api-instance
+6
View File
@@ -871,6 +871,12 @@ typedef struct otBorderRoutingCounters
otPacketsAndBytes mInboundMulticast; ///< The counters for inbound multicast.
otPacketsAndBytes mOutboundUnicast; ///< The counters for outbound unicast.
otPacketsAndBytes mOutboundMulticast; ///< The counters for outbound multicast.
uint32_t mRaRx; ///< The number of received RA packets.
uint32_t mRaTxSuccess; ///< The number of RA packets successfully transmitted.
uint32_t mRaTxFailure; ///< The number of RA packets failed to transmit.
uint32_t mRsRx; ///< The number of received RS packets.
uint32_t mRsTxSuccess; ///< The number of RS packets successfully transmitted.
uint32_t mRsTxFailure; ///< The number of RS packets failed to transmit.
} otBorderRoutingCounters;
/**