summaryrefslogtreecommitdiff
path: root/mesh/mesh-defs.h
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2019-09-06 23:07:59 -0700
committerBrian Gix <brian.gix@intel.com>2019-09-08 07:14:30 -0700
commit7a5bccba5305729d32cf62aeb6be765fd9a7904f (patch)
treec499f0320ad6ff22d75f22774de1479a8fcc5ea9 /mesh/mesh-defs.h
parentf3cbe6609af9de3f2621329797e43539b940215c (diff)
downloadbluez-7a5bccba5305729d32cf62aeb6be765fd9a7904f.tar.gz
mesh: Handle messages sent to a fixed group address
This handles the case when an inbound message is addressed to a fixed group, i.e., all-proxies, all-friends, all-relays and all-nodes. The message is delivered to a primary element only, and, with the exception of all-nodes case, if the corresponding feature is enabled on the node.
Diffstat (limited to 'mesh/mesh-defs.h')
-rw-r--r--mesh/mesh-defs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesh/mesh-defs.h b/mesh/mesh-defs.h
index 1219e4939..8f28fc89b 100644
--- a/mesh/mesh-defs.h
+++ b/mesh/mesh-defs.h
@@ -118,4 +118,6 @@
#define IS_GROUP(x) ((((x) >= GROUP_ADDRESS_LOW) && \
((x) < FIXED_GROUP_HIGH)) || \
((x) == ALL_NODES_ADDRESS))
+
+#define IS_FIXED_GROUP_ADDRESS(x) ((x) >= PROXIES_ADDRESS)
#define IS_ALL_NODES(x) ((x) == ALL_NODES_ADDRESS)