diff options
author | Piotr Winiarczyk <wino45@gmail.com> | 2019-03-09 10:05:00 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-03-12 11:36:18 +0000 |
commit | e3ae91e4c63c27de08e4a4d9d08c3b118a45ae7e (patch) | |
tree | d81f37e96e25c6454ad8c7f085bec50132903a42 /epan/dissectors/packet-btmesh.h | |
parent | 487f1c8c9874a962b57ee677b6f1fad28bc4fd7a (diff) |
btmesh: Adding support Proxy Protocol control messages
Added support for Bluetooth Mesh Proxy protocol control messages
Refactoring and fixing Bluetooth Mesh network decryption so it can be
reused to decrypt proxy control messages
Link to Bluetooth Mesh Profile specification
https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=457092
Bug: 15583
Change-Id: I04ca16dc91ce43d27416ee2eb18ac81ef4aef1c6
Reviewed-on: https://code.wireshark.org/review/32368
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-btmesh.h')
-rw-r--r-- | epan/dissectors/packet-btmesh.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/dissectors/packet-btmesh.h b/epan/dissectors/packet-btmesh.h index 3ab19da1aa..7b02221a92 100644 --- a/epan/dissectors/packet-btmesh.h +++ b/epan/dissectors/packet-btmesh.h @@ -12,6 +12,11 @@ #ifndef __PACKET_BTMESH_H__ #define __PACKET_BTMESH_H__ +#include <epan/packet.h> + +#define MESH_NONCE_TYPE_NETWORK 0x00 +#define MESH_NONCE_TYPE_PROXY 0x03 + typedef enum { E_BTMESH_TR_UNKNOWN = 0, E_BTMESH_TR_ADV, @@ -41,6 +46,8 @@ typedef struct { btle_mesh_proxy_side_t proxy_side; } btle_mesh_proxy_ctx_t; +tvbuff_t *btmesh_network_find_key_and_decrypt(tvbuff_t *tvb, packet_info *pinfo, guint8 **decrypted_data, int *enc_data_len, guint8 nonce_type); + #endif /* __PACKET_BTMESH_H__ */ /* |