mesh: minimal network pdu without payload and mic is 9 bytes

This commit is contained in:
Matthias Ringwald 2019-09-18 17:28:16 +02:00
parent 7a1ad92d2c
commit 29aca185e8
2 changed files with 4 additions and 4 deletions

View File

@ -675,8 +675,8 @@ static void mesh_lower_transport_send_current_segmented_pdu_once(void){
void mesh_lower_transport_send_pdu(mesh_pdu_t *pdu){
if (pdu->pdu_type == MESH_PDU_TYPE_NETWORK){
mesh_network_pdu_t * network_pdu = (mesh_network_pdu_t *) pdu;
// network pdu without payload and minimal mic = 13 bytes
if (network_pdu->len <13){
// network pdu without payload = 9 bytes
if (network_pdu->len < 9){
printf("too short, %u\n", network_pdu->len);
while(1);
}

View File

@ -991,8 +991,8 @@ void mesh_network_send_pdu(mesh_network_pdu_t * network_pdu){
while(1);
}
// network pdu without payload and minimal mic = 13 bytes
if (network_pdu->len <13){
// network pdu without payload = 9 bytes
if (network_pdu->len < 9){
printf("too short, %u\n", network_pdu->len);
while(1);
}