File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 31
31
#include "Service_Libs/etx/etx.h"
32
32
#include "Service_Libs/mac_neighbor_table/mac_neighbor_table.h"
33
33
#include "Service_Libs/blacklist/blacklist.h"
34
+ #include "RPL/rpl_protocol.h"
35
+ #include "RPL/rpl_control.h"
34
36
#include "ws_management_api.h"
35
37
#include "mac_api.h"
36
38
@@ -404,6 +406,13 @@ bool ws_common_allow_child_registration(protocol_interface_info_entry_t *interfa
404
406
return true;
405
407
}
406
408
409
+ //Verify that we have Selected Parent
410
+ if (interface -> bootsrap_mode != ARM_NWK_BOOTSRAP_MODE_6LoWPAN_BORDER_ROUTER && !rpl_control_parent_candidate_list_size (interface , true)) {
411
+ tr_info ("Do not accept new ARO child: no selected parent" );
412
+ return false;
413
+ }
414
+
415
+
407
416
ns_list_foreach_safe (mac_neighbor_table_entry_t , cur , & mac_neighbor_info (interface )-> neighbour_list ) {
408
417
409
418
if (ipv6_neighbour_has_registered_by_eui64 (& interface -> ipv6_neighbour_cache , cur -> mac64 )) {
You can’t perform that action at this time.
0 commit comments