Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
packet-bthci_cmd.h
1 /* packet-bthci_cmd.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9 
10 #ifndef __PACKET_BTHCI_CMD_H__
11 #define __PACKET_BTHCI_CMD_H__
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif /* __cplusplus */
16 
17 extern value_string_ext bthci_cmd_opcode_vals_ext;
18 extern value_string_ext bthci_cmd_ogf_vals_ext;
19 extern value_string_ext bthci_cmd_ocf_link_control_vals_ext;
20 extern value_string_ext bthci_cmd_ocf_link_policy_vals_ext;
21 extern value_string_ext bthci_cmd_ocf_host_controller_and_baseband_vals_ext;
22 extern value_string_ext bthci_cmd_ocf_informational_vals_ext;
23 extern value_string_ext bthci_cmd_ocf_status_vals_ext;
24 extern value_string_ext bthci_cmd_ocf_testing_vals_ext;
25 extern value_string_ext bthci_cmd_ocf_low_energy_vals_ext;
26 
27 extern value_string_ext bthci_cmd_input_coding_vals_ext;
28 extern value_string_ext bthci_cmd_input_data_format_vals_ext;
29 extern value_string_ext bthci_cmd_input_sample_size_vals_ext;
30 extern value_string_ext bthci_cmd_air_coding_format_vals_ext;
31 extern value_string_ext bthci_cmd_status_vals_ext;
32 extern value_string_ext bthci_cmd_eir_data_type_vals_ext;
33 extern value_string_ext bthci_cmd_auth_req_vals_ext;
34 extern value_string_ext bthci_cmd_appearance_vals_ext;
35 extern value_string_ext bthci_cmd_le_phy_vals_ext;
36 
37 extern const value_string bthci_cmd_io_capability_vals[];
38 extern const value_string bthci_cmd_oob_data_present_vals[];
39 extern const value_string bthci_cmd_address_types_vals[];
40 WS_DLL_PUBLIC const value_string bthci_cmd_scan_enable_values[];
41 extern const value_string bthci_cmd_page_scan_modes[];
42 extern const value_string bthci_cmd_page_scan_repetition_modes[];
43 extern const value_string bthci_cmd_page_scan_period_modes[];
44 extern const value_string bthci_cmd_notification_types[];
45 
46 WS_DLL_PUBLIC const value_string bthci_cmd_encrypt_mode_vals[];
47 WS_DLL_PUBLIC const value_string bthci_cmd_authentication_enable_values[];
48 WS_DLL_PUBLIC const value_string bthci_cmd_inq_modes[];
49 
50 
51 typedef struct _bthci_cmd_data_t {
52  guint32 opcode;
53 
54  guint32 command_in_frame;
55  nstime_t command_abs_ts;
56  guint32 pending_in_frame;
57  nstime_t pending_abs_ts;
58  guint32 response_in_frame;
59  nstime_t response_abs_ts;
60 
61  union {
62  gchar *name;
63  guint8 scan;
64  guint16 page_timeout;
65  guint8 authentication;
66  guint8 encryption;
67  guint32 class_of_device;
68  guint16 voice_setting;
69  guint8 simple_pairing_mode;
70  guint8 inquiry_mode;
71  struct {
72  guint16 acl_mtu;
73  guint8 sco_mtu;
74  guint16 acl_packets;
75  guint16 sco_packets;
76  } mtus;
77  } data;
79 
80 extern wmem_tree_t *bthci_cmds;
81 
82 #ifdef __cplusplus
83 }
84 #endif /* __cplusplus */
85 
86 #endif
87 
88 /*
89  * Editor modelines - http://www.wireshark.org/tools/modelines.html
90  *
91  * Local variables:
92  * c-basic-offset: 4
93  * tab-width: 8
94  * indent-tabs-mode: nil
95  * End:
96  *
97  * vi: set shiftwidth=4 tabstop=8 expandtab:
98  * :indentSize=4:tabSize=8:noTabs=true:
99  */
Definition: wmem_tree-int.h:47
Definition: nstime.h:27
Definition: packet-bthci_cmd.h:51
Definition: value_string.h:24
Definition: value_string.h:164