From fdf47f7cca58840d92b58aafd645d40de29f57f4 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 5 Nov 2018 17:00:03 +0100 Subject: [PATCH] mesh: ouput filter drops messages with TTL <= 1 mesh_network --- src/ble/mesh/mesh_network.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ble/mesh/mesh_network.c b/src/ble/mesh/mesh_network.c index b7cbc5772..39c010e02 100644 --- a/src/ble/mesh/mesh_network.c +++ b/src/ble/mesh/mesh_network.c @@ -564,6 +564,9 @@ void mesh_network_received_message(const uint8_t * pdu_data, uint8_t pdu_len){ uint8_t mesh_network_send(uint16_t netkey_index, uint8_t ctl, uint8_t ttl, uint32_t seq, uint16_t src, uint16_t dest, const uint8_t * transport_pdu_data, uint8_t transport_pdu_len){ + // "The output filter of the interface connected to advertising or GATT bearers shall drop all messages with TTL value set to 1." + if (ttl <= 1) return; + // TODO: check transport_pdu_len depending on ctl // lookup network by netkey_index