Skip to content

Commit

Permalink
Update sys/include/net/netstats.h
Browse files Browse the repository at this point in the history
Co-authored-by: Marian Buschsieweke <[email protected]>
  • Loading branch information
benpicco and maribu authored Feb 9, 2021
1 parent 5f522a9 commit 58861f6
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions sys/include/net/netstats.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,28 +73,28 @@ typedef struct {
* @brief Stats per peer struct
*/
typedef struct {
uint8_t l2_addr[L2UTIL_ADDR_MAX_LEN]; /**< Link layer address of the neighbor */
uint8_t l2_addr_len; /**< Length of netstats_nb::l2_addr */
uint8_t freshness; /**< Freshness counter */
uint16_t last_updated; /**< seconds timestamp of last update */
uint16_t last_halved; /**< seconds timestamp of last halving */
#if IS_USED(MODULE_NETSTATS_NEIGHBOR_TX_TIME) || DOXYGEN
uint32_t time_tx_avg; /**< Average frame TX time in µs */
#endif
#if IS_USED(MODULE_NETSTATS_NEIGHBOR_ETX) || DOXYGEN
uint16_t etx; /**< ETX of this peer */
#endif
#if IS_USED(MODULE_NETSTATS_NEIGHBOR_TX_TIME) || DOXYGEN
uint32_t time_tx_avg; /**< Average frame TX time in µs */
#if IS_USED(MODULE_NETSTATS_NEIGHBOR_COUNT) || DOXYGEN
uint16_t tx_count; /**< Number of sent frames to this peer */
uint16_t tx_fail; /**< Number of sent frames that did not get ACKed */
uint16_t rx_count; /**< Number of received frames */
#endif
uint16_t last_updated; /**< seconds timestamp of last update */
uint16_t last_halved; /**< seconds timestamp of last halving */
uint8_t l2_addr[L2UTIL_ADDR_MAX_LEN]; /**< Link layer address of the neighbor */
uint8_t l2_addr_len; /**< Length of netstats_nb::l2_addr */
uint8_t freshness; /**< Freshness counter */
#if IS_USED(MODULE_NETSTATS_NEIGHBOR_RSSI) || DOXYGEN
uint8_t rssi; /**< Average RSSI of received frames in abs([dBm]) */
#endif
#if IS_USED(MODULE_NETSTATS_NEIGHBOR_LQI) || DOXYGEN
uint8_t lqi; /**< Average LQI of received frames */
#endif
#if IS_USED(MODULE_NETSTATS_NEIGHBOR_COUNT) || DOXYGEN
uint16_t tx_count; /**< Number of sent frames to this peer */
uint16_t tx_fail; /**< Number of sent frames that did not get ACKed */
uint16_t rx_count; /**< Number of received frames */
#endif
} netstats_nb_t;

/**
Expand Down

0 comments on commit 58861f6

Please sign in to comment.