Skip to content

Commit 43083ed

Browse files
author
Juha Heiskanen
committed
Fixed broken wi-sun neigbour black list filtering.
Change-Id: Iaf37528bae6a90571c2c99fb854446502d2526d8
1 parent 0992ee2 commit 43083ed

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,16 +1408,16 @@ static bool ws_bootstrap_neighbor_info_request(struct protocol_interface_info_en
14081408
return false;
14091409
}
14101410

1411-
if (!multicast) {
1412-
uint8_t ll_target[16];
1413-
ws_bootsrap_create_ll_address(ll_target, mac_64);
1411+
uint8_t ll_target[16];
1412+
ws_bootsrap_create_ll_address(ll_target, mac_64);
14141413

1415-
if (blacklist_reject(ll_target)) {
1416-
// Rejected by blacklist
1417-
return false;
1418-
}
1419-
} else {
1414+
if (blacklist_reject(ll_target)) {
1415+
// Rejected by blacklist
1416+
return false;
1417+
}
14201418

1419+
if (multicast) {
1420+
//for multicast neighbour we must limit if we have already enough information
14211421
if (interface->bootsrap_mode == ARM_NWK_BOOTSRAP_MODE_6LoWPAN_BORDER_ROUTER) {
14221422
//Border router never allocate neighbors by multicast
14231423
return false;

0 commit comments

Comments
 (0)