nes-proj/tests/09-ipv6
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
..
code Change the way of accessing the default v6 prefix 2018-11-11 18:30:54 +00:00
js tests/09-ipv6: add tests for UIP_DS6_NBR_MULTI_IPV6_ADDRS feature 2018-10-24 06:59:42 -07:00
01-ping-lla-csma-w-rpl.csc tests/09-ipv6: add tests on neighbor cache update 2018-04-01 13:11:10 +02:00
02-ping-ula-csma-w-rpl.csc tests/09-ipv6: add tests on neighbor cache update 2018-04-01 13:11:10 +02:00
03-ping-lla-tsch-w-rpl.csc tests/09-ipv6: add tests on neighbor cache update 2018-04-01 13:11:10 +02:00
04-ping-ula-tsch-w-rpl.csc tests/09-ipv6: add tests on neighbor cache update 2018-04-01 13:11:10 +02:00
05-ping-lla-csma-wo-rpl.csc tests/09-ipv6: add tests on neighbor cache update 2018-04-01 13:11:10 +02:00
06-ping-ula-csma-wo-rpl.csc tests/09-ipv6: add tests on neighbor cache update 2018-04-01 13:11:10 +02:00
07-ping-lla-tsch-wo-rpl.csc tests/09-ipv6: add tests on neighbor cache update 2018-04-01 13:11:10 +02:00
08-ping-ula-tsch-wo-rpl.csc tests/09-ipv6: add tests on neighbor cache update 2018-04-01 13:11:10 +02:00
09-ping-lla-ula-csma-w-rpl.csc tests/09-ipv6: add tests for UIP_DS6_NBR_MULTI_IPV6_ADDRS feature 2018-10-24 06:59:42 -07:00
10-ping-lla-ula-tsch-w-rpl.csc tests/09-ipv6: add tests for UIP_DS6_NBR_MULTI_IPV6_ADDRS feature 2018-10-24 06:59:42 -07:00
11-ping-lla-ula-csma-wo-rpl.csc tests/09-ipv6: add tests for UIP_DS6_NBR_MULTI_IPV6_ADDRS feature 2018-10-24 06:59:42 -07:00
12-ping-lla-ula-tsch-wo-rpl.csc tests/09-ipv6: add tests for UIP_DS6_NBR_MULTI_IPV6_ADDRS feature 2018-10-24 06:59:42 -07:00
Makefile tests/09-ipv6: add tests on neighbor cache update 2018-04-01 13:11:10 +02:00