mesh: print ttl

This commit is contained in:
Matthias Ringwald 2018-11-01 17:59:50 +01:00
parent 568e37651a
commit 1f2a88929d

View File

@ -128,8 +128,6 @@ static uint8_t encryption_block[16];
static uint8_t obfuscation_block[16];
// network pdu decoding buffer
static uint8_t network_pdu_data[29];
static uint8_t network_nonce[13];
// processing
@ -328,6 +326,8 @@ static void process_network_pdu_validate_d(void * arg){
// match
printf("NetMIC matches\n");
printf("TTL: 0x02x\n", network_pdu->data[1] & 0x7f);
// validate packet
uint16_t src = big_endian_read_16(network_pdu->data, 5);
uint16_t dst = big_endian_read_16(network_pdu->data, 7);