nes-proj/os/net/routing/rpl-classic
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 Move rpl-lite and rpl-classic to os/net/routing 2018-02-02 08:47:21 -08:00
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 Move rpl-lite and rpl-classic to os/net/routing 2018-02-02 08:47:21 -08:00
rpl-dag.c uip-ds6-nbr: make ds6_neighbors a local variable 2018-10-24 07:01:57 -07:00
rpl-ext-header.c Further simplification of uip.h buffers 2018-10-18 20:27:30 +02:00
rpl-icmp6.c Move function for clearing uip_buf to uipbuf module 2018-10-18 15:50:54 +02:00
rpl-mrhof.c Use LOG_ constants infavour of PRINTF for rpl-classic 2018-08-31 14:27:46 +02:00
rpl-nbr-policy.c Merge branch 'develop' into contrib/uip-cleanup 2018-10-29 10:18:10 +01:00
rpl-of0.c Use LOG_ constants infavour of PRINTF for rpl-classic 2018-08-31 14:27:46 +02:00
rpl-private.h RPL Classic: make sure no more than one probe gets in queue at any given time 2018-05-09 14:42:03 -07:00
rpl-timers.c Use LOG_ constants infavour of PRINTF for rpl-classic 2018-08-31 14:27:46 +02:00
rpl.c Merge branch 'develop' into lafka-rpl-probing-guard 2018-09-01 10:39:21 +02:00
rpl.h Merge branch 'develop' into contrib/uip-cleanup 2018-10-29 10:18:10 +01:00