Skip to content

Commit

Permalink
Check for mandatory Address registration tlv (ARMmbed#1853)
Browse files Browse the repository at this point in the history
MTDs must include Address registration tlv in child id request.
  • Loading branch information
deepakvenugopal authored Oct 8, 2018
1 parent ce8d5b7 commit f2b38cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/6LoWPAN/Thread/thread_router_bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1665,6 +1665,11 @@ void thread_router_bootstrap_mle_receive_cb(int8_t interface_id, mle_message_t *
}
}

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

id_req->keyId = security_headers->KeyIndex;
id_req->keySeq = common_read_32_bit(security_headers->Keysource);
Expand Down

0 comments on commit f2b38cf

Please sign in to comment.