Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

packet-btle.h
1 /* packet-btle.h
2 * Structures for determining the dissection context for BTLE.
3 *
4 * Copyright 2014, Christopher D. Kilgour, techie at whiterocker dot com
5 *
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
9 *
10 * SPDX-License-Identifier: GPL-2.0-or-later
11 */
12 #ifndef __PACKET_BTLE_H__
13 #define __PACKET_BTLE_H__
14
15 #include "packet-bluetooth.h"
16
17 /*
18 * These structures are meant to support the provision of contextual
19 * metadata to the BTLE dissector.
20 */
21 typedef struct {
22 guint64 InitA;
23 guint64 AdvA;
24 guint32 LinkAA;
25 guint32 CRCInit;
26 guint8 WinSize;
27 guint16 WinOffset;
28 guint16 Interval;
29 guint16 Latency;
30 guint16 Timeout;
31 guint64 ChM;
32 guint8 Hop;
33 guint8 SCA;
34 } btle_CONNECT_REQ_t;
35
36 typedef enum {
37 E_AA_NO_COMMENT = 0,
38 E_AA_MATCHED,
39 E_AA_BIT_ERRORS,
40 E_AA_ILLEGAL
41 } btle_AA_category_t;
42
43 #define BTLE_DIR_UNKNOWN 0
44 #define BTLE_DIR_MASTER_SLAVE 1
45 #define BTLE_DIR_SLAVE_MASTER 2
46
47 typedef struct {
48 btle_AA_category_t aa_category;
49 btle_CONNECT_REQ_t connection_info;
50 guint connection_info_valid: 1;
51 guint crc_checked_at_capture: 1;
52 guint crc_valid_at_capture: 1;
53 guint mic_checked_at_capture: 1;
54 guint mic_valid_at_capture: 1;
55 guint direction: 2; /* 0 Unknown, 1 Master -> Slave, 2 Slave -> Master */
56
57 union {
58 void *data;
59 bluetooth_data_t *bluetooth_data;
60 } previous_protocol_data;
61 } btle_context_t;
62
63 #endif /* __PACKET_BTLE_H__ */
64
65 /*
66 * Editor modelines - http://www.wireshark.org/tools/modelines.html
67 *
68 * Local variables:
69 * c-basic-offset: 4
70 * tab-width: 8
71 * indent-tabs-mode: nil
72 * End:
73 *
74 * vi: set shiftwidth=4 tabstop=8 expandtab:
75 * :indentSize=4:tabSize=8:noTabs=true:
76 */
_bluetooth_data_t
Definition: packet-bluetooth.h:94
btle_context_t
Definition: packet-btle.h:47
btle_CONNECT_REQ_t
Definition: packet-btle.h:21