Added link-stats module to keep strack of link statistics and their freshness
This commit is contained in:
parent
4e9b027141
commit
2fa239ee8d
4 changed files with 286 additions and 0 deletions
|
@ -62,6 +62,7 @@
|
|||
|
||||
#include "contiki.h"
|
||||
#include "dev/watchdog.h"
|
||||
#include "net/link-stats.h"
|
||||
#include "net/ip/tcpip.h"
|
||||
#include "net/ip/uip.h"
|
||||
#include "net/ipv6/uip-ds6.h"
|
||||
|
@ -1516,6 +1517,9 @@ input(void)
|
|||
uint8_t first_fragment = 0, last_fragment = 0;
|
||||
#endif /*SICSLOWPAN_CONF_FRAG*/
|
||||
|
||||
/* Update link statistics */
|
||||
link_stats_input_callback(packetbuf_addr(PACKETBUF_ADDR_SENDER));
|
||||
|
||||
/* init */
|
||||
uncomp_hdr_len = 0;
|
||||
packetbuf_hdr_len = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue