35#ifndef NETSTATS_NB_SIZE
36#define NETSTATS_NB_SIZE (8)
42#ifndef NETSTATS_NB_QUEUE_SIZE
43#define NETSTATS_NB_QUEUE_SIZE (4)
50#define NETSTATS_LAYER2 (0x01)
51#define NETSTATS_IPV6 (0x02)
52#define NETSTATS_RPL (0x03)
53#define NETSTATS_ALL (0xFF)
76#if IS_USED(MODULE_NETSTATS_NEIGHBOR_TX_TIME) || DOXYGEN
79#if IS_USED(MODULE_NETSTATS_NEIGHBOR_ETX) || DOXYGEN
82#if IS_USED(MODULE_NETSTATS_NEIGHBOR_COUNT) || DOXYGEN
92#if IS_USED(MODULE_NETSTATS_NEIGHBOR_RSSI) || DOXYGEN
95#if IS_USED(MODULE_NETSTATS_NEIGHBOR_LQI) || DOXYGEN
Circular integer buffer interface.
#define L2UTIL_ADDR_MAX_LEN
maximum expected length for addresses
#define NETSTATS_NB_SIZE
The max number of entries in the peer stats table.
#define NETSTATS_NB_QUEUE_SIZE
The CIB size for tx correlation.
Link-layer helper function definitions.
Mutex for thread synchronization.
circular integer buffer structure
uint8_t rssi
Average RSSI of received frames in abs([dBm])
uint16_t last_halved
seconds timestamp of last halving
uint16_t tx_fail
Number of sent frames that did not get ACKed.
uint16_t tx_count
Number of sent frames to this peer.
uint16_t etx
ETX of this peer.
uint8_t l2_addr_len
Length of netstats_nb::l2_addr.
uint32_t time_tx_avg
Average frame TX time in µs.
uint8_t l2_addr[L2UTIL_ADDR_MAX_LEN]
Link layer address of the neighbor.
uint16_t last_updated
seconds timestamp of last update
uint8_t freshness
Freshness counter.
uint8_t lqi
Average LQI of received frames.
uint16_t rx_count
Number of received frames.
uint32_t stats_queue_time_tx[NETSTATS_NB_QUEUE_SIZE]
TX timestamp of stats_queue entries.
mutex_t lock
Neighbor Table access lock.
netstats_nb_t * stats_queue[NETSTATS_NB_QUEUE_SIZE]
send/callback mac association array
cib_t stats_idx
CIB for the tx correlation.
netstats_nb_t pstats[NETSTATS_NB_SIZE]
Per neighbor statistics array.
Global statistics struct.
uint32_t tx_bytes
sent bytes
uint32_t rx_bytes
received bytes
uint32_t tx_mcast_count
packets sent via multicast (including broadcast)
uint32_t tx_failed
failed sending operations
uint32_t tx_unicast_count
packets sent via unicast
uint32_t rx_count
received (data) packets
uint32_t tx_success
successful sending operations (either acknowledged or unconfirmed sending operation,...