nes-proj/examples
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
..
6tisch Rename srf06/{cc26xx,cc13xx} to srf06/{cc26x0,cc13x0} 2018-10-23 13:09:02 -07:00
benchmarks Rename srf06/{cc26xx,cc13xx} to srf06/{cc26x0,cc13x0} 2018-10-23 13:09:02 -07:00
coap Merge remote-tracking branch 'origin/release-4.1' into develop 2018-04-20 08:37:14 -07:00
dev Rename srf06-cc26xx to cc26x0-cc13x0 2018-10-23 13:04:32 -07:00
hello-world Added a periodic timer to the hello-world example 2018-04-27 01:54:00 +02:00
ip64-router Orion: do not auto-enable IP64 as this causes compilation issues on many examples. Orion examples enable IP64 explicitly 2018-03-09 16:29:07 +00:00
libs Merge branch 'develop' into contrib/uip-cleanup 2018-10-29 10:18:10 +01:00
lwm2m-ipso-objects minor refactoring of hdc-1000-sensor following commit f4a8cba37 2018-09-21 12:30:53 +02:00
mqtt-client Rename 'arch/cpu/cc26xx-cc13xx' to 'arch/cpu/cc26x0-cc13x0' 2018-10-23 13:32:03 -07:00
multicast Change the way of accessing the default v6 prefix 2018-11-11 18:30:54 +00:00
nullnet Fix nullnet-unicast.csc file 2018-03-26 11:00:09 -07:00
platform-specific Merge branch release-4.2 back into develop 2018-11-09 17:04:31 +01:00
rpl-border-router uip-ds6-nbr: make ds6_neighbors a local variable 2018-10-24 07:01:57 -07:00
rpl-udp removed some no longer needed hard-coded calculations in the sicslowpan code 2018-10-31 23:02:14 +01:00
sensniff Rename srf06-cc26xx to cc26x0-cc13x0 2018-10-23 13:04:32 -07:00
slip-radio Removed UIP_LLH_LEN 2018-10-18 20:26:12 +02:00
storage Rename srf06-cc26xx to cc26x0-cc13x0 2018-10-23 13:04:32 -07:00
websocket Renamd http-socket example to websocket 2018-04-10 00:37:47 -07:00