Changes in RPL implementation :
- Structural modification of RPL data storage. - Support multiple gateways (multiple DODAG-ID with a unique InstanceID) - Use Lollipop counters - Add leaf-only configuration option for RPL Bugfix : - Correctly send "Grounded" flag in DIO
This commit is contained in:
parent
2ac91d53b5
commit
dc9cbe647d
15 changed files with 1497 additions and 555 deletions
|
@ -71,7 +71,8 @@ collect_common_net_print(void)
|
|||
{
|
||||
rpl_dag_t *dag;
|
||||
int i;
|
||||
dag = rpl_get_dag(RPL_ANY_INSTANCE);
|
||||
/* Let's suppose we have only one instance */
|
||||
dag = rpl_get_any_dag();
|
||||
if(dag->preferred_parent != NULL) {
|
||||
PRINTF("Preferred parent: ");
|
||||
PRINT6ADDR(&dag->preferred_parent->addr);
|
||||
|
@ -128,7 +129,8 @@ collect_common_send(void)
|
|||
rimeaddr_copy(&parent, &rimeaddr_null);
|
||||
parent_etx = 0;
|
||||
|
||||
dag = rpl_get_dag(RPL_DEFAULT_INSTANCE);
|
||||
/* Let's suppose we have only one instance */
|
||||
dag = rpl_get_any_dag();
|
||||
if(dag != NULL) {
|
||||
preferred_parent = dag->preferred_parent;
|
||||
if(preferred_parent != NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue