nes-proj/os/net/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
..
multicast Further simplification of uip.h buffers 2018-10-18 20:27:30 +02:00
ip64-addr.c Re-organzie ip stack implementation 2017-09-22 17:09:54 +02:00
ip64-addr.h Re-organzie ip stack implementation 2017-09-22 17:09:54 +02:00
psock.c Re-organzie ip stack implementation 2017-09-22 17:09:54 +02:00
psock.h Re-organzie ip stack implementation 2017-09-22 17:09:54 +02:00
resolv.c Define ICMP, UDP, and TCP buffer pointers globally in uip.h 2018-10-17 11:18:32 +02:00
resolv.h Removed the remaining Contiki Interface declaration macros (CCIF/CLIF) 2018-02-21 01:14:10 +01:00
sicslowpan.c clear uipbuf including its attributes before creating a packet 2018-11-02 15:44:45 +01:00
sicslowpan.h Re-organzie ip stack implementation 2017-09-22 17:09:54 +02:00
simple-udp.c Removing tcpip and udpip data strcutures, unsafe in cases with IPv6 extension headers 2018-10-17 11:22:05 +02:00
simple-udp.h Re-organzie ip stack implementation 2017-09-22 17:09:54 +02:00
tcp-socket.c Re-organzie ip stack implementation 2017-09-22 17:09:54 +02:00
tcp-socket.h Re-organzie ip stack implementation 2017-09-22 17:09:54 +02:00
tcpip.c Move function for clearing uip_buf to uipbuf module 2018-10-18 15:50:54 +02:00
tcpip.h Removed the remaining Contiki Interface declaration macros (CCIF/CLIF) 2018-02-21 01:14:10 +01:00
udp-socket.c Removing tcpip and udpip data strcutures, unsafe in cases with IPv6 extension headers 2018-10-17 11:22:05 +02:00
udp-socket.h Re-organzie ip stack implementation 2017-09-22 17:09:54 +02:00
uip6.c Merge branch 'develop' into contrib/csma-llsec 2018-11-02 01:13:14 +01:00
uip-arch.h Re-organzie ip stack implementation 2017-09-22 17:09:54 +02:00
uip-debug.h Added functions in uiplib to print a IP address to string and normal 2018-01-12 01:20:53 +01:00
uip-ds6-nbr.c uip-ds6-nbr: check memb availability before adding an nbr_table entry 2018-10-24 07:03:10 -07:00
uip-ds6-nbr.h uip-ds6-nbr: introduce UIP_DS6_NBR_MAX_6ADDRS_PER_NBR 2018-10-24 07:01:57 -07:00
uip-ds6-route.c correct identation 2018-09-10 10:49:06 +01:00
uip-ds6-route.h add qualifier const to uip-ds6-route methods 2018-09-07 16:39:53 +01:00
uip-ds6.c Change the way of accessing the default v6 prefix 2018-11-11 18:30:54 +00:00
uip-ds6.h Change the way of accessing the default v6 prefix 2018-11-11 18:30:54 +00:00
uip-icmp6.c Removed UIP_IP_BUF_CHAR 2018-10-18 20:26:12 +02:00
uip-icmp6.h Rework uip6.c 2018-10-18 20:26:11 +02:00
uip-nameserver.c uIP: remove leftover IPv4 code 2018-10-17 11:18:20 +02:00
uip-nameserver.h Rework Doxygen modules 2017-09-29 22:18:48 +02:00
uip-nd6.c Simplify uip.h definitions 2018-10-18 20:26:12 +02:00
uip-nd6.h Fix logic of RA flags related to RDNSS 2017-12-20 10:23:16 +01:00
uip-packetqueue.c Re-organzie ip stack implementation 2017-09-22 17:09:54 +02:00
uip-packetqueue.h Removed UIP_LLH_LEN 2018-10-18 20:26:12 +02:00
uip-sr.c Deployment: use node-id for compact address logging 2018-06-06 15:38:26 +02:00
uip-sr.h Implement function uip_sr_link_snprint 2018-05-18 08:43:19 -07:00
uip-udp-packet.c Removed UIP_LLH_LEN 2018-10-18 20:26:12 +02:00
uip-udp-packet.h Re-organzie ip stack implementation 2017-09-22 17:09:54 +02:00
uip.h Further simplification of uip.h buffers 2018-10-18 20:27:30 +02:00
uipbuf.c Merge branch 'develop' into contrib/csma-llsec 2018-11-02 01:13:14 +01:00
uipbuf.h Merge branch 'develop' into contrib/csma-llsec 2018-11-02 01:13:14 +01:00
uiplib.c uIP: remove leftover IPv4 code 2018-10-17 11:18:20 +02:00
uiplib.h uIP: remove leftover IPv4 code 2018-10-17 11:18:20 +02:00
uipopt.h Simplify uip.h definitions 2018-10-18 20:26:12 +02:00