| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
packet-qcdiag.h
1/* packet-qcdiag.h
2 * Dissector routines for Qualcomm DIAG packet handling
3 *
4 * (C) 2016-2017 by Harald Welte <laforge@gnumonks.org>
5 * (C) 2025 by Oliver Smith <osmith@sysmocom.de>
6 * (C) 2026 by Tamas Regos <regost@gmail.com>
7 *
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@wireshark.org>
10 * Copyright 1998 Gerald Combs
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 */
14
15#ifndef PACKET_QCDIAG_H
16#define PACKET_QCDIAG_H
17
18 typedef struct _qcdiag_data {
19 bool custom;
20} qcdiag_data_t;
21
22 extern value_string_ext *qcdiag_logcodes_ext;
23 extern nstime_t qcdiag_parse_timestamp(tvbuff_t *tvb, uint32_t offset);
24
25#define DIAG_VERNO_F 0
26#define DIAG_ESN_F 1
27#define DIAG_PEEKB_F 2
28#define DIAG_PEEKW_F 3
29#define DIAG_PEEKD_F 4
30#define DIAG_POKEB_F 5
31#define DIAG_POKEW_F 6
32#define DIAG_POKED_F 7
33#define DIAG_OUTP_F 8
34#define DIAG_OUTPW_F 9
35#define DIAG_INP_F 10
36#define DIAG_INPW_F 11
37#define DIAG_DMSS_STATUS_F 12
38#define DIAG_PEEK_VOCODER_F 13
39#define DIAG_POKE_VOCODER_F 14
40#define DIAG_LOGMASK_F 15
41#define DIAG_LOG_F 16
42#define DIAG_NV_PEEK_F 17
43#define DIAG_NV_POKE_F 18
44#define DIAG_BAD_CMD_F 19
45#define DIAG_BAD_PARM_F 20
46#define DIAG_BAD_LEN_F 21
47#define DIAG_BAD_DEVICE_F 22
48#define DIAG_BAD_VOC_F 23
49#define DIAG_BAD_MODE_F 24
50#define DIAG_TAGRAPH_F 25
51#define DIAG_MARKOV_F 26
52#define DIAG_MARKOV_RESET_F 27
53#define DIAG_DIAG_VER_F 28
54#define DIAG_TS_F 29
55#define DIAG_TA_PARM_F 30
56#define DIAG_MSG_F 31
57#define DIAG_HS_KEY_F 32
58#define DIAG_HS_LOCK_F 33
59#define DIAG_HS_SCREEN_F 34
60#define DIAG_PARM_RETRIEVE_F 35
61#define DIAG_PARM_SET_F 36
62#define DIAG_EXT_DEVICE_ID_F 37
63#define DIAG_NV_READ_F 38
64#define DIAG_NV_WRITE_F 39
65#define DIAG_CONFIG_TABLE_F 40
66#define DIAG_MODE_CHANGE_F 41
67#define DIAG_ERR_READ_F 42
68#define DIAG_ERR_CLEAR_F 43
69#define DIAG_SER_RESET_F 44
70#define DIAG_SER_REPORT_F 45
71#define DIAG_TEST_F 46
72#define DIAG_GET_DIPSW_F 47
73#define DIAG_SET_DIPSW_F 48
74#define DIAG_VOC_PCM_LB_F 49
75#define DIAG_VOC_PKT_LB_F 50
76/* Reserved 51 */
77/* Reserved 52 */
78#define DIAG_CALL_ORIG_F 53
79#define DIAG_CALL_END_F 54
80/* Reserved 55 */
81/* Reserved 56 */
82/* Reserved 57 */
83#define DIAG_DLOAD_F 58
84#define DIAG_TEST_MODE_F 59
85#define DIAG_SEND_PKT_SEQ_NUMS_F 60
86#define DIAG_CFG_SLEEP_MODE_F 61
87#define DIAG_GET_SYS_TIME_F 62
88#define DIAG_STATE_F 63
89#define DIAG_PILOT_SETS_F 64
90#define DIAG_SPC_F 65
91#define DIAG_BAD_SPC_MODE_F 66
92#define DIAG_PARM_GET2_F 67
93#define DIAG_SERIAL_CHG_F 68
94#define DIAG_GET_CDMA_RSSI_F 69
95#define DIAG_PASSWORD_F 70
96#define DIAG_BAD_SEC_MODE_F 71
97#define DIAG_PR_LIST_WR_F 72
98#define DIAG_PR_LIST_RD_F 73
99#define DIAG_READ_SMS_MESSAGE_F 74
100#define DIAG_SUBSYS_CMD_F 75
101#define DIAG_NV_WRITE_OFFLINE_F 76
102#define DIAG_GET_CALLER_ID_F 77
103#define DIAG_MODIFY_STATUS_MASK_F 78
104#define DIAG_AUDIO_CONTROL_F 79
105#define DIAG_AKEY_F 80
106#define DIAG_FEATURE_QUERY_F 81
107#define DIAG_EXT_DIAG_CMD_F 82
108#define DIAG_SMS_READ_F 83
109#define DIAG_SMS_WRITE_F 84
110#define DIAG_SUP_FER_F 85
111#define DIAG_SUP_WALSH_CODES_F 86
112#define DIAG_SET_MAX_SUP_CH_F 87
113#define DIAG_PARM_GET_IS95B_F 88
114#define DIAG_FS_OP_F 89
115#define DIAG_AKEY_VERIFY_F 90
116#define DIAG_BMP_HS_SCREEN_F 91
117#define DIAG_CONFIG_COMM_F 92
118#define DIAG_EXT_LOGMASK_F 93
119#define DIAG_RESERVED_94_F 94
120#define DIAG_RESERVED_95_F 95
121#define DIAG_EVENT_REPORT_F 96
122#define DIAG_STREAMING_CONFIG_F 97
123#define DIAG_EXT_PARM_RETRIEVAL_F 98
124#define DIAG_STATUS_SNAPSHOT_F 99
125#define DIAG_RPC_F 100
126#define DIAG_GET_PROPERTY_F 101
127#define DIAG_PUT_PROPERTY_F 102
128#define DIAG_GET_GUID_F 103
129#define DIAG_USER_CMD_F 104
130#define DIAG_GET_PERM_PROPERTY_F 105
131#define DIAG_PUT_PERM_PROPERTY_F 106
132#define DIAG_PERM_USER_CMD_F 107
133#define DIAG_GPS_SESS_CTRL_F 108
134#define DIAG_GPS_GRID_F 109
135#define DIAG_GPS_STATISTICS_F 110
136#define DIAG_ROUTE_F 111
137#define DIAG_IS2000_STATUS_F 112
138#define DIAG_RLP_STAT_RESET_F 113
139#define DIAG_TDSO_STAT_RESET_F 114
140#define DIAG_LOG_CONFIG_F 115
141#define DIAG_TRACE_EVENT_REPORT_F 116
142#define DIAG_SBI_READ_F 117
143#define DIAG_SBI_WRITE_F 118
144#define DIAG_SSD_VERIFY_F 119
145#define DIAG_LOG_ON_DEMAND_F 120
146#define DIAG_EXT_MSG_F 121
147#define DIAG_ONCRPC_F 122
148#define DIAG_PROTOCOL_LOOPBACK_F 123
149#define DIAG_EXT_BUILD_ID_F 124
150#define DIAG_EXT_MSG_CONFIG_F 125
151#define DIAG_EXT_MSG_TERSE_F 126
152#define DIAG_EXT_MSG_TERSE_XLATE_F 127
153#define DIAG_SUBSYS_CMD_VER_2_F 128
154#define DIAG_EVENT_MASK_GET_F 129
155#define DIAG_EVENT_MASK_SET_F 130
156#define DIAG_RESERVED_131_F 131
157#define DIAG_RESERVED_132_F 132
158#define DIAG_RESERVED_133_F 133
159#define DIAG_RESERVED_134_F 134
160#define DIAG_RESERVED_135_F 135
161#define DIAG_RESERVED_136_F 136
162#define DIAG_RESERVED_137_F 137
163#define DIAG_RESERVED_138_F 138
164#define DIAG_RESERVED_139_F 139
165#define DIAG_CHANGE_PORT_SETTINGS 140
166#define DIAG_CNTRY_INFO_F 141
167#define DIAG_SUPS_REQ_F 142
168#define DIAG_MMS_ORIG_SMS_REQUEST_F 143
169#define DIAG_MEAS_MODE_F 144
170#define DIAG_MEAS_REQ_F 145
171#define DIAG_QSR_EXT_MSG_TERSE_F 146
172#define DIAG_DCI_CMD_REQ 147
173#define DIAG_DCI_DELAYED_RSP 148
174#define DIAG_BAD_TRANS_F 149
175#define DIAG_SSM_DISALLOWED_CMD_F 150
176#define DIAG_LOG_ON_DEMAND_EXT_F 151
177#define DIAG_MULTI_RADIO_CMD_F 152
178#define DIAG_QSR4_EXT_MSG_TERSE_F 153
179#define DIAG_DCI_CONTROL_F 154
180#define DIAG_COMPRESSED_F 155
181#define DIAG_MSG_SMALL_F 156
182#define DIAG_QSH_TRACE_PAYLOAD_F 157
183#define DIAG_SECURE_LOG_F 158
184
185#define DIAG_MAX_F 255
186
187 typedef enum {
188 DIAG_SUBSYS_OEM = 0,
189 DIAG_SUBSYS_ZREX = 1,
190 DIAG_SUBSYS_SD = 2,
191 DIAG_SUBSYS_BT = 3,
192 DIAG_SUBSYS_WCDMA = 4,
193 DIAG_SUBSYS_HDR = 5,
194 DIAG_SUBSYS_DIABLO = 6,
195 DIAG_SUBSYS_TREX = 7,
196 DIAG_SUBSYS_GSM = 8,
197 DIAG_SUBSYS_UMTS = 9,
198 DIAG_SUBSYS_HWTC = 10,
199 DIAG_SUBSYS_FTM = 11,
200 DIAG_SUBSYS_REX = 12,
201 DIAG_SUBSYS_OS = DIAG_SUBSYS_REX,
202 DIAG_SUBSYS_GPS = 13,
203 DIAG_SUBSYS_WMS = 14,
204 DIAG_SUBSYS_CM = 15,
205 DIAG_SUBSYS_HS = 16,
206 DIAG_SUBSYS_AUDIO_SETTINGS = 17,
207 DIAG_SUBSYS_DIAG_SERV = 18,
208 DIAG_SUBSYS_FS = 19,
209 DIAG_SUBSYS_PORT_MAP_SETTINGS = 20,
210 DIAG_SUBSYS_MEDIAPLAYER = 21,
211 DIAG_SUBSYS_QCAMERA = 22,
212 DIAG_SUBSYS_MOBIMON = 23,
213 DIAG_SUBSYS_GUNIMON = 24,
214 DIAG_SUBSYS_LSM = 25,
215 DIAG_SUBSYS_QCAMCORDER = 26,
216 DIAG_SUBSYS_MUX1X = 27,
217 DIAG_SUBSYS_DATA1X = 28,
218 DIAG_SUBSYS_SRCH1X = 29,
219 DIAG_SUBSYS_CALLP1X = 30,
220 DIAG_SUBSYS_APPS = 31,
221 DIAG_SUBSYS_SETTINGS = 32,
222 DIAG_SUBSYS_GSDI = 33,
223 DIAG_SUBSYS_UIMDIAG = DIAG_SUBSYS_GSDI,
224 DIAG_SUBSYS_TMC = 34,
225 DIAG_SUBSYS_USB = 35,
226 DIAG_SUBSYS_PM = 36,
227 DIAG_SUBSYS_DEBUG = 37,
228 DIAG_SUBSYS_QTV = 38,
229 DIAG_SUBSYS_CLKRGM = 39,
230 DIAG_SUBSYS_DEVICES = 40,
231 DIAG_SUBSYS_WLAN = 41,
232 DIAG_SUBSYS_PS_DATA_LOGGING = 42,
233 DIAG_SUBSYS_PS = DIAG_SUBSYS_PS_DATA_LOGGING,
234 DIAG_SUBSYS_MFLO = 43,
235 DIAG_SUBSYS_DTV = 44,
236 DIAG_SUBSYS_RRC = 45,
237 DIAG_SUBSYS_PROF = 46,
238 DIAG_SUBSYS_TCXOMGR = 47,
239 DIAG_SUBSYS_NV = 48,
240 DIAG_SUBSYS_AUTOCONFIG = 49,
241 DIAG_SUBSYS_PARAMS = 50,
242 DIAG_SUBSYS_MDDI = 51,
243 DIAG_SUBSYS_DS_ATCOP = 52,
244 DIAG_SUBSYS_L4LINUX = 53,
245 DIAG_SUBSYS_MVS = 54,
246 DIAG_SUBSYS_CNV = 55,
247 DIAG_SUBSYS_APIONE_PROGRAM = 56,
248 DIAG_SUBSYS_HIT = 57,
249 DIAG_SUBSYS_DRM = 58,
250 DIAG_SUBSYS_DM = 59,
251 DIAG_SUBSYS_FC = 60,
252 DIAG_SUBSYS_MEMORY = 61,
253 DIAG_SUBSYS_FS_ALTERNATE = 62,
254 DIAG_SUBSYS_REGRESSION = 63,
255 DIAG_SUBSYS_SENSORS = 64,
256 DIAG_SUBSYS_FLUTE = 65,
257 DIAG_SUBSYS_ANALOG = 66,
258 DIAG_SUBSYS_APIONE_PROGRAM_MODEM = 67,
259 DIAG_SUBSYS_LTE = 68,
260 DIAG_SUBSYS_BREW = 69,
261 DIAG_SUBSYS_PWRDB = 70,
262 DIAG_SUBSYS_CHORD = 71,
263 DIAG_SUBSYS_SEC = 72,
264 DIAG_SUBSYS_TIME = 73,
265 DIAG_SUBSYS_Q6_CORE = 74,
266 DIAG_SUBSYS_COREBSP = 75,
267 DIAG_SUBSYS_MFLO2 = 76,
268 DIAG_SUBSYS_ULOG = 77,
269 DIAG_SUBSYS_APR = 78,
270 DIAG_SUBSYS_QNP = 79,
271 DIAG_SUBSYS_STRIDE = 80,
272 DIAG_SUBSYS_OEMDPP = 81,
273 DIAG_SUBSYS_Q5_CORE = 82,
274 DIAG_SUBSYS_USCRIPT = 83,
275 DIAG_SUBSYS_NAS = 84,
276 DIAG_SUBSYS_CMAPI = 85,
277 DIAG_SUBSYS_SSM = 86,
278 DIAG_SUBSYS_TDSCDMA = 87,
279 DIAG_SUBSYS_SSM_TEST = 88,
280 DIAG_SUBSYS_MPOWER = 89,
281 DIAG_SUBSYS_QDSS = 90,
282 DIAG_SUBSYS_CXM = 91,
283 DIAG_SUBSYS_GNSS_SOC = 92,
284 DIAG_SUBSYS_TTLITE = 93,
285 DIAG_SUBSYS_FTM_ANT = 94,
286 DIAG_SUBSYS_MLOG = 95,
287 DIAG_SUBSYS_LIMITSMGR = 96,
288 DIAG_SUBSYS_EFSMONITOR = 97,
289 DIAG_SUBSYS_DISPLAY_CALIBRATION = 98,
290 DIAG_SUBSYS_VERSION_REPORT = 99,
291 DIAG_SUBSYS_DS_IPA = 100,
292 DIAG_SUBSYS_SYSTEM_OPERATIONS = 101,
293 DIAG_SUBSYS_CNSS_POWER = 102,
294 DIAG_SUBSYS_LWIP = 103,
295 DIAG_SUBSYS_IMS_QVP_RTP = 104,
296 DIAG_SUBSYS_STORAGE = 105,
297 DIAG_SUBSYS_WCI2 = 106,
298 DIAG_SUBSYS_AOSTLM_TEST = 107,
299 DIAG_SUBSYS_LAST,
300
301 /* Subsystem IDs reserved for OEM use */
302 DIAG_SUBSYS_RESERVED_OEM_0 = 250,
303 DIAG_SUBSYS_RESERVED_OEM_1 = 251,
304 DIAG_SUBSYS_RESERVED_OEM_2 = 252,
305 DIAG_SUBSYS_RESERVED_OEM_3 = 253,
306 DIAG_SUBSYS_RESERVED_OEM_4 = 254,
307 DIAG_SUBSYS_LEGACY = 255
308} qcdiag_subsys_cmd_t;
309
310 typedef enum {
311 WCDMA_VERSION = 0x0000, /* Version */
312 WCDMA_ADDITIONAL_STATUS = 0x000f, /* Additional Status */
313} qcdiag_subsys_wcdma_t;
314
315 typedef enum {
316 GSM_VERSION = 0x0000, /* Version */
317 GSM_STATUS = 0x0001, /* Status */
318} qcdiag_subsys_gsm_t;
319
320 typedef enum {
321 UMTS_VERSION = 0x0000, /* Version */
322} qcdiag_subsys_umts_t;
323
324 typedef enum {
325 CM_STATE_INFO = 0x0000, /* State Info */
326 CM_STATE_INFO_CUR_SUB = 0x0018, /* State Info Of Current Subscription */
327 CM_MULTI_SIM_STATE_INFO = 0x002c, /* MultiSim State Info */
328 CM_GET_PH_INFO = 0x0030, /* Get Phone Info */
329} qcdiag_subsys_cm_t;
330
331 typedef enum {
332 PARAMS_EXT_MOBILE_ID = 0x0006, /* Ext Mobile Id */
333} qcdiag_subsys_params_t;
334
335#endif /* PACKET_QCDIAG_H */
_qcdiag_data
Definition packet-qcdiag.h:18
nstime_t
Definition nstime.h:26