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
Simon Duquennoy
a2b7b996e4
Merge branch 'develop' into contrib/uip-cleanup
2018-10-29 10:18:10 +01:00
Yasuyuki Tanaka
8ef5c8b8c6
uip-ds6-nbr: make ds6_neighbors a local variable
...
All the nbr_table API calls with ds6_neighbors are replaced with
uip_ds6_nbr APIs accordingly.
2018-10-24 07:01:57 -07:00
Simon Duquennoy
655faf0dca
Further simplification of uip.h buffers
2018-10-18 20:27:30 +02:00
Simon Duquennoy
6c11da58d8
Rework rpl-ext-header.c
2018-10-18 20:27:03 +02:00
Simon Duquennoy
8456c544d8
Simplify uip.h definitions
2018-10-18 20:26:12 +02:00
Simon Duquennoy
9b66b6931d
Removed UIP_IP_BUF_CHAR
2018-10-18 20:26:12 +02:00
Simon Duquennoy
999e7dc3a7
Rework uip6.c
2018-10-18 20:26:11 +02:00
Simon Duquennoy
aaf06754ea
uipbuf_set_len_field
2018-10-18 15:50:54 +02:00
Simon Duquennoy
d4bc09e002
Move function for clearing uip_buf to uipbuf module
2018-10-18 15:50:54 +02:00
Simon Duquennoy
22f4a19994
Clean up usage of uip_ext_len
2018-10-18 15:50:34 +02:00
Simon Duquennoy
01b795a4c2
Rework uIP6 extension header options access
2018-10-17 17:07:17 +02:00
Simon Duquennoy
8152342c11
Rework uIP6 extension header access
2018-10-17 16:33:48 +02:00
Simon Duquennoy
1bd9ac781b
Define ICMP, UDP, and TCP buffer pointers globally in uip.h
2018-10-17 11:18:32 +02:00
Simon Duquennoy
caa02ae51e
Define UIP_IP_BUF globally in uip.h
2018-10-17 11:18:32 +02:00
George Oikonomou
bce7164827
Fix RPL classic compilation for TARGET sky
2018-09-09 20:10:53 +01:00
Simon Duquennoy
fa2a75dc79
Merge branch 'develop' into lafka-rpl-probing-guard
2018-09-01 10:39:21 +02:00
Olav Frengstad
54e5944d89
RPL-CLASSIC: Add guard for urgent probing
...
Compiling with RPL_CONF_WITH_PROBING := 0 was not possible due to `urgent_probing_target`
not present.
2018-08-31 14:59:52 +02:00
Olav Frengstad
b2eef99c7c
Use LOG_ constants infavour of PRINTF for rpl-classic
...
Debugging could only be enabled pr. file at compile time. Refactor to use sys/log.h module.
2018-08-31 14:27:46 +02:00
Simon Duquennoy
1963c43fad
Merge branch 'develop' into fix/rpl-urgent-probing
2018-05-12 09:59:51 +02:00
Simon Duquennoy
6aa17cce95
RPL Lite: disable MRHOF ETX squaring by default
2018-05-11 04:46:41 -07:00
Simon Duquennoy
72f558fb6e
RPL Classic: make sure no more than one probe gets in queue at any given time
2018-05-09 14:42:03 -07:00
George Oikonomou
58261ad53e
Delete trailing whitespaces (tests/)
2018-04-07 14:49:19 +01:00
Simon Duquennoy
fe7ded0762
Routing API: add function node_has_joined
2018-02-02 08:51:29 -08:00
Simon Duquennoy
123105ab20
Move source routing state management from RPL Lite and RPL Classic to uip.
2018-02-02 08:51:29 -08:00
Simon Duquennoy
62d128f5c7
RPL Classic: added stub implementations of NS functions when NS is disabled
2018-02-02 08:51:29 -08:00
Simon Duquennoy
229cec630c
RPL Classic: use full inclusion paths
2018-02-02 08:50:17 -08:00
Simon Duquennoy
26d51c15d7
Routing API: added more missing functions, homogenize configuration
2018-02-02 08:50:17 -08:00
Simon Duquennoy
c9861b0726
Routing API: added neighbor_state_changed
2018-02-02 08:48:37 -08:00
Simon Duquennoy
c6f2364bd8
RPL Classic: fix rpl-ext-headers.c
2018-02-02 08:48:37 -08:00
Simon Duquennoy
4ffab13eeb
Routing API: drop_route
2018-02-02 08:48:37 -08:00
Simon Duquennoy
eaa3b6ad79
Routing API: added link_callback
2018-02-02 08:48:37 -08:00
Simon Duquennoy
fdbd89d018
Routing API: added ext_header_srh_update
2018-02-02 08:48:37 -08:00
Simon Duquennoy
25e07b7d23
Routing API: added ext_header_hbh_update
2018-02-02 08:48:37 -08:00
Simon Duquennoy
54655335c6
Routing API: added ext_header_update
2018-02-02 08:48:37 -08:00
Simon Duquennoy
4cdf2d4819
Routing API: added ext_header_srh_get_next_hop
2018-02-02 08:48:37 -08:00
Simon Duquennoy
03bab6f119
Routing API: added ext_header_remove
2018-02-02 08:48:37 -08:00
Simon Duquennoy
53facf941e
Routing API: added toplogy repair
2018-02-02 08:48:37 -08:00
Simon Duquennoy
ab41114727
'rpl_init' is now static, rename to 'init'
2018-02-02 08:47:46 -08:00
Simon Duquennoy
bc73bb3284
Added root_start to routing driver
2018-02-02 08:47:46 -08:00
Simon Duquennoy
83e9414a71
Add root_set_prefix to routing driver
2018-02-02 08:47:21 -08:00
Simon Duquennoy
4c9f62ebe4
Added NETSTACK_ROUTING for routing protocol selection. Only used for init() so far.
2018-02-02 08:47:21 -08:00
Simon Duquennoy
7ddee2c66a
Move rpl-lite and rpl-classic to os/net/routing
2018-02-02 08:47:21 -08:00