39 #ifdef LINK_STATS_CONF_ETX_DIVISOR 40 #define LINK_STATS_ETX_DIVISOR LINK_STATS_CONF_ETX_DIVISOR 42 #define LINK_STATS_ETX_DIVISOR 128 46 #ifdef LINK_STATS_CONF_INIT_ETX_FROM_RSSI 47 #define LINK_STATS_INIT_ETX_FROM_RSSI LINK_STATS_CONF_INIT_ETX_FROM_RSSI 49 #define LINK_STATS_INIT_ETX_FROM_RSSI 1 53 #ifdef LINK_STATS_CONF_ETX_FROM_PACKET_COUNT 54 #define LINK_STATS_ETX_FROM_PACKET_COUNT LINK_STATS_CONF_ETX_FROM_PACKET_COUNT 56 #define LINK_STATS_ETX_FROM_PACKET_COUNT 0 61 clock_time_t last_tx_time;
65 #if LINK_STATS_ETX_FROM_PACKET_COUNT 72 const struct link_stats *link_stats_from_lladdr(
const linkaddr_t *lladdr);
74 int link_stats_is_fresh(
const struct link_stats *stats);
76 void link_stats_reset(
void);
78 void link_stats_init(
void);
80 void link_stats_packet_sent(
const linkaddr_t *lladdr,
int status,
int numtx);
82 void link_stats_input_callback(
const linkaddr_t *lladdr);
Header file for the link-layer address representation