Skip to content

Commit 061e809

Browse files
Johan HedbergAnas Nashif
authored andcommitted
Bluetooth: Mesh: Allow TTL <= 1 for the local net interface
The bt_mesh_net_relay() function needs to allow TTL <= 1 for the local network interface since that's the code path that locally originated outgoing packets take. Signed-off-by: Johan Hedberg <[email protected]>
1 parent 06c1d01 commit 061e809

File tree

1 file changed

+1
-1
lines changed
  • subsys/bluetooth/host/mesh

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/mesh/net.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ static void bt_mesh_net_relay(struct net_buf_simple *sbuf,
988988
BT_DBG("TTL %u CTL %u dst 0x%04x", rx->ctx.recv_ttl, CTL(sbuf->data),
989989
rx->dst);
990990

991-
if (rx->ctx.recv_ttl <= 1) {
991+
if (rx->net_if != BT_MESH_NET_IF_LOCAL && rx->ctx.recv_ttl <= 1) {
992992
return;
993993
}
994994

0 commit comments

Comments
 (0)