From 90c32636163ba57ba2ea68358d4712fd7b28e327 Mon Sep 17 00:00:00 2001 From: Juha Heiskanen Date: Thu, 21 Jan 2021 14:10:38 +0200 Subject: [PATCH] RPL Prefix handling update: For Wi-SUN Interoperability force prefix length max to 64. --- source/RPL/rpl_control.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/RPL/rpl_control.c b/source/RPL/rpl_control.c index 74f5fdafef7e..af80b13f78af 100644 --- a/source/RPL/rpl_control.c +++ b/source/RPL/rpl_control.c @@ -55,6 +55,7 @@ #include "RPL/rpl_downward.h" #include "RPL/rpl_policy.h" #include "RPL/rpl_control.h" +#include "6LoWPAN/ws/ws_common.h" #define TRACE_GROUP "rplc" @@ -886,6 +887,11 @@ static void rpl_control_process_prefix_options(protocol_interface_info_entry_t * uint32_t preferred = common_read_32_bit(ptr + 8); const uint8_t *prefix = ptr + 16; + if (ws_info(cur)) { + //For Wi-SUN Interoperability force length to 64 + prefix_len = 64; + } + if (rpl_upward_accept_prefix_update(dodag, neighbour, pref_parent)) { /* Store prefixes for possible forwarding */