contiki-os/contiki — pull request #912 by laurentderu (2014-12-16 08:24:45+00:00)
Title: Add DODAG lifetime

Currently there is no automated way to remove obsolete DODAG in a node, if a node has seen MAX_DODAG_PER_INSTANCE DODAGS all new DODAG are ignored, the only way to remove the old DODAG is to reset the node.

This PR add a lifetime for each DODAG, the lifetime is reset each time a DIO advertising that DODAG is heard. When a DODAG is not updated since RPL_CONF_DAG_LIFETIME the DODAG is removed from the list. Note that the currently joined DODAG is immunized from this.