Commit Graph

89 Commits

Author SHA1 Message Date
Simon Duquennoy fbbf60248e
Merge branch 'develop' into contrib/rpl-schedule-dao 2019-02-25 21:35:57 +01:00
George Oikonomou 4243836e85
Merge branch 'develop' into contrib/default-prefix-as-variable 2018-11-25 02:43:45 +00:00
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
jeppenodgaard 00018d4c1b
Merge branch 'develop' into fix/global/ip-addr/removed 2018-10-30 17:18:35 +01: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
Jeppe Odgaard e135bf277e Added test to reproduce issue, and proposed fix in rpl-dag, where dag is only freed if dag_id is different. 2018-10-22 10:37:56 +02: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
Simon Duquennoy fb6451ef7b RPL-Lite: rework DAO sending/resending/refreshing logic 2018-10-12 11:04:40 +02:00
Simon Duquennoy a01413369d RPL-Lite: fix DAG lifetime, was 60h, now 8h 2018-09-29 09:26:29 +02:00
George Oikonomou bce7164827 Fix RPL classic compilation for TARGET sky 2018-09-09 20:10:53 +01:00
George Oikonomou 92b323c7d1
Merge branch 'develop' into validate-dio-before-init-dag 2018-09-08 11:27:04 +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
tdesmet 3cb82e7d6c Add option to validate dio before init dag 2018-08-14 21:23:11 +02:00
Simon Duquennoy 95208a804a Deployment: use node-id for compact address logging 2018-06-06 15:38:26 +02:00
Simon Duquennoy 857c7f51b2 rpl-dag-root: more readable logging of DAG root node IPv6 addresses 2018-05-26 01:02:51 -07:00
Simon Duquennoy 3617250383 nbr-policy: change log level from INFO to DBG for most logs 2018-05-26 01:02:51 -07:00
Simon Duquennoy 471a7093b9 nbr-policy: fix typo in logs 2018-05-26 01:02:10 -07:00
Simon Duquennoy 9610adb5e1 RPL Lite urgent probing logs: from WARN to INFO 2018-05-26 01:02:10 -07:00
Simon Duquennoy d194045087 rpl_neighbor_snprint: do not add prefix 2018-05-18 08:43:19 -07:00
Simon Duquennoy 59e8d059c2 RPL: print links at root periodically 2018-05-18 08:43:19 -07:00
Simon Duquennoy 5eaaa4d6b6 Doxygen fixes 2018-05-16 12:25:42 -07:00
Simon Duquennoy 97a9d7707c Introduce rpl_neighbor_snprint, for consistent printing of a RPL neighbor to a string 2018-05-16 12:25:42 -07:00
Simon Duquennoy 1963c43fad
Merge branch 'develop' into fix/rpl-urgent-probing 2018-05-12 09:59:51 +02:00
Simon Duquennoy a4c3e4373f Merge remote-tracking branch 'origin/release-4.1' into contrib/release-into-develop 2018-05-11 05:52:42 -07: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
Simon Duquennoy a2d9093cef RPL Lite: make sure no more than one probe gets in queue at any given time 2018-05-09 14:42:03 -07:00
George Oikonomou b45d284be2 Merge branch 'release-4.1' into develop 2018-05-09 22:18:01 +01:00
Simon Duquennoy 6501576183 RPL MRHOF: configurable max link metric and path cost 2018-05-04 12:57:43 -07:00
Simon Duquennoy 846ab211b6 Nullrouting: lowercase string description 2018-05-04 00:43:31 -07:00
Simon Duquennoy f9a1f958e1 Merge remote-tracking branch 'origin/release-4.1' into develop 2018-04-20 08:37:14 -07:00
Simon Duquennoy 61a7a377a3
Merge branch 'release-4.1' into fix/rpl-max-rank-16bit 2018-04-14 09:56:10 +02:00
Simon Duquennoy 2adf8544b2
Merge branch 'release-4.1' into fix/rpl-various 2018-04-13 18:07:39 +02:00
Simon Duquennoy 0750824f19 Fix nullrouting for compilation with nullnet 2018-04-13 08:06:03 -07:00
Simon Duquennoy 36bb007b19
Merge branch 'release-4.1' into contrib/root-old-version-reset-trickle 2018-04-13 15:52:25 +02:00
Simon Duquennoy a49a5dc675 RPL handle_proving_timer: fix defensive programming check 2018-04-13 05:44:49 -07:00