WXK
2024-12-16 9201a33e45484b3247271759c91c158063baccac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*  Bluetooth Mesh */
 
/*
 * Copyright (c) 2017 Intel Corporation
 * Copyright (c) 2020 Lingao Meng
 *
 * SPDX-License-Identifier: Apache-2.0
 */
 
struct bt_mesh_rpl {
    uint64_t src:15,
         old_iv:1,
         seq:24,
         /** Sequence authentication value for the previous segmented
          *  message received from this address.
          *
          *  This value is used to manage the parallel RPL of the
          *  SeqAuth values in transport.
          */
         seg:24;
};
 
typedef void (*bt_mesh_rpl_func_t)(struct bt_mesh_rpl *rpl,
                    void *user_data);
 
void bt_mesh_rpl_reset(void);
bool bt_mesh_rpl_check(struct bt_mesh_net_rx *rx,
            struct bt_mesh_rpl **match);
void bt_mesh_rpl_clear(void);
void bt_mesh_rpl_update(struct bt_mesh_rpl *rpl,
            struct bt_mesh_net_rx *rx);
void bt_mesh_rpl_init(void);