Skip to content

Commit

Permalink
RPL Prefix handling update:
Browse files Browse the repository at this point in the history
For Wi-SUN Interoperability force prefix length max to 64.
  • Loading branch information
Juha Heiskanen committed Jan 22, 2021
1 parent f761409 commit 90c3263
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/RPL/rpl_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 90c3263

Please sign in to comment.