contiki-os/contiki — pull request #300 by sdawans (2013-07-25 11:15:37+00:00)
Title: RPL No-Path DAOs

Fixes #114 (refer to that issue for a detailed problem statement).

Summary of fixes:

* Nodes do not forward No-Path DAOs. (left unchanged)
* Instead, a No-Path DAO is generated when a route's lifetime reaches 0, and sent to the preferred parent.
* Route lifetime is forced to 0 when a No-Path DAO is received (left unchanged).
* Now, this is only done if the DAO sender is the nexthop to reach the target
* Otherwise, it means the route was already updated via a fresh DAO through a new neighbor, so we ignore the No-Path DAO.
* `dao_output` now calls `dao_output_target`, which accepts an arbitrary RPL Target. Allows to send zero lifetime DAOs for a target other than self by calling `dao_output_target` directly.
* Renamed `n` input variable to `parent` in `dao_output` for readability