summaryrefslogtreecommitdiff
path: root/mesh/net.h
diff options
context:
space:
mode:
authorBrian Gix <brian.gix@intel.com>2020-01-30 10:59:20 -0800
committerBrian Gix <brian.gix@intel.com>2020-01-30 11:03:47 -0800
commit243a46b6cac9e329b93df351936f5f65e6132e91 (patch)
tree133937aaa1b2a681142b54500989b901b59d2f3f /mesh/net.h
parent525d1ec340b23af19b0a3064180e54631c58d29e (diff)
downloadbluez-243a46b6cac9e329b93df351936f5f65e6132e91.tar.gz
mesh: Move Replay Protection to mesh/net.c
The specification calls for a flatter Replay Protection List that applies to all processed messages, regardless of which credentials were used to secure them. So storage and checking is now centralized in mesh/net.c
Diffstat (limited to 'mesh/net.h')
-rw-r--r--mesh/net.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesh/net.h b/mesh/net.h
index 023b61e71..ff0a9bb2b 100644
--- a/mesh/net.h
+++ b/mesh/net.h
@@ -379,3 +379,6 @@ void mesh_net_set_prov(struct mesh_net *net, struct mesh_prov *prov);
uint32_t mesh_net_get_instant(struct mesh_net *net);
struct l_queue *mesh_net_get_friends(struct mesh_net *net);
struct l_queue *mesh_net_get_negotiations(struct mesh_net *net);
+bool net_msg_in_replay_cache(struct mesh_net *net, uint16_t idx,
+ uint16_t src, uint16_t crpl, uint32_t seq,
+ uint32_t iv_index);