36#ifndef NETSTATS_NB_SIZE
37#define NETSTATS_NB_SIZE (8)
43#ifndef NETSTATS_NB_QUEUE_SIZE
44#define NETSTATS_NB_QUEUE_SIZE (4)
51#define NETSTATS_LAYER2 (0x01)
52#define NETSTATS_IPV6 (0x02)
53#define NETSTATS_RPL (0x03)
54#define NETSTATS_ALL (0xFF)
77#if IS_USED(MODULE_NETSTATS_NEIGHBOR_TX_TIME) || DOXYGEN
80#if IS_USED(MODULE_NETSTATS_NEIGHBOR_ETX) || DOXYGEN
83#if IS_USED(MODULE_NETSTATS_NEIGHBOR_COUNT) || DOXYGEN
93#if IS_USED(MODULE_NETSTATS_NEIGHBOR_RSSI) || DOXYGEN
96#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.
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.
mutex_t lock
Neighbor Table access lock.
cib_t stats_idx
CIB for the tx correlation.
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,...