Skip to content

Commit f2b38cf

Browse files
Check for mandatory Address registration tlv (ARMmbed#1853)
MTDs must include Address registration tlv in child id request.
1 parent ce8d5b7 commit f2b38cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/6LoWPAN/Thread/thread_router_bootstrap.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,6 +1665,11 @@ void thread_router_bootstrap_mle_receive_cb(int8_t interface_id, mle_message_t *
16651665
}
16661666
}
16671667

1668+
if (!(id_req->mode & MLE_FFD_DEV) && addressRegisteredTlv.tlvLen == 0) {
1669+
tr_debug("No address registration TLV in MTD child id request");
1670+
thread_child_id_request_entry_remove(cur, id_req);
1671+
return;
1672+
}
16681673

16691674
id_req->keyId = security_headers->KeyIndex;
16701675
id_req->keySeq = common_read_32_bit(security_headers->Keysource);

0 commit comments

Comments
 (0)