Created a separate function for local repair. Added a statistics structure. Improved the control of malformed packets.

This commit is contained in:
nvt-se 2010-10-27 00:46:40 +00:00
parent c2c0505402
commit d528039f9a
4 changed files with 62 additions and 13 deletions

View file

@ -32,7 +32,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: rpl.c,v 1.10 2010/10/22 13:50:13 nvt-se Exp $
* $Id: rpl.c,v 1.11 2010/10/27 00:46:40 nvt-se Exp $
*/
/**
* \file
@ -51,6 +51,11 @@
#include "net/uip-debug.h"
#include <limits.h>
#include <string.h>
#if RPL_CONF_STATS
rpl_stats_t rpl_stats;
#endif
/************************************************************************/
extern uip_ds6_route_t uip_ds6_routing_table[UIP_DS6_ROUTE_NB];
@ -204,5 +209,8 @@ rpl_init(void)
rpl_reset_periodic_timer();
neighbor_info_subscribe(rpl_link_neighbor_callback);
#if RPL_CONF_STATS
memset(&rpl_stats, 0, sizeof(rpl_stats));
#endif
}
/************************************************************************/