summaryrefslogtreecommitdiff
path: root/mesh/net.h
diff options
context:
space:
mode:
authorMichaƂ Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com>2019-07-04 14:33:36 +0200
committerBrian Gix <brian.gix@intel.com>2019-07-04 10:18:44 -0700
commit9dfc56d7d4e73da42b3f4c81728ec57f5ac1c4f9 (patch)
tree05cc5d324ddd019be87d21e0a43623973e0eecb2 /mesh/net.h
parente3c5b38f0943846d2322062d9d9140c32f0847b8 (diff)
downloadbluez-9dfc56d7d4e73da42b3f4c81728ec57f5ac1c4f9.tar.gz
mesh: Split APP_IDX_DEV into APP_IDX_DEV_LOCAL and APP_IDX_DEV_REMOTE
This is needed to distinguish incoming messages encrypted using a device key: if the key is local, the message can be forwarded to internal models. If the key is a known remote one, it will be forwarded to the application via DevKeyMessageReceived() API.
Diffstat (limited to 'mesh/net.h')
-rw-r--r--mesh/net.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/mesh/net.h b/mesh/net.h
index f19024766..8848e6df0 100644
--- a/mesh/net.h
+++ b/mesh/net.h
@@ -37,10 +37,10 @@ struct mesh_node;
#define SEQ_MASK 0xffffff
#define CREDFLAG_MASK 0x1000
-#define APP_IDX_MASK 0x0fff
-#define APP_IDX_DEV 0x7fff
-#define APP_IDX_ANY 0x8000
-#define APP_IDX_NET 0xffff
+
+#define APP_IDX_MASK 0x0fff
+#define APP_IDX_DEV_REMOTE 0x6fff
+#define APP_IDX_DEV_LOCAL 0x7fff
#define NET_IDX_INVALID 0xffff
#define NET_NID_INVALID 0xff