Add user configuration of DIO preference field
This commit is contained in:
parent
49bf7cc241
commit
3b503da680
2 changed files with 10 additions and 0 deletions
|
@ -270,6 +270,7 @@ rpl_set_root(uint8_t instance_id, uip_ipaddr_t *dag_id)
|
|||
dag->version = version;
|
||||
dag->joined = 1;
|
||||
dag->grounded = RPL_GROUNDED;
|
||||
dag->preference = RPL_PREFERENCE;
|
||||
instance->mop = RPL_MOP_DEFAULT;
|
||||
instance->of = &RPL_OF;
|
||||
rpl_set_preferred_parent(dag, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue