mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-03 00:54:20 +08:00
8457e6a3ad
Mesh specification requires that Replay Protection be preserved across node restarts. This adds that storage in <node_uuid>/rpl/<iv_index>/<src> Realtime access remains in an l_queue structure, and stored as messages are processed.
31 lines
1015 B
C
31 lines
1015 B
C
/*
|
|
*
|
|
* BlueZ - Bluetooth protocol stack for Linux
|
|
*
|
|
* Copyright (C) 2020 Intel Corporation. All rights reserved.
|
|
*
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
struct mesh_rpl {
|
|
uint32_t iv_index;
|
|
uint32_t seq;
|
|
uint16_t src;
|
|
};
|
|
|
|
bool rpl_put_entry(struct mesh_node *node, uint16_t src, uint32_t iv_index,
|
|
uint32_t seq);
|
|
void rpl_del_entry(struct mesh_node *node, uint16_t src);
|
|
bool rpl_get_list(struct mesh_node *node, struct l_queue *rpl_list);
|
|
void rpl_init(struct mesh_node *node, uint32_t iv_index);
|