Skip to content

Commit

Permalink
Wi-SUN bpptstrap clear destination cache at discovery phase.
Browse files Browse the repository at this point in the history
  • Loading branch information
Juha Heiskanen committed Mar 1, 2021
1 parent 71b0588 commit 82f1d54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/6LoWPAN/ws/ws_bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "6LoWPAN/Bootstraps/protocol_6lowpan.h"
#include "6LoWPAN/Bootstraps/protocol_6lowpan_interface.h"
#include "ipv6_stack/protocol_ipv6.h"
#include "ipv6_stack/ipv6_routing_table.h"
#include "6LoWPAN/MAC/mac_helper.h"
#include "6LoWPAN/MAC/mac_data_poll.h"
#include "6LoWPAN/MAC/mpx_api.h"
Expand Down Expand Up @@ -3551,6 +3552,8 @@ static void ws_bootstrap_event_handler(arm_event_s *event)
cur->ws_info->pending_key_index_info.state = NO_PENDING_PROCESS;
cur->mac_parameters->mac_default_key_index = 0;

ipv6_destination_cache_clean(cur->id);

// Clear parent blacklist
blacklist_clear();

Expand Down

0 comments on commit 82f1d54

Please sign in to comment.