nes-proj/os
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
..
dev Merge branch 'develop' into cc2420_carrier 2018-11-05 21:45:27 +00:00
lib Json library: fix a number of potential buffer overflows 2018-10-15 16:36:10 +02:00
net Change the way of accessing the default v6 prefix 2018-11-11 18:30:54 +00:00
services Change the way of accessing the default v6 prefix 2018-11-11 18:30:54 +00:00
storage Set a larger default bytecode size since the example on the Contiki-NG wiki requires this. 2018-08-27 15:58:57 +02:00
sys Doxygen clarification to etimer_reset and ctimer_reset 2018-10-13 10:20:21 +02:00
contiki-default-conf.h Added flag for 802.15.4 default channel 2018-04-13 02:26:48 -07:00
contiki-lib.h Renamed core to os 2017-09-01 15:29:00 +02:00
contiki-main.c moved initialization of queuebuf to contikimac-main.c 2018-10-27 07:13:36 -07:00
contiki-net.h uIP: remove leftover IPv4 code 2018-10-17 11:18:20 +02:00
contiki.h energest: removed include of energest from contiki.h to avoid circular dependency 2017-10-31 22:18:17 +01:00