nes-proj/os/net
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
..
app-layer Merge branch 'develop' into contrib/uip-cleanup 2018-10-29 10:18:10 +01:00
ipv6 Change the way of accessing the default v6 prefix 2018-11-11 18:30:54 +00:00
mac Merge branch 'develop' into csma-improvements-pr 2018-11-10 15:20:35 +01:00
nullnet NullNet: move buffer variables from examples to os/net module 2017-10-08 14:56:47 +02:00
routing Change the way of accessing the default v6 prefix 2018-11-11 18:30:54 +00:00
security Bump tinydtls to latest commit 2018-08-31 08:50:45 +02:00
link-stats.c Add link stat packet counters 2018-09-09 21:43:40 +01:00
link-stats.h Add link stat packet counters 2018-09-09 21:43:40 +01:00
linkaddr.c
linkaddr.h linkaddr: Removed linkaddr_extended_t 2018-05-12 04:00:24 -07:00
nbr-table.c uip-nd6: bugfix on address resolution by Neighbor Discovery protocol 2018-04-01 13:11:47 +02:00
nbr-table.h uip-nd6: bugfix on address resolution by Neighbor Discovery protocol 2018-04-01 13:11:47 +02:00
net-debug.c
net-debug.h Re-organzie ip stack implementation 2017-09-22 17:09:54 +02:00
netstack.c addressed some of the suggestions on the PR - naming and netstack MAC 2017-10-08 00:44:02 +02:00
netstack.h Merge branch 'develop' into feature/ipv6_over_ble 2018-03-12 08:52:25 +00:00
packetbuf.c
packetbuf.h added uipbuf attributes for llsec level and key and added payloadlen in mac 2018-10-20 22:25:55 +02:00
queuebuf.c
queuebuf.h moved initialization of queuebuf to contikimac-main.c 2018-10-27 07:13:36 -07:00