diff options
author | MichaĆ Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com> | 2019-07-19 14:15:59 +0200 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2019-07-19 12:25:53 -0700 |
commit | 79bf51dbb50ab9a10a42fcc51e23be92e2441508 (patch) | |
tree | c5266dac42d3325be0076d0f0ea490cf6e388018 /mesh/mesh-defs.h | |
parent | 060b3439f0c147309e097914df1ca351541b0495 (diff) | |
download | bluez-79bf51dbb50ab9a10a42fcc51e23be92e2441508.tar.gz |
mesh: Check address range passed to ImportRemoteNode
+changed "not authorized" error to "invalid args" when managing device
key for local address range
Diffstat (limited to 'mesh/mesh-defs.h')
-rw-r--r-- | mesh/mesh-defs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesh/mesh-defs.h b/mesh/mesh-defs.h index 1a199f156..82be91d75 100644 --- a/mesh/mesh-defs.h +++ b/mesh/mesh-defs.h @@ -82,6 +82,7 @@ #define IS_UNASSIGNED(x) ((x) == UNASSIGNED_ADDRESS) #define IS_UNICAST(x) (((x) > UNASSIGNED_ADDRESS) && \ ((x) < VIRTUAL_ADDRESS_LOW)) +#define IS_UNICAST_RANGE(x, c) (IS_UNICAST(x) && IS_UNICAST(x + c - 1)) #define IS_VIRTUAL(x) (((x) >= VIRTUAL_ADDRESS_LOW) && \ ((x) <= VIRTUAL_ADDRESS_HIGH)) #define IS_GROUP(x) ((((x) >= GROUP_ADDRESS_LOW) && \ |