File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
6LoWPAN/Bootstraps/Generic Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 37
37
#include "6LoWPAN/Bootstraps/protocol_6lowpan_bootstrap.h"
38
38
#include "Service_Libs/blacklist/blacklist.h"
39
39
#include "6LoWPAN/MAC/mac_helper.h"
40
+ #include "Service_Libs/mac_neighbor_table/mac_neighbor_table.h"
40
41
#include "mac_api.h"
41
42
42
43
#ifdef HAVE_RPL
@@ -169,6 +170,9 @@ int8_t nwk_6lowpan_up(protocol_interface_info_entry_t *cur)
169
170
int8_t nwk_6lowpan_down (protocol_interface_info_entry_t * cur )
170
171
{
171
172
int8_t ret_val ;
173
+ if (cur -> mac_parameters ) {
174
+ mac_neighbor_table_neighbor_list_clean (cur -> mac_parameters -> mac_neighbor_table );
175
+ }
172
176
neighbor_cache_flush (& cur -> neigh_cache );
173
177
ret_val = set_6lowpan_nwk_down (cur );
174
178
protocol_core_interface_info_reset (cur );
Original file line number Diff line number Diff line change 45
45
#include "Service_Libs/Neighbor_cache/neighbor_table_definition.h"
46
46
#include "Service_Libs/Trickle/trickle.h"
47
47
#include "Service_Libs/pan_blacklist/pan_blacklist_api.h"
48
+ #include "Service_Libs/mac_neighbor_table/mac_neighbor_table.h"
48
49
#include "net_polling_api.h"
49
50
#include "ipv6_stack/ipv6_routing_table.h"
50
51
@@ -246,6 +247,7 @@ typedef struct arm_15_4_mac_parameters_t {
246
247
beacon_compare_rx_cb * beacon_compare_rx_cb_ptr ;
247
248
beacon_join_priority_tx_cb * beacon_join_priority_tx_cb_ptr ;
248
249
uint8_t (* beacon_ind )(uint8_t * ptr , uint8_t len , protocol_interface_info_entry_t * cur );
250
+ mac_neighbor_table_t * mac_neighbor_table ;
249
251
}arm_15_4_mac_parameters_t ;
250
252
251
253
typedef void mac_poll_fail_cb (int8_t nwk_interface_id );
Original file line number Diff line number Diff line change @@ -250,6 +250,10 @@ void core_timer_event_handle(uint16_t ticksUpdate)
250
250
beacon_join_priority_update (cur -> id );
251
251
}
252
252
253
+ if (cur -> mac_parameters ) {
254
+ mac_neighbor_table_neighbor_timeout_update (cur -> mac_parameters -> mac_neighbor_table , seconds );
255
+ }
256
+
253
257
if (cur -> nwk_wpan_nvm_api ) {
254
258
cur -> nwk_wpan_nvm_api -> nvm_params_update_cb (cur -> nwk_wpan_nvm_api , false);
255
259
}
You can’t perform that action at this time.
0 commit comments