nes-proj/os/net/routing/rpl-lite
George Oikonomou 15f6e1d7a3 Change the way of accessing the default v6 prefix
This commit changes the method of accessing the default v6 prefix. Instead of always using `UIP_DS6_DEFAULT_PREFIX`, we store the default prefix in a variable. We subsequently retrieve the prefix by calling `uip_ds6_default_prefix()`.

`uip_ds6_init()` will set this variable to the value of `UIP_DS6_DEFAULT_PREFIX`, but only if the startup code has not set a different default prefix before `uip_ds6_init()` gets called.

This approach has the following benefits:

* It allows us to change the default prefix at run time.
* It allows the startup code to set a prefix different than the one specified by `UIP_DS6_DEFAULT_PREFIX`, which can be useful if the default prefix comes from a different source (e.g. the command line for native, or a configuration stored on a node's flash)
* In many places the current code assumes that the prefix contains 6 bytes of zeros (e.g. `FDxx::/64`). Changing to a different prefix (e.g. `FD00:ABCD::`) would need extensive code changes. This change here makes it easy to use a prefix of any length.
2018-11-11 18:30:54 +00:00
..
rpl-conf.h RPL-Lite: fix DAG lifetime, was 60h, now 8h 2018-09-29 09:26:29 +02:00
rpl-const.h
rpl-dag-root.c Change the way of accessing the default v6 prefix 2018-11-11 18:30:54 +00:00
rpl-dag-root.h Change the way of accessing the default v6 prefix 2018-11-11 18:30:54 +00:00
rpl-dag.c Add option to validate dio before init dag 2018-08-14 21:23:11 +02:00
rpl-dag.h Routing API: added more missing functions, homogenize configuration 2018-02-02 08:50:17 -08:00
rpl-ext-header.c Further simplification of uip.h buffers 2018-10-18 20:27:30 +02:00
rpl-ext-header.h Rework rpl-ext-header.c 2018-10-18 20:27:03 +02:00
rpl-icmp6.c Move function for clearing uip_buf to uipbuf module 2018-10-18 15:50:54 +02:00
rpl-icmp6.h
rpl-mrhof.c Merge remote-tracking branch 'origin/release-4.1' into contrib/release-into-develop 2018-05-11 05:52:42 -07:00
rpl-nbr-policy.c Merge branch 'develop' into contrib/uip-cleanup 2018-10-29 10:18:10 +01:00
rpl-neighbor.c uip-ds6-nbr: make ds6_neighbors a local variable 2018-10-24 07:01:57 -07:00
rpl-neighbor.h Doxygen fixes 2018-05-16 12:25:42 -07:00
rpl-of0.c
rpl-timers.c RPL: print links at root periodically 2018-05-18 08:43:19 -07:00
rpl-timers.h RPL Lite: make sure no more than one probe gets in queue at any given time 2018-05-09 14:42:03 -07:00
rpl-types.h
rpl.c RPL Lite: make sure no more than one probe gets in queue at any given time 2018-05-09 14:42:03 -07:00
rpl.h Changed RPL_LEAF_ONLY flag to a runtime flag with getter and setter 2018-04-12 16:49:17 +02:00