mesh: Fix Relaying for multiple nodes
authorBrian Gix <brian.gix@intel.com>
Fri, 18 Jan 2019 17:39:44 +0000 (09:39 -0800)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 14:02:16 +0000 (19:32 +0530)
commit20a6c6d7c5a8f8623dd86ade84e799c9edb62330
tree229c55e8df25af7b815dedef7797af13b93916b6
parent999295230fb6505836ccd9e0dc393934c2a5ee5c
mesh: Fix Relaying for multiple nodes

Relay is now a cooperation between all the nodes on the daemon.
If any one or more nodes have relay enabled and a received packet
is addressed to a Group, or a non-present Unicast address, then the
packet's TTL is decremented and it is resent.

Change-Id: I27d5555a9d530fc91a0c8f835feba9f2563ff68d
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/crypto.c
mesh/mesh-defs.h
mesh/net.c