Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / packet-diameter_3gpp.c
blob3966f4cd9eb8a56d008a3767d3f0b3ad89e7cc71
1 /* packet-diameter_3gpp.c
2 * Routines for dissecting 3GPP OctetSting AVP:s
3 * Copyright 2008, Anders Broman <anders.broman[at]ericsson.com>
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 /* This dissector registers a dissector table for 3GPP Vendor specific
13 * AVP:s which will be called from the Diameter dissector to dissect
14 * the content of AVP:s of the OctetString type(or similar).
17 #include "config.h"
19 #include <epan/packet.h>
20 #include <epan/expert.h>
21 #include <epan/asn1.h>
22 #include <epan/tfs.h>
24 #include "packet-diameter.h"
25 #include "packet-diameter_3gpp.h"
26 #include "packet-gsm_a_common.h"
27 #include "packet-gtpv2.h"
28 #include "packet-e164.h"
29 #include "packet-e212.h"
30 #include "packet-s1ap.h"
31 #include "packet-sip.h"
32 #include "packet-lcsap.h"
34 void proto_register_diameter_3gpp(void);
35 void proto_reg_handoff_diameter_3gpp(void);
37 static expert_field ei_diameter_3gpp_plmn_id_wrong_len;
39 /* Initialize the protocol and registered fields */
40 static int proto_diameter_3gpp;
42 static int hf_diameter_3gpp_timezone;
43 static int hf_diameter_3gpp_timezone_adjustment;
44 static int hf_diameter_3gpp_rat_type;
45 static int hf_diameter_3gpp_path;
46 static int hf_diameter_3gpp_contact;
47 /* static int hf_diameter_3gpp_user_data; */
48 static int hf_diameter_3gpp_ipaddr;
49 static int hf_diameter_3gpp_mbms_required_qos_prio;
50 static int hf_diameter_3gpp_tmgi;
51 static int hf_diameter_3gpp_req_nodes;
52 static int hf_diameter_3gpp_req_nodes_bit0;
53 static int hf_diameter_3gpp_req_nodes_bit1;
54 static int hf_diameter_3gpp_req_nodes_bit2;
55 static int hf_diameter_3gpp_req_nodes_bit3;
56 static int hf_diameter_mbms_service_id;
57 static int hf_diameter_3gpp_spare_bits;
58 static int hf_diameter_3gpp_uar_flags_flags;
59 static int hf_diameter_3gpp_uar_flags_flags_bit0;
60 static int hf_diameter_3gpp_feature_list_flags;
61 static int hf_diameter_3gpp_cx_feature_list_flags;
62 static int hf_diameter_3gpp_cx_feature_list_1_flags_bit0;
63 static int hf_diameter_3gpp_cx_feature_list_1_flags_bit1;
64 static int hf_diameter_3gpp_cx_feature_list_1_flags_bit2;
65 static int hf_diameter_3gpp_cx_feature_list_1_flags_bit3;
66 static int hf_diameter_3gpp_cx_feature_list_1_flags_spare_bits;
67 static int hf_diameter_3gpp_feature_list1_sh_flags_bit0;
68 static int hf_diameter_3gpp_feature_list1_sh_flags_bit1;
69 static int hf_diameter_3gpp_feature_list1_sh_flags_bit2;
70 static int hf_diameter_3gpp_feature_list1_sh_flags_bit3;
71 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit0;
72 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit1;
73 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit2;
74 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit3;
75 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit4;
76 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit5;
77 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit6;
78 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit7;
79 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit8;
80 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit9;
81 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit10;
82 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit11;
83 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit12;
84 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit13;
85 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit14;
86 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit15;
87 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit16;
88 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit17;
89 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit18;
90 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit19;
91 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit20;
92 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit21;
93 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit22;
94 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit23;
95 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit24;
96 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit25;
97 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit26;
98 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit27;
99 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit28;
100 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit29;
101 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit30;
102 static int hf_diameter_3gpp_feature_list1_s6a_flags_bit31;
103 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit0;
104 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit1;
105 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit2;
106 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit3;
107 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit4;
108 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit5;
109 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit6;
110 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit7;
111 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit8;
112 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit9;
113 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit10;
114 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit11;
115 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit12;
116 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit13;
117 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit14;
118 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit15;
119 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit16;
120 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit17;
121 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit18;
122 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit19;
123 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit20;
124 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit21;
125 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit22;
126 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit23;
127 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit24;
128 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit25;
129 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit26;
130 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit27;
131 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit28;
132 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit29;
133 static int hf_diameter_3gpp_feature_list2_s6a_flags_bit30;
134 static int hf_diameter_3gpp_feature_list_gx_flags;
135 static int hf_diameter_3gpp_feature_list1_gx_flags_bit0;
136 static int hf_diameter_3gpp_feature_list1_gx_flags_bit1;
137 static int hf_diameter_3gpp_feature_list1_gx_flags_bit2;
138 static int hf_diameter_3gpp_feature_list1_gx_flags_bit3;
139 static int hf_diameter_3gpp_feature_list1_gx_flags_bit4;
140 static int hf_diameter_3gpp_feature_list1_gx_flags_bit5;
141 static int hf_diameter_3gpp_feature_list1_gx_flags_bit6;
142 static int hf_diameter_3gpp_feature_list1_gx_flags_bit7;
143 static int hf_diameter_3gpp_feature_list1_gx_flags_bit8;
144 static int hf_diameter_3gpp_feature_list1_gx_flags_bit9;
145 static int hf_diameter_3gpp_feature_list1_gx_flags_bit10;
146 static int hf_diameter_3gpp_feature_list1_gx_flags_bit11;
147 static int hf_diameter_3gpp_feature_list1_gx_flags_bit12;
148 static int hf_diameter_3gpp_feature_list1_gx_flags_bit13;
149 static int hf_diameter_3gpp_feature_list1_gx_flags_bit14;
150 static int hf_diameter_3gpp_feature_list1_gx_flags_bit15;
151 static int hf_diameter_3gpp_feature_list1_gx_flags_bit16;
152 static int hf_diameter_3gpp_feature_list1_gx_flags_bit17;
153 static int hf_diameter_3gpp_feature_list1_gx_flags_bit18;
154 static int hf_diameter_3gpp_feature_list1_gx_flags_bit19;
155 static int hf_diameter_3gpp_feature_list1_gx_flags_bit20;
156 static int hf_diameter_3gpp_feature_list1_gx_flags_bit21;
157 static int hf_diameter_3gpp_feature_list1_gx_flags_bit22;
158 static int hf_diameter_3gpp_feature_list1_gx_flags_bit23;
159 static int hf_diameter_3gpp_feature_list1_gx_flags_bit24;
160 static int hf_diameter_3gpp_feature_list1_gx_flags_bit25;
161 static int hf_diameter_3gpp_feature_list1_gx_flags_bit26;
162 static int hf_diameter_3gpp_feature_list1_gx_flags_bit27;
163 static int hf_diameter_3gpp_feature_list1_gx_flags_bit28;
164 static int hf_diameter_3gpp_feature_list1_gx_flags_bit29;
165 static int hf_diameter_3gpp_feature_list1_gx_flags_bit30;
166 static int hf_diameter_3gpp_feature_list1_gx_flags_bit31;
167 static int hf_diameter_3gpp_feature_list2_gx_flags_bit0;
168 static int hf_diameter_3gpp_feature_list2_gx_flags_bit1;
169 static int hf_diameter_3gpp_feature_list2_gx_flags_bit2;
170 static int hf_diameter_3gpp_feature_list2_gx_flags_bit3;
171 static int hf_diameter_3gpp_feature_list2_gx_flags_bit4;
172 static int hf_diameter_3gpp_feature_list2_gx_flags_bit5;
173 static int hf_diameter_3gpp_feature_list2_gx_flags_bit6;
174 static int hf_diameter_3gpp_feature_list2_gx_flags_bit7;
175 static int hf_diameter_3gpp_feature_list_sd_flags;
176 static int hf_diameter_3gpp_feature_list_sd_flags_bit0;
177 static int hf_diameter_3gpp_feature_list_sd_flags_bit1;
178 static int hf_diameter_3gpp_feature_list_sd_flags_bit2;
179 static int hf_diameter_3gpp_feature_list_sd_flags_bit3;
180 static int hf_diameter_3gpp_feature_list_sd_flags_bit4;
181 static int hf_diameter_3gpp_feature_list_sd_flags_bit5;
182 static int hf_diameter_3gpp_feature_list_sd_flags_bit6;
183 static int hf_diameter_3gpp_feature_list_sd_flags_bit7;
184 static int hf_diameter_3gpp_feature_list_sd_flags_bit8;
185 static int hf_diameter_3gpp_feature_list_sd_flags_bit9;
186 static int hf_diameter_3gpp_feature_list_sd_flags_bit10;
187 static int hf_diameter_3gpp_feature_list_sd_flags_spare_bits;
188 static int hf_diameter_3gpp_cms_no_gyn_session_serv_not_allowed;
189 static int hf_diameter_3gpp_cms_no_gyn_session_serv_allowed;
190 static int hf_diameter_3gpp_cms_rating_failed;
191 static int hf_diameter_3gpp_cms_user_unknown;
192 static int hf_diameter_3gpp_cms_auth_rej;
193 static int hf_diameter_3gpp_cms_credit_ctrl_not_applicable;
194 static int hf_diameter_3gpp_cms_end_user_serv_status;
195 static int hf_diameter_3gpp_qos_subscribed;
196 static int hf_diameter_3gpp_qos_reliability_cls;
197 static int hf_diameter_3gpp_qos_prec_class;
198 static int hf_diameter_3gpp_qos_delay_cls;
199 static int hf_diameter_3gpp_qos_peak_thr;
200 static int hf_diameter_3gpp_qos_mean_thr;
201 static int hf_diameter_3gpp_qos_al_ret_priority;
202 static int hf_diameter_3gpp_qos_del_of_err_sdu;
203 static int hf_diameter_3gpp_qos_del_order;
204 static int hf_diameter_3gpp_qos_traffic_cls;
205 static int hf_diameter_3gpp_qos_maximum_sdu_size;
206 static int hf_diameter_3gpp_qos_max_bitrate_upl;
207 static int hf_diameter_3gpp_qos_max_bitrate_downl;
208 static int hf_diameter_3gpp_qos_sdu_err_rat;
209 static int hf_diameter_3gpp_qos_ber;
210 static int hf_diameter_3gpp_qos_traff_hdl_pri;
211 static int hf_diameter_3gpp_qos_trans_delay;
212 static int hf_diameter_3gpp_qos_guar_bitrate_upl;
213 static int hf_diameter_3gpp_qos_guar_bitrate_downl;
214 static int hf_diameter_3gpp_qos_source_stat_desc;
215 static int hf_diameter_3gpp_qos_signalling_ind;
216 static int hf_diameter_3gpp_qos_max_bitrate_downl_ext;
217 static int hf_diameter_3gpp_qos_guar_bitrate_downl_ext;
218 static int hf_diameter_3gpp_qos_max_bitrate_upl_ext;
219 static int hf_diameter_3gpp_qos_guar_bitrate_upl_ext;
220 static int hf_diameter_3gpp_qos_pre_emption_vulnerability;
221 static int hf_diameter_3gpp_qos_priority_level;
222 static int hf_diameter_3gpp_qos_pre_emption_capability;
223 static int hf_diameter_3gpp_ulr_flags;
224 static int hf_diameter_3gpp_ulr_flags_bit0;
225 static int hf_diameter_3gpp_ulr_flags_bit1;
226 static int hf_diameter_3gpp_ulr_flags_bit2;
227 static int hf_diameter_3gpp_ulr_flags_bit3;
228 static int hf_diameter_3gpp_ulr_flags_bit4;
229 static int hf_diameter_3gpp_ulr_flags_bit5;
230 static int hf_diameter_3gpp_ulr_flags_bit6;
231 static int hf_diameter_3gpp_ulr_flags_bit7;
232 static int hf_diameter_3gpp_ulr_flags_bit8;
233 static int hf_diameter_3gpp_ula_flags;
234 static int hf_diameter_3gpp_ula_flags_bit0;
235 static int hf_diameter_3gpp_ula_flags_bit1;
236 static int hf_diameter_3gpp_dsr_flags;
237 static int hf_diameter_3gpp_dsr_flags_bit0;
238 static int hf_diameter_3gpp_dsr_flags_bit1;
239 static int hf_diameter_3gpp_dsr_flags_bit2;
240 static int hf_diameter_3gpp_dsr_flags_bit3;
241 static int hf_diameter_3gpp_dsr_flags_bit4;
242 static int hf_diameter_3gpp_dsr_flags_bit5;
243 static int hf_diameter_3gpp_dsr_flags_bit6;
244 static int hf_diameter_3gpp_dsr_flags_bit7;
245 static int hf_diameter_3gpp_dsr_flags_bit8;
246 static int hf_diameter_3gpp_dsr_flags_bit9;
247 static int hf_diameter_3gpp_dsr_flags_bit10;
248 static int hf_diameter_3gpp_dsr_flags_bit11;
249 static int hf_diameter_3gpp_dsr_flags_bit12;
250 static int hf_diameter_3gpp_dsr_flags_bit13;
251 static int hf_diameter_3gpp_dsr_flags_bit14;
252 static int hf_diameter_3gpp_dsr_flags_bit15;
253 static int hf_diameter_3gpp_dsr_flags_bit16;
254 static int hf_diameter_3gpp_dsr_flags_bit17;
255 static int hf_diameter_3gpp_dsr_flags_bit18;
256 static int hf_diameter_3gpp_dsr_flags_bit19;
257 static int hf_diameter_3gpp_dsr_flags_bit20;
258 static int hf_diameter_3gpp_dsr_flags_bit21;
259 static int hf_diameter_3gpp_dsr_flags_bit22;
260 static int hf_diameter_3gpp_dsr_flags_bit23;
261 static int hf_diameter_3gpp_dsr_flags_bit24;
262 static int hf_diameter_3gpp_dsr_flags_bit25;
263 static int hf_diameter_3gpp_dsr_flags_bit26;
264 static int hf_diameter_3gpp_dsr_flags_bit27;
265 static int hf_diameter_3gpp_dsr_flags_bit28;
266 static int hf_diameter_3gpp_dsr_flags_bit29;
267 static int hf_diameter_3gpp_dsr_flags_bit30;
268 static int hf_diameter_3gpp_dsr_flags_bit31;
269 static int hf_diameter_3gpp_dsa_flags;
270 static int hf_diameter_3gpp_dsa_flags_bit0;
271 static int hf_diameter_3gpp_ida_flags;
272 static int hf_diameter_3gpp_ida_flags_bit0;
273 static int hf_diameter_3gpp_pua_flags;
274 static int hf_diameter_3gpp_pua_flags_bit0;
275 static int hf_diameter_3gpp_pua_flags_bit1;
276 static int hf_diameter_3gpp_nor_flags;
277 static int hf_diameter_3gpp_nor_flags_bit0;
278 static int hf_diameter_3gpp_nor_flags_bit1;
279 static int hf_diameter_3gpp_nor_flags_bit2;
280 static int hf_diameter_3gpp_nor_flags_bit3;
281 static int hf_diameter_3gpp_nor_flags_bit4;
282 static int hf_diameter_3gpp_nor_flags_bit5;
283 static int hf_diameter_3gpp_nor_flags_bit6;
284 static int hf_diameter_3gpp_nor_flags_bit7;
285 static int hf_diameter_3gpp_nor_flags_bit8;
286 static int hf_diameter_3gpp_nor_flags_bit9;
287 static int hf_diameter_3gpp_idr_flags;
288 static int hf_diameter_3gpp_idr_flags_bit0;
289 static int hf_diameter_3gpp_idr_flags_bit1;
290 static int hf_diameter_3gpp_idr_flags_bit2;
291 static int hf_diameter_3gpp_idr_flags_bit3;
292 static int hf_diameter_3gpp_idr_flags_bit4;
293 static int hf_diameter_3gpp_idr_flags_bit5;
294 static int hf_diameter_3gpp_idr_flags_bit6;
295 static int hf_diameter_3gpp_idr_flags_bit7;
296 static int hf_diameter_3gpp_idr_flags_bit8;
297 static int hf_diameter_3gpp_ppr_flags;
298 static int hf_diameter_3gpp_ppr_flags_bit0;
299 static int hf_diameter_3gpp_ppr_flags_bit1;
300 static int hf_diameter_3gpp_ppr_flags_bit2;
301 static int hf_diameter_3gpp_ppr_flags_bit3;
302 static int hf_diameter_3gpp_aaa_fail_flags;
303 static int hf_diameter_3gpp_aaa_fail_flags_bit0;
304 static int hf_diameter_3gpp_der_flags;
305 static int hf_diameter_3gpp_der_flags_bit0;
306 static int hf_diameter_3gpp_der_flags_bit1;
307 static int hf_diameter_3gpp_dea_flags;
308 static int hf_diameter_3gpp_dea_flags_bit0;
309 static int hf_diameter_3gpp_dea_flags_bit1;
310 static int hf_diameter_3gpp_rar_flags;
311 static int hf_diameter_3gpp_rar_flags_bit0;
312 static int hf_diameter_3gpp_rar_flags_bit1;
313 static int hf_diameter_3gpp_der_s6b_flags;
314 static int hf_diameter_3gpp_der_s6b_flags_bit0;
315 static int hf_diameter_3gpp_ipv6addr;
316 static int hf_diameter_3gpp_mbms_abs_time_ofmbms_data_tfer;
317 static int hf_diameter_3gpp_udp_port;
318 static int hf_diameter_3gpp_codec_data_dir;
319 static int hf_diameter_3gpp_codec_sdp_type;
320 static int hf_diameter_3gpp_af_requested_data_flags;
321 static int hf_diameter_3gpp_af_requested_data_flags_bit0;
322 static int hf_diameter_3gpp_mbms_bearer_event;
323 static int hf_diameter_3gpp_mbms_bearer_event_bit0;
324 static int hf_diameter_3gpp_mbms_bearer_event_bit1;
325 static int hf_diameter_3gpp_mbms_bearer_event_bit2;
326 static int hf_diameter_3gpp_mbms_bearer_result;
327 static int hf_diameter_3gpp_mbms_bearer_result_bit0;
328 static int hf_diameter_3gpp_mbms_bearer_result_bit1;
329 static int hf_diameter_3gpp_mbms_bearer_result_bit2;
330 static int hf_diameter_3gpp_mbms_bearer_result_bit3;
331 static int hf_diameter_3gpp_mbms_bearer_result_bit4;
332 static int hf_diameter_3gpp_mbms_bearer_result_bit5;
333 static int hf_diameter_3gpp_mbms_bearer_result_bit6;
334 static int hf_diameter_3gpp_mbms_bearer_result_bit7;
335 static int hf_diameter_3gpp_mbms_bearer_result_bit8;
336 static int hf_diameter_3gpp_mbms_bearer_result_bit9;
337 static int hf_diameter_3gpp_mbms_bearer_result_bit10;
338 static int hf_diameter_3gpp_mbms_bearer_result_bit11;
339 static int hf_diameter_3gpp_tmgi_allocation_result;
340 static int hf_diameter_3gpp_tmgi_allocation_result_bit0;
341 static int hf_diameter_3gpp_tmgi_allocation_result_bit1;
342 static int hf_diameter_3gpp_tmgi_allocation_result_bit2;
343 static int hf_diameter_3gpp_tmgi_allocation_result_bit3;
344 static int hf_diameter_3gpp_tmgi_allocation_result_bit4;
345 static int hf_diameter_3gpp_tmgi_deallocation_result;
346 static int hf_diameter_3gpp_tmgi_deallocation_result_bit0;
347 static int hf_diameter_3gpp_tmgi_deallocation_result_bit1;
348 static int hf_diameter_3gpp_tmgi_deallocation_result_bit2;
349 static int hf_diameter_3gpp_sar_flags;
350 static int hf_diameter_3gpp_sar_flags_flags_bit0;
351 static int hf_diameter_3gpp_emergency_services_flags;
352 static int hf_diameter_3gpp_emergency_services_flags_bit0;
353 static int hf_diameter_3gpp_pur_flags;
354 static int hf_diameter_3gpp_pur_flags_spare_bits;
355 static int hf_diameter_3gpp_pur_flags_bit1;
356 static int hf_diameter_3gpp_pur_flags_bit0;
357 static int hf_diameter_3gpp_clr_flags;
358 static int hf_diameter_3gpp_clr_flags_spare_bits;
359 static int hf_diameter_3gpp_clr_flags_bit1;
360 static int hf_diameter_3gpp_clr_flags_bit0;
361 static int hf_diameter_3gpp_uvr_flags;
362 static int hf_diameter_3gpp_uvr_flags_spare_bits;
363 static int hf_diameter_3gpp_uvr_flags_bit0;
364 static int hf_diameter_3gpp_uva_flags;
365 static int hf_diameter_3gpp_uva_flags_spare_bits;
366 static int hf_diameter_3gpp_uva_flags_bit0;
367 static int hf_diameter_3gpp_subscription_data_flags;
368 static int hf_diameter_3gpp_subscription_data_flags_spare_bits;
369 static int hf_diameter_3gpp_subscription_data_flags_bit3;
370 static int hf_diameter_3gpp_subscription_data_flags_bit2;
371 static int hf_diameter_3gpp_subscription_data_flags_bit1;
372 static int hf_diameter_3gpp_subscription_data_flags_bit0;
373 static int hf_diameter_3gpp_wlan_offloadability_eutran;
374 static int hf_diameter_3gpp_wlan_offloadability_eutran_spare_bits;
375 static int hf_diameter_3gpp_wlan_offloadability_eutran_bit0;
376 static int hf_diameter_3gpp_wlan_offloadability_utran;
377 static int hf_diameter_3gpp_wlan_offloadability_utran_spare_bits;
378 static int hf_diameter_3gpp_wlan_offloadability_utran_bit0;
379 static int hf_diameter_3gpp_air_flags;
380 static int hf_diameter_3gpp_air_flags_spare_bits;
381 static int hf_diameter_3gpp_air_flags_bit0;
382 static int hf_diameter_3gpp_preferred_data_mode;
383 static int hf_diameter_3gpp_preferred_data_mode_spare_bits;
384 static int hf_diameter_3gpp_preferred_data_mode_bit1;
385 static int hf_diameter_3gpp_preferred_data_mode_bit0;
386 static int hf_diameter_3gpp_v2x_permission;
387 static int hf_diameter_3gpp_v2x_permission_spare_bits;
388 static int hf_diameter_3gpp_v2x_permission_bit1;
389 static int hf_diameter_3gpp_v2x_permission_bit0;
390 static int hf_diameter_3gpp_core_network_restrictions;
391 static int hf_diameter_3gpp_core_network_restrictions_spare_bits;
392 static int hf_diameter_3gpp_core_network_restrictions_bit1;
393 static int hf_diameter_3gpp_core_network_restrictions_bit0;
394 static int hf_diameter_3gpp_supported_gad_shapes;
395 static int hf_diameter_3gpp_highaccuracyellipsoidpointwithaltitudeandscalableuncertaintyellipsoid_bit10;
396 static int hf_diameter_3gpp_highaccuracyellipsoidpointwithscalableuncertaintyellipse_bit9;
397 static int hf_diameter_3gpp_highaccuracyellipsoidpointwithaltitudeanduncertaintyellipsoid_bit8;
398 static int hf_diameter_3gpp_highaccuracyellipsoidpointwithuncertaintyellipse_bit7;
399 static int hf_diameter_3gpp_ellipsoidarc_bit6;
400 static int hf_diameter_3gpp_ellipsoidpointwithaltitudeanduncertaintyelipsoid_bit5;
401 static int hf_diameter_3gpp_ellipsoidpointwithaltitude_bit4;
402 static int hf_diameter_3gpp_polygon_bit3;
403 static int hf_diameter_3gpp_ellipsoidpointwithuncertaintyellipse_bit2;
404 static int hf_diameter_3gpp_ellipsoidpointwithuncertaintycircle_bit1;
405 static int hf_diameter_3gpp_ellipsoidpoint_bit0;
408 static int hf_diameter_3gpp_uar_flags_flags_spare_bits;
409 static int hf_diameter_3gpp_feature_list1_sh_flags_spare_bits;
410 static int hf_diameter_3gpp_feature_list2_s6a_flags_spare_bits;
411 static int hf_diameter_3gpp_cms_spare_bits;
412 static int hf_diameter_3gpp_ulr_flags_spare_bits;
413 static int hf_diameter_3gpp_ula_flags_spare_bits;
414 static int hf_diameter_3gpp_dsa_flags_spare_bits;
415 static int hf_diameter_3gpp_acc_res_dat_flags;
416 static int hf_diameter_3gpp_acc_res_dat_flags_bit0;
417 static int hf_diameter_3gpp_acc_res_dat_flags_bit1;
418 static int hf_diameter_3gpp_acc_res_dat_flags_bit2;
419 static int hf_diameter_3gpp_acc_res_dat_flags_bit3;
420 static int hf_diameter_3gpp_acc_res_dat_flags_bit4;
421 static int hf_diameter_3gpp_acc_res_dat_flags_bit5;
422 static int hf_diameter_3gpp_acc_res_dat_flags_bit6;
423 static int hf_diameter_3gpp_acc_res_dat_flags_bit7;
424 static int hf_diameter_3gpp_acc_res_dat_flags_bit8;
425 static int hf_diameter_3gpp_acc_res_dat_flags_bit9;
426 static int hf_diameter_3gpp_acc_res_dat_flags_bit10;
427 static int hf_diameter_3gpp_acc_res_dat_flags_bit11;
428 static int hf_diameter_3gpp_acc_res_dat_flags_bit12;
429 static int hf_diameter_3gpp_acc_res_dat_flags_spare_bits;
430 static int hf_diameter_3gpp_ida_flags_spare_bits;
431 static int hf_diameter_3gpp_pua_flags_spare_bits;
432 static int hf_diameter_3gpp_nor_flags_spare_bits;
433 static int hf_diameter_3gpp_idr_flags_spare_bits;
434 static int hf_diameter_3gpp_ppr_flags_spare_bits;
435 static int hf_diameter_3gpp_aaa_fail_flags_spare_bits;
436 static int hf_diameter_3gpp_der_flags_spare_bits;
437 static int hf_diameter_3gpp_dea_flags_spare_bits;
438 static int hf_diameter_3gpp_rar_flags_spare_bits;
439 static int hf_diameter_3gpp_der_s6b_flags_spare_bits;
440 static int hf_diameter_3gpp_mbms_bearer_event_spare_bits;
441 static int hf_diameter_3gpp_mbms_bearer_result_spare_bits;
442 static int hf_diameter_3gpp_tmgi_allocation_result_spare_bits;
443 static int hf_diameter_3gpp_tmgi_deallocation_result_spare_bits;
444 static int hf_diameter_3gpp_emergency_services_flags_spare_bits;
446 static int hf_diameter_3gpp_plr_flags;
447 static int hf_diameter_3gpp_plr_flags_spare_bits;
448 static int hf_diameter_3gpp_delayed_location_reporting_support_indicator_bit2;
449 static int hf_diameter_3gpp_optimized_lcs_proc_req_bit1;
450 static int hf_diameter_3gpp_mo_lr_shortcircuit_indicator_bit0;
452 static int hf_diameter_3gpp_pla_flags;
453 static int hf_diameter_3gpp_pla_flags_spare_bits;
454 static int hf_diameter_3gpp_ue_transiently_not_reachable_indicator_bit3;
455 static int hf_diameter_3gpp_optimized_lcs_proc_performed_bit2;
456 static int hf_diameter_3gpp_mo_lr_shortcircuit_indicator_bit1;
457 static int hf_diameter_3gpp_deferred_mt_lr_response_indicator_bit0;
459 static int hf_diameter_3gpp_deferred_location_type;
460 static int hf_diameter_3gpp_deferred_location_type_spare_bits;
461 static int hf_diameter_3gpp_ue_available_bit0;
462 static int hf_diameter_3gpp_entering_into_area_bit1;
463 static int hf_diameter_3gpp_leaving_from_area_bit2;
464 static int hf_diameter_3gpp_being_inside_area_bit3;
465 static int hf_diameter_3gpp_periodic_ldr_bit4;
466 static int hf_diameter_3gpp_motion_event_bit5;
467 static int hf_diameter_3gpp_ldr_activated_bit6;
468 static int hf_diameter_3gpp_maximum_interval_exporation_bit7;
470 static int ett_diameter_3gpp_path;
471 static int ett_diameter_3gpp_feature_list;
472 static int ett_diameter_3gpp_uar_flags;
473 static int ett_diameter_3gpp_tmgi;
474 static int ett_diameter_3gpp_cms;
476 static int hf_diameter_3gpp_secondary_rat_type;
478 static int hf_diameter_3gpp_gcip;
479 static int hf_diameter_3gpp_amec;
480 static int hf_diameter_3gpp_coame;
481 static int hf_diameter_3gpp_acpc;
482 static int hf_diameter_3gpp_rir_flags;
483 static int hf_diameter_3gpp_rir_spare_b31_b4;
484 static int hf_diameter_3gpp_feature_list_s6t_flags;
485 static int hf_diameter_3gpp_feature_list_s6t_flags_bit0;
486 static int hf_diameter_3gpp_feature_list_s6t_flags_bit1;
487 static int hf_diameter_3gpp_feature_list_s6t_flags_bit2;
488 static int hf_diameter_3gpp_feature_list_s6t_flags_bit3;
489 static int hf_diameter_3gpp_feature_list_s6t_flags_bit4;
490 static int hf_diameter_3gpp_feature_list_s6t_flags_bit5;
491 static int hf_diameter_3gpp_feature_list_s6t_flags_bit6;
492 static int hf_diameter_3gpp_feature_list_s6t_flags_bit7;
493 static int hf_diameter_3gpp_feature_list_s6t_flags_bit8;
494 static int hf_diameter_3gpp_feature_list_s6t_flags_bit9;
495 static int hf_diameter_3gpp_feature_list_s6t_spare_b31_b10;
496 static int hf_diameter_3gpp_supported_monitoring_events;
497 static int hf_diameter_3gpp_supported_monitoring_events_b0;
498 static int hf_diameter_3gpp_supported_monitoring_events_b1;
499 static int hf_diameter_3gpp_supported_monitoring_events_b2;
500 static int hf_diameter_3gpp_supported_monitoring_events_b3;
501 static int hf_diameter_3gpp_supported_monitoring_events_b4;
502 static int hf_diameter_3gpp_supported_monitoring_events_b5;
503 static int hf_diameter_3gpp_supported_monitoring_events_b6;
504 static int hf_diameter_3gpp_supported_monitoring_events_b7;
505 static int hf_diameter_3gpp_supported_monitoring_events_b8;
507 static int ett_diameter_3gpp_qos_subscribed;
508 static int ett_diameter_3gpp_ulr_flags;
509 static int ett_diameter_3gpp_ula_flags;
510 static int ett_diameter_3gpp_dsr_flags;
511 static int ett_diameter_3gpp_dsa_flags;
512 static int ett_diameter_3gpp_ida_flags;
513 static int ett_diameter_3gpp_pua_flags;
514 static int ett_diameter_3gpp_nor_flags;
515 static int ett_diameter_3gpp_idr_flags;
516 static int ett_diameter_3gpp_ppr_flags;
517 static int ett_diameter_3gpp_aaa_fail_flags;
518 static int ett_diameter_3gpp_der_flags;
519 static int ett_diameter_3gpp_dea_flags;
520 static int ett_diameter_3gpp_rar_flags;
521 static int ett_diameter_3gpp_der_s6b_flags;
522 static int ett_diameter_3gpp_mbms_bearer_event;
523 static int ett_diameter_3gpp_mbms_bearer_result;
524 static int ett_diameter_3gpp_tmgi_allocation_result;
525 static int ett_diameter_3gpp_tmgi_deallocation_result;
526 static int ett_diameter_3gpp_sar_flags;
527 static int ett_diameter_3gpp_req_nodes;
528 static int ett_diameter_3gpp_emergency_services_flags;
529 static int ett_diameter_3gpp_pur_flags;
530 static int ett_diameter_3gpp_clr_flags;
531 static int ett_diameter_3gpp_uvr_flags;
532 static int ett_diameter_3gpp_uva_flags;
533 static int ett_diameter_3gpp_subscription_data_flags;
534 static int ett_diameter_3gpp_wlan_offloadability_eutran;
535 static int ett_diameter_3gpp_wlan_offloadability_utran;
536 static int ett_diameter_3gpp_air_flags;
537 static int ett_diameter_3gpp_preferred_data_mode;
538 static int ett_diameter_3gpp_v2x_permission;
539 static int ett_diameter_3gpp_core_network_restrictions;
540 static int ett_diameter_3gpp_supported_gad_shapes;
541 static int ett_diameter_3gpp_plr_flags;
542 static int ett_diameter_3gpp_pla_flags;
543 static int ett_diameter_3gpp_deferred_location_type;
544 static int ett_diameter_3gpp_rir_flags;
545 static int ett_diameter_3gpp_supported_monitoring_events;
546 static int ett_diameter_3gpp_af_requested_data_flags;
548 static int hf_diameter_3gpp_feature_list1_rx_flags_bit0;
549 static int hf_diameter_3gpp_feature_list1_rx_flags_bit1;
550 static int hf_diameter_3gpp_feature_list1_rx_flags_bit2;
551 static int hf_diameter_3gpp_feature_list1_rx_flags_bit3;
552 static int hf_diameter_3gpp_feature_list1_rx_flags_bit4;
553 static int hf_diameter_3gpp_feature_list1_rx_flags_bit5;
554 static int hf_diameter_3gpp_feature_list1_rx_flags_bit6;
555 static int hf_diameter_3gpp_feature_list1_rx_flags_bit7;
556 static int hf_diameter_3gpp_feature_list1_rx_flags_bit8;
557 static int hf_diameter_3gpp_feature_list1_rx_flags_bit9;
558 static int hf_diameter_3gpp_feature_list1_rx_flags_bit10;
559 static int hf_diameter_3gpp_feature_list1_rx_flags_bit11;
560 static int hf_diameter_3gpp_feature_list1_rx_flags_bit12;
561 static int hf_diameter_3gpp_feature_list1_rx_flags_bit13;
562 static int hf_diameter_3gpp_feature_list1_rx_flags_bit14;
563 static int hf_diameter_3gpp_feature_list1_rx_flags_bit15;
564 static int hf_diameter_3gpp_feature_list1_rx_flags_bit16;
565 static int hf_diameter_3gpp_feature_list1_rx_flags_bit17;
566 static int hf_diameter_3gpp_feature_list1_rx_flags_bit18;
567 static int hf_diameter_3gpp_feature_list1_rx_flags_bit19;
568 static int hf_diameter_3gpp_feature_list1_rx_flags_bit20;
569 static int hf_diameter_3gpp_feature_list1_rx_flags_bit21;
570 static int hf_diameter_3gpp_feature_list1_rx_flags_bit22;
571 static int hf_diameter_3gpp_feature_list1_rx_flags_spare_bits;
573 static int hf_diameter_3gpp_feature_list2_rx_flags_bit0;
574 static int hf_diameter_3gpp_feature_list2_rx_flags_bit1;
575 static int hf_diameter_3gpp_feature_list2_rx_flags_bit2;
576 static int hf_diameter_3gpp_feature_list2_rx_flags_bit3;
577 static int hf_diameter_3gpp_feature_list2_rx_flags_bit4;
578 static int hf_diameter_3gpp_feature_list2_rx_flags_bit5;
579 static int hf_diameter_3gpp_feature_list2_rx_flags_bit6;
580 static int hf_diameter_3gpp_feature_list2_rx_flags_bit7;
581 static int hf_diameter_3gpp_feature_list2_rx_flags_bit8;
582 static int hf_diameter_3gpp_feature_list2_rx_flags_bit9;
583 static int hf_diameter_3gpp_feature_list2_rx_flags_bit10;
584 static int hf_diameter_3gpp_feature_list2_rx_flags_bit11;
585 static int hf_diameter_3gpp_feature_list2_rx_flags_bit12;
586 static int hf_diameter_3gpp_feature_list2_rx_flags_bit13;
587 static int hf_diameter_3gpp_feature_list2_rx_flags_bit14;
588 static int hf_diameter_3gpp_feature_list2_rx_flags_bit15;
589 static int hf_diameter_3gpp_feature_list2_rx_flags_spare_bits;
591 static int hf_diameter_3gpp_feature_list_swx_flags;
592 static int hf_diameter_3gpp_feature_list_swx_flags_bit0;
593 static int hf_diameter_3gpp_feature_list_swx_flags_bit1;
594 static int hf_diameter_3gpp_feature_list_swx_flags_bit2;
595 static int hf_diameter_3gpp_feature_list_swx_flags_bit3;
596 static int hf_diameter_3gpp_feature_list_swx_flags_bit4;
597 static int hf_diameter_3gpp_feature_list_swx_flags_bit5;
598 static int hf_diameter_3gpp_feature_list_swx_flags_bit6;
599 static int hf_diameter_3gpp_feature_list_s6b_flags;
600 static int hf_diameter_3gpp_feature_list_s6b_flags_bit0;
602 static int hf_diameter_3gpp_ran_nas_protocol_type;
603 static int hf_diameter_3gpp_ran_nas_cause_type;
604 static int hf_diameter_3gpp_ran_nas_cause_value;
605 static int hf_diameter_3gpp_s1ap_radio_network;
606 static int hf_diameter_3gpp_s1ap_transport;
607 static int hf_diameter_3gpp_s1ap_nas;
608 static int hf_diameter_3gpp_s1ap_protocol;
609 static int hf_diameter_3gpp_s1ap_misc;
610 static int hf_diameter_3gpp_emm_cause;
611 static int hf_diameter_3gpp_esm_cause;
612 static int hf_diameter_3gpp_diameter_cause;
613 static int hf_diameter_3gpp_ikev2_cause;
615 /* Dissector handles */
616 static dissector_handle_t xml_handle;
617 static dissector_handle_t gsm_sms_handle;
618 static dissector_handle_t sdp_handle;
620 /* Forward declarations */
621 static int dissect_diameter_3gpp_ipv6addr(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_);
624 * AVP Code: 8 IMSI-MNC-MCC
626 static int
627 dissect_diameter_3gpp_imsi_mnc_mcc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
629 uint32_t str_len;
631 str_len = tvb_reported_length(tvb);
632 dissect_e212_mcc_mnc_in_utf8_address(tvb, pinfo, tree, 0);
634 return str_len;
637 /* AVP Code: 15 3GPP-SGSN-IPv6-Address */
638 static int
639 dissect_diameter_3gpp_sgsn_ipv6_address(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
641 /* 3GPP AVP code 15 has a conflict between imscxdx.xml (where the AVP
642 * contains an Unsigned32 enum) and TGPPGmb.xml (where the AVP contains
643 * an OctetString IPv6 address). This function decodes the latter; we
644 * (silently) abort dissection if the length is 4 on the assumption that
645 * the old IMS AVP is what we're decoding.
647 if (tvb_reported_length(tvb) == 4)
648 return 4;
650 return dissect_diameter_3gpp_ipv6addr(tvb, pinfo, tree, data);
655 * AVP Code: 18 SGSN-MNC-MCC
657 static int
658 dissect_diameter_3gpp_sgsn_mnc_mcc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
660 uint32_t str_len;
662 str_len = tvb_reported_length(tvb);
663 dissect_e212_mcc_mnc_in_utf8_address(tvb, pinfo, tree, 0);
665 return str_len;
668 /* AVP Code: 21 3GPP-RAT-Type
669 * 3GPP TS 29.061, 29.274
671 static const value_string diameter_3gpp_rat_type_vals[] = {
672 { 0, "Reserved" },
673 { 1, "UTRAN" },
674 { 2, "GERAN" },
675 { 3, "WLAN" },
676 { 4, "GAN" },
677 { 5, "HSPA Evolution" },
678 { 6, "EUTRAN (WB-E-UTRAN)" },
679 { 7, "Virtual" },
680 { 8, "EUTRAN-NB-IoT" },
681 { 9, "LTE-M" },
682 { 51, "NR" },
683 { 52, "NR in unlicensed bands" },
684 { 53, "Trusted WLAN" },
685 { 54, "Trusted Non-3GPP access" },
686 { 55, "Wireline access" },
687 { 56, "Wireline Cable access" },
688 { 57, "Wireline BBF access" },
689 { 58, "NR RedCap" },
690 { 101, "IEEE 802.16e" },
691 { 102, "3GPP2 eHRPD" },
692 { 103, "3GPP2 HRPD" },
693 { 104, "3GPP2 1xRTT" },
694 { 105, "3GPP2 UMB" },
695 { 0, NULL }
698 static int
699 dissect_diameter_3gpp_rat_type(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
701 int offset = 0;
702 int length = tvb_reported_length(tvb);
704 proto_tree_add_item(tree, hf_diameter_3gpp_rat_type, tvb, offset, 1, ENC_BIG_ENDIAN);
706 return length;
709 /* AVP Code: 23 3GPP-MS-TimeZone
710 * 3GPP TS 29.061
712 static const value_string daylight_saving_time_vals[] = {
713 {0, "No adjustment"},
714 {1, "+1 hour adjustment for Daylight Saving Time"},
715 {2, "+2 hours adjustment for Daylight Saving Time"},
716 {3, "Reserved"},
717 {0, NULL}
720 static int
721 dissect_diameter_3gpp_ms_timezone(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
723 int offset = 0;
724 uint8_t oct, hours, minutes;
725 char sign;
726 diam_sub_dis_t *diam_sub_dis = (diam_sub_dis_t*)data;
728 /* 3GPP TS 23.040 version 6.6.0 Release 6
729 * 9.2.3.11 TP-Service-Centre-Time-Stamp (TP-SCTS)
731 * The Time Zone indicates the difference, expressed in quarters of an hour,
732 * between the local time and GMT. In the first of the two semi-octets,
733 * the first bit (bit 3 of the seventh octet of the TP-Service-Centre-Time-Stamp field)
734 * represents the algebraic sign of this difference (0: positive, 1: negative).
737 oct = tvb_get_uint8(tvb, offset);
738 sign = (oct & 0x08) ? '-' : '+';
739 oct = (oct >> 4) + (oct & 0x07) * 10;
740 hours = oct / 4;
741 minutes = oct % 4 * 15;
743 proto_tree_add_uint_format_value(tree, hf_diameter_3gpp_timezone, tvb, offset, 1, oct, "GMT %c %d hours %d minutes", sign, hours, minutes);
744 offset++;
746 oct = tvb_get_uint8(tvb, offset) & 0x3;
747 proto_tree_add_item(tree, hf_diameter_3gpp_timezone_adjustment, tvb, offset, 1, ENC_BIG_ENDIAN);
748 offset++;
750 diam_sub_dis->avp_str = wmem_strdup_printf(pinfo->pool, "Timezone: GMT %c %d hours %d minutes %s",
751 sign,
752 hours,
753 minutes,
754 val_to_str_const(oct, daylight_saving_time_vals, "Unknown"));
756 return offset;
758 /* AVP Code: 29 3GPP-TWAN-Identifier
759 * 3GPP TS 29.061 V14.2.0 (2016-12)
761 static int
762 dissect_diameter_3gpp_twan_identifier(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
764 int length = tvb_reported_length(tvb);
766 dissect_gtpv2_twan_identifier(tvb, pinfo, tree, NULL, length, 0, 0, NULL);
768 return length;
772 * AVP Code: 524 Codec-Data
774 static int
775 dissect_diameter_3gpp_codec_data(tvbuff_t* tvb, packet_info* pinfo _U_, proto_tree* tree, void* data _U_)
777 int offset = 0, linelen, next_offset;
778 int length = tvb_reported_length(tvb);
779 const char* str;
781 /* The first line of the value of the Codec-Data AVP shall consist of either the word "uplink"
782 * or the word "downlink" (in ASCII, without quotes) followed by a new-line character
784 linelen = tvb_find_line_end(tvb, offset, -1, &next_offset, false);
785 if (linelen < 1) {
786 return tvb_reported_length(tvb);
788 str = tvb_get_string_enc(pinfo->pool, tvb, offset, linelen, ENC_ASCII | ENC_NA);
789 proto_tree_add_string_format(tree, hf_diameter_3gpp_codec_data_dir, tvb, offset, linelen, str, "%s", str);
790 if (next_offset > length) {
791 return tvb_reported_length(tvb);
793 offset = next_offset;
794 /* The second line of the value of the Codec-Data AVP shall consist of either the word "offer"
795 * or the word "answer", or the word "description" (in ASCII, without quotes)
796 * followed by a new-line character
798 linelen = tvb_find_line_end(tvb, offset, -1, &next_offset, false);
799 if (linelen < 1) {
800 return tvb_reported_length(tvb);
802 str = tvb_get_string_enc(pinfo->pool, tvb, offset, linelen, ENC_ASCII | ENC_NA);
803 proto_tree_add_string_format(tree, hf_diameter_3gpp_codec_sdp_type, tvb, offset, linelen, str, "%s", str);
804 if (next_offset >= length) {
805 return tvb_reported_length(tvb);
808 /* The rest of the value shall consist of SDP line(s) in ASCII encoding
809 * separated by new-line characters, as specified in IETF RFC 4566
811 if (sdp_handle) {
812 /* Lets see if we have null padding*/
813 while (tvb_get_uint8(tvb, length - 1) == 0) {
814 length--;
816 length -= next_offset;
817 tvbuff_t* new_tvb = tvb_new_subset_length(tvb, next_offset, length);
818 call_dissector(sdp_handle, new_tvb, pinfo, tree);
820 return tvb_reported_length(tvb);
824 * AVP Code: 551 AF-Requested-Data
826 static int * const diameter_3gpp_af_requested_data_flags[] = {
827 &hf_diameter_3gpp_af_requested_data_flags_bit0,
828 NULL
831 static int
832 dissect_diameter_3gpp_af_requested_data(tvbuff_t* tvb, packet_info* pinfo _U_, proto_tree* tree, void* data _U_)
834 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
836 /* Hide the item created in packet-diameter.c and only show the one created here */
837 proto_item_set_hidden(diam_sub_dis_inf->item);
839 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_af_requested_data_flags,
840 ett_diameter_3gpp_af_requested_data_flags,
841 diameter_3gpp_af_requested_data_flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
843 return 4;
847 /* AVP Code: 601 Public-Identity
848 * TGPP.xml
849 * 6.3.2 Public-Identity AVP
850 * The Public-Identity AVP is of type UTF8String. This AVP contains the public identity of a user in the IMS. The syntax
851 * of this AVP corresponds either to a SIP URL (with the format defined in IETF RFC 3261 [3] and IETF RFC 2396 [4])
852 * or a TEL URL (with the format defined in IETF RFC 3966 [8]). Both SIP URL and TEL URL shall be in canonical
853 * form, as described in 3GPP TS 23.003 [13].
855 static int
856 dissect_diameter_3gpp_public_identity(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
858 int length = tvb_reported_length(tvb);
860 dfilter_store_sip_from_addr(tvb, tree, 0, length);
862 return length;
866 /* AVP Code: 629 Feature-List-id
867 * Feature list Id is neede to dissect Feature list in S6a/S6d application
868 * Ref 3GPP TS 29.272
871 static int
872 dissect_diameter_3gpp_feature_list_id(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree _U_, void *data)
874 diam_sub_dis_t *diam_sub_dis_inf = (diam_sub_dis_t*)data;
876 if(diam_sub_dis_inf) {
877 diam_sub_dis_inf->feature_list_id = tvb_get_ntohl(tvb,0);
880 return 4;
883 /* AVP Code: 637 UAR-Flags
884 * imscxdx.xml
885 * IMS Cx Dx AVPS 3GPP TS 29.229
888 static int
889 dissect_diameter_3gpp_uar_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
891 static int * const flags[] = {
892 &hf_diameter_3gpp_uar_flags_flags_spare_bits,
893 &hf_diameter_3gpp_uar_flags_flags_bit0,
894 NULL
897 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
899 /* Hide the item created in packet-diameter.c and only show the one created here */
900 proto_item_set_hidden(diam_sub_dis_inf->item);
902 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_uar_flags_flags, ett_diameter_3gpp_uar_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
903 return 4;
906 /* AVP Code: 630 Feature-List
907 * Interpretation depends on Application Id
908 * imscxdx.xml
909 * IMS Cx Dx AVPS 3GPP TS 29.229
911 static int * const diameter_3gpp_cx_feature_list_1_fields[] = {
912 &hf_diameter_3gpp_cx_feature_list_1_flags_spare_bits,
913 &hf_diameter_3gpp_cx_feature_list_1_flags_bit3,
914 &hf_diameter_3gpp_cx_feature_list_1_flags_bit2,
915 &hf_diameter_3gpp_cx_feature_list_1_flags_bit1,
916 &hf_diameter_3gpp_cx_feature_list_1_flags_bit0,
917 NULL
920 /* 3GPP TS 29.212 V14.0.0 (2016-09) */
921 static int * const diameter_3gpp_sd_feature_list_fields[] = {
922 &hf_diameter_3gpp_feature_list_sd_flags_spare_bits,
923 &hf_diameter_3gpp_feature_list_sd_flags_bit10,
924 &hf_diameter_3gpp_feature_list_sd_flags_bit9,
925 &hf_diameter_3gpp_feature_list_sd_flags_bit8,
926 &hf_diameter_3gpp_feature_list_sd_flags_bit7,
927 &hf_diameter_3gpp_feature_list_sd_flags_bit6,
928 &hf_diameter_3gpp_feature_list_sd_flags_bit5,
929 &hf_diameter_3gpp_feature_list_sd_flags_bit4,
930 &hf_diameter_3gpp_feature_list_sd_flags_bit3,
931 &hf_diameter_3gpp_feature_list_sd_flags_bit2,
932 &hf_diameter_3gpp_feature_list_sd_flags_bit1,
933 &hf_diameter_3gpp_feature_list_sd_flags_bit0,
934 NULL
937 static int
938 dissect_diameter_3gpp_feature_list(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
940 int offset = 0;
941 uint32_t application_id = 0, feature_list_id = 0;
942 diam_sub_dis_t *diam_sub_dis_inf = (diam_sub_dis_t*)data;
944 if(!diam_sub_dis_inf) {
945 return 4;
948 application_id = diam_sub_dis_inf->application_id;
949 feature_list_id = diam_sub_dis_inf->feature_list_id;
950 /* Hide the item created in packet-diameter.c and only show the one created here */
951 bool save_hidden = proto_item_is_hidden(diam_sub_dis_inf->item);
952 proto_item_set_hidden(diam_sub_dis_inf->item);
954 switch (application_id) {
955 case DIAM_APPID_3GPP_CX:
956 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_diameter_3gpp_cx_feature_list_flags,
957 ett_diameter_3gpp_feature_list, diameter_3gpp_cx_feature_list_1_fields, ENC_BIG_ENDIAN, BMT_NO_APPEND);
958 break;
959 case DIAM_APPID_3GPP_RX:
961 if (feature_list_id == 1) {
962 /* 3GPP TS 129 214 Table 5.4.1.1: Features of Feature-List-ID 1 used in Rx */
963 static int * const flags[] = {
964 &hf_diameter_3gpp_feature_list1_rx_flags_spare_bits,
965 &hf_diameter_3gpp_feature_list1_rx_flags_bit22,
966 &hf_diameter_3gpp_feature_list1_rx_flags_bit21,
967 &hf_diameter_3gpp_feature_list1_rx_flags_bit20,
968 &hf_diameter_3gpp_feature_list1_rx_flags_bit19,
969 &hf_diameter_3gpp_feature_list1_rx_flags_bit18,
970 &hf_diameter_3gpp_feature_list1_rx_flags_bit17,
971 &hf_diameter_3gpp_feature_list1_rx_flags_bit16,
972 &hf_diameter_3gpp_feature_list1_rx_flags_bit15,
973 &hf_diameter_3gpp_feature_list1_rx_flags_bit14,
974 &hf_diameter_3gpp_feature_list1_rx_flags_bit13,
975 &hf_diameter_3gpp_feature_list1_rx_flags_bit12,
976 &hf_diameter_3gpp_feature_list1_rx_flags_bit11,
977 &hf_diameter_3gpp_feature_list1_rx_flags_bit10,
978 &hf_diameter_3gpp_feature_list1_rx_flags_bit9,
979 &hf_diameter_3gpp_feature_list1_rx_flags_bit8,
980 &hf_diameter_3gpp_feature_list1_rx_flags_bit7,
981 &hf_diameter_3gpp_feature_list1_rx_flags_bit6,
982 &hf_diameter_3gpp_feature_list1_rx_flags_bit5,
983 &hf_diameter_3gpp_feature_list1_rx_flags_bit4,
984 &hf_diameter_3gpp_feature_list1_rx_flags_bit3,
985 &hf_diameter_3gpp_feature_list1_rx_flags_bit2,
986 &hf_diameter_3gpp_feature_list1_rx_flags_bit1,
987 &hf_diameter_3gpp_feature_list1_rx_flags_bit0,
988 NULL
991 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_diameter_3gpp_feature_list_flags, ett_diameter_3gpp_feature_list, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
993 else if (feature_list_id == 2) {
994 static int * const flags[] = {
995 &hf_diameter_3gpp_feature_list2_rx_flags_spare_bits,
996 &hf_diameter_3gpp_feature_list2_rx_flags_bit15,
997 &hf_diameter_3gpp_feature_list2_rx_flags_bit14,
998 &hf_diameter_3gpp_feature_list2_rx_flags_bit13,
999 &hf_diameter_3gpp_feature_list2_rx_flags_bit12,
1000 &hf_diameter_3gpp_feature_list2_rx_flags_bit11,
1001 &hf_diameter_3gpp_feature_list2_rx_flags_bit10,
1002 &hf_diameter_3gpp_feature_list2_rx_flags_bit9,
1003 &hf_diameter_3gpp_feature_list2_rx_flags_bit8,
1004 &hf_diameter_3gpp_feature_list2_rx_flags_bit7,
1005 &hf_diameter_3gpp_feature_list2_rx_flags_bit6,
1006 &hf_diameter_3gpp_feature_list2_rx_flags_bit5,
1007 &hf_diameter_3gpp_feature_list2_rx_flags_bit4,
1008 &hf_diameter_3gpp_feature_list2_rx_flags_bit3,
1009 &hf_diameter_3gpp_feature_list2_rx_flags_bit2,
1010 &hf_diameter_3gpp_feature_list2_rx_flags_bit1,
1011 &hf_diameter_3gpp_feature_list2_rx_flags_bit0,
1012 NULL
1015 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_diameter_3gpp_feature_list_flags, ett_diameter_3gpp_feature_list, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
1018 break;
1019 case DIAM_APPID_3GPP_SH:
1021 static int * const flags[] = {
1022 &hf_diameter_3gpp_feature_list1_sh_flags_spare_bits,
1023 &hf_diameter_3gpp_feature_list1_sh_flags_bit3,
1024 &hf_diameter_3gpp_feature_list1_sh_flags_bit2,
1025 &hf_diameter_3gpp_feature_list1_sh_flags_bit1,
1026 &hf_diameter_3gpp_feature_list1_sh_flags_bit0,
1027 NULL
1030 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_diameter_3gpp_feature_list_flags, ett_diameter_3gpp_feature_list, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
1032 break;
1033 case DIAM_APPID_3GPP_S6A_S6D:
1034 if (feature_list_id == 1) {
1035 /* 3GPP TS 29.272 Table 7.3.10/1: Features of Feature-List-ID 1 used in S6a/S6d */
1036 static int * const flags[] = {
1037 &hf_diameter_3gpp_feature_list1_s6a_flags_bit31,
1038 &hf_diameter_3gpp_feature_list1_s6a_flags_bit30,
1039 &hf_diameter_3gpp_feature_list1_s6a_flags_bit29,
1040 &hf_diameter_3gpp_feature_list1_s6a_flags_bit28,
1041 &hf_diameter_3gpp_feature_list1_s6a_flags_bit27,
1042 &hf_diameter_3gpp_feature_list1_s6a_flags_bit26,
1043 &hf_diameter_3gpp_feature_list1_s6a_flags_bit25,
1044 &hf_diameter_3gpp_feature_list1_s6a_flags_bit24,
1045 &hf_diameter_3gpp_feature_list1_s6a_flags_bit23,
1046 &hf_diameter_3gpp_feature_list1_s6a_flags_bit22,
1047 &hf_diameter_3gpp_feature_list1_s6a_flags_bit21,
1048 &hf_diameter_3gpp_feature_list1_s6a_flags_bit20,
1049 &hf_diameter_3gpp_feature_list1_s6a_flags_bit19,
1050 &hf_diameter_3gpp_feature_list1_s6a_flags_bit18,
1051 &hf_diameter_3gpp_feature_list1_s6a_flags_bit17,
1052 &hf_diameter_3gpp_feature_list1_s6a_flags_bit16,
1053 &hf_diameter_3gpp_feature_list1_s6a_flags_bit15,
1054 &hf_diameter_3gpp_feature_list1_s6a_flags_bit14,
1055 &hf_diameter_3gpp_feature_list1_s6a_flags_bit13,
1056 &hf_diameter_3gpp_feature_list1_s6a_flags_bit12,
1057 &hf_diameter_3gpp_feature_list1_s6a_flags_bit11,
1058 &hf_diameter_3gpp_feature_list1_s6a_flags_bit10,
1059 &hf_diameter_3gpp_feature_list1_s6a_flags_bit9,
1060 &hf_diameter_3gpp_feature_list1_s6a_flags_bit8,
1061 &hf_diameter_3gpp_feature_list1_s6a_flags_bit7,
1062 &hf_diameter_3gpp_feature_list1_s6a_flags_bit6,
1063 &hf_diameter_3gpp_feature_list1_s6a_flags_bit5,
1064 &hf_diameter_3gpp_feature_list1_s6a_flags_bit4,
1065 &hf_diameter_3gpp_feature_list1_s6a_flags_bit3,
1066 &hf_diameter_3gpp_feature_list1_s6a_flags_bit2,
1067 &hf_diameter_3gpp_feature_list1_s6a_flags_bit1,
1068 &hf_diameter_3gpp_feature_list1_s6a_flags_bit0,
1069 NULL
1072 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_diameter_3gpp_feature_list_flags, ett_diameter_3gpp_feature_list, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
1074 else if (feature_list_id == 2) {
1075 /* 3GPP TS 29.272 Table 7.3.10/2: Features of Feature-List-ID 2 used in S6a/S6d */
1076 static int * const flags[] = {
1077 &hf_diameter_3gpp_feature_list2_s6a_flags_spare_bits,
1078 &hf_diameter_3gpp_feature_list2_s6a_flags_bit30,
1079 &hf_diameter_3gpp_feature_list2_s6a_flags_bit29,
1080 &hf_diameter_3gpp_feature_list2_s6a_flags_bit28,
1081 &hf_diameter_3gpp_feature_list2_s6a_flags_bit27,
1082 &hf_diameter_3gpp_feature_list2_s6a_flags_bit26,
1083 &hf_diameter_3gpp_feature_list2_s6a_flags_bit25,
1084 &hf_diameter_3gpp_feature_list2_s6a_flags_bit24,
1085 &hf_diameter_3gpp_feature_list2_s6a_flags_bit23,
1086 &hf_diameter_3gpp_feature_list2_s6a_flags_bit22,
1087 &hf_diameter_3gpp_feature_list2_s6a_flags_bit21,
1088 &hf_diameter_3gpp_feature_list2_s6a_flags_bit20,
1089 &hf_diameter_3gpp_feature_list2_s6a_flags_bit19,
1090 &hf_diameter_3gpp_feature_list2_s6a_flags_bit18,
1091 &hf_diameter_3gpp_feature_list2_s6a_flags_bit17,
1092 &hf_diameter_3gpp_feature_list2_s6a_flags_bit16,
1093 &hf_diameter_3gpp_feature_list2_s6a_flags_bit15,
1094 &hf_diameter_3gpp_feature_list2_s6a_flags_bit14,
1095 &hf_diameter_3gpp_feature_list2_s6a_flags_bit13,
1096 &hf_diameter_3gpp_feature_list2_s6a_flags_bit12,
1097 &hf_diameter_3gpp_feature_list2_s6a_flags_bit11,
1098 &hf_diameter_3gpp_feature_list2_s6a_flags_bit10,
1099 &hf_diameter_3gpp_feature_list2_s6a_flags_bit9,
1100 &hf_diameter_3gpp_feature_list2_s6a_flags_bit8,
1101 &hf_diameter_3gpp_feature_list2_s6a_flags_bit7,
1102 &hf_diameter_3gpp_feature_list2_s6a_flags_bit6,
1103 &hf_diameter_3gpp_feature_list2_s6a_flags_bit5,
1104 &hf_diameter_3gpp_feature_list2_s6a_flags_bit4,
1105 &hf_diameter_3gpp_feature_list2_s6a_flags_bit3,
1106 &hf_diameter_3gpp_feature_list2_s6a_flags_bit2,
1107 &hf_diameter_3gpp_feature_list2_s6a_flags_bit1,
1108 &hf_diameter_3gpp_feature_list2_s6a_flags_bit0,
1109 NULL
1112 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_diameter_3gpp_feature_list_flags, ett_diameter_3gpp_feature_list, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
1114 break;
1115 case DIAM_APPID_3GPP_GX: /* 3GPP TS 29.212 V15.1.0 (2017-12) */
1116 if (feature_list_id == 1) {
1117 /* 3GPP TS 29.212 Table 5.4.1.1: Features of Feature-List-ID 1 used in Gx */
1118 static int * const flags[] = {
1119 &hf_diameter_3gpp_feature_list1_gx_flags_bit31,
1120 &hf_diameter_3gpp_feature_list1_gx_flags_bit30,
1121 &hf_diameter_3gpp_feature_list1_gx_flags_bit29,
1122 &hf_diameter_3gpp_feature_list1_gx_flags_bit28,
1123 &hf_diameter_3gpp_feature_list1_gx_flags_bit27,
1124 &hf_diameter_3gpp_feature_list1_gx_flags_bit26,
1125 &hf_diameter_3gpp_feature_list1_gx_flags_bit25,
1126 &hf_diameter_3gpp_feature_list1_gx_flags_bit24,
1127 &hf_diameter_3gpp_feature_list1_gx_flags_bit23,
1128 &hf_diameter_3gpp_feature_list1_gx_flags_bit22,
1129 &hf_diameter_3gpp_feature_list1_gx_flags_bit21,
1130 &hf_diameter_3gpp_feature_list1_gx_flags_bit20,
1131 &hf_diameter_3gpp_feature_list1_gx_flags_bit19,
1132 &hf_diameter_3gpp_feature_list1_gx_flags_bit18,
1133 &hf_diameter_3gpp_feature_list1_gx_flags_bit17,
1134 &hf_diameter_3gpp_feature_list1_gx_flags_bit16,
1135 &hf_diameter_3gpp_feature_list1_gx_flags_bit15,
1136 &hf_diameter_3gpp_feature_list1_gx_flags_bit14,
1137 &hf_diameter_3gpp_feature_list1_gx_flags_bit13,
1138 &hf_diameter_3gpp_feature_list1_gx_flags_bit12,
1139 &hf_diameter_3gpp_feature_list1_gx_flags_bit11,
1140 &hf_diameter_3gpp_feature_list1_gx_flags_bit10,
1141 &hf_diameter_3gpp_feature_list1_gx_flags_bit9,
1142 &hf_diameter_3gpp_feature_list1_gx_flags_bit8,
1143 &hf_diameter_3gpp_feature_list1_gx_flags_bit7,
1144 &hf_diameter_3gpp_feature_list1_gx_flags_bit6,
1145 &hf_diameter_3gpp_feature_list1_gx_flags_bit5,
1146 &hf_diameter_3gpp_feature_list1_gx_flags_bit4,
1147 &hf_diameter_3gpp_feature_list1_gx_flags_bit3,
1148 &hf_diameter_3gpp_feature_list1_gx_flags_bit2,
1149 &hf_diameter_3gpp_feature_list1_gx_flags_bit1,
1150 &hf_diameter_3gpp_feature_list1_gx_flags_bit0,
1151 NULL
1154 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_diameter_3gpp_feature_list_gx_flags,
1155 ett_diameter_3gpp_feature_list, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
1157 else if (feature_list_id == 2) {
1158 /* 3GPP TS 29.212 Table 5.4.1.2: Features of Feature-List-ID 2 used in Gx */
1159 static int * const flags[] = {
1160 &hf_diameter_3gpp_feature_list2_gx_flags_bit7,
1161 &hf_diameter_3gpp_feature_list2_gx_flags_bit6,
1162 &hf_diameter_3gpp_feature_list2_gx_flags_bit5,
1163 &hf_diameter_3gpp_feature_list2_gx_flags_bit4,
1164 &hf_diameter_3gpp_feature_list2_gx_flags_bit3,
1165 &hf_diameter_3gpp_feature_list2_gx_flags_bit2,
1166 &hf_diameter_3gpp_feature_list2_gx_flags_bit1,
1167 &hf_diameter_3gpp_feature_list2_gx_flags_bit0,
1168 NULL
1171 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_diameter_3gpp_feature_list_gx_flags,
1172 ett_diameter_3gpp_feature_list, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
1174 break;
1175 case DIAM_APPID_3GPP_SD: /* 3GPP TS 29.212 V14.0.0 (2016-09) */
1176 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_feature_list_sd_flags,
1177 ett_diameter_3gpp_feature_list, diameter_3gpp_sd_feature_list_fields, ENC_BIG_ENDIAN, BMT_NO_APPEND);
1178 break;
1179 case DIAM_APPID_3GPP_S6T:
1181 static int * const flags[] = {
1182 &hf_diameter_3gpp_feature_list_s6t_spare_b31_b10,
1183 &hf_diameter_3gpp_feature_list_s6t_flags_bit9,
1184 &hf_diameter_3gpp_feature_list_s6t_flags_bit8,
1185 &hf_diameter_3gpp_feature_list_s6t_flags_bit7,
1186 &hf_diameter_3gpp_feature_list_s6t_flags_bit6,
1187 &hf_diameter_3gpp_feature_list_s6t_flags_bit5,
1188 &hf_diameter_3gpp_feature_list_s6t_flags_bit4,
1189 &hf_diameter_3gpp_feature_list_s6t_flags_bit3,
1190 &hf_diameter_3gpp_feature_list_s6t_flags_bit2,
1191 &hf_diameter_3gpp_feature_list_s6t_flags_bit1,
1192 &hf_diameter_3gpp_feature_list_s6t_flags_bit0,
1193 NULL
1196 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_feature_list_s6t_flags,
1197 ett_diameter_3gpp_feature_list, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
1199 break;
1200 case DIAM_APPID_3GPP_SWX:
1202 /* 3GPP TS 29.273 Table 8.2.3.16/1: Features of Feature-List-ID 1 used in SWx */
1203 static int * const flags[] = {
1204 &hf_diameter_3gpp_feature_list_swx_flags_bit6,
1205 &hf_diameter_3gpp_feature_list_swx_flags_bit5,
1206 &hf_diameter_3gpp_feature_list_swx_flags_bit4,
1207 &hf_diameter_3gpp_feature_list_swx_flags_bit3,
1208 &hf_diameter_3gpp_feature_list_swx_flags_bit2,
1209 &hf_diameter_3gpp_feature_list_swx_flags_bit1,
1210 &hf_diameter_3gpp_feature_list_swx_flags_bit0,
1211 NULL
1214 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_feature_list_swx_flags,
1215 ett_diameter_3gpp_feature_list, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
1217 break;
1218 case DIAM_APPID_3GPP_S6B:
1220 /* 3GPP TS 29.273 Table 9.2.3.5/1: Features of Feature-List-ID 1 used in S6b */
1221 static int * const flags[] = {
1222 &hf_diameter_3gpp_feature_list_s6b_flags_bit0,
1223 NULL
1226 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_feature_list_s6b_flags,
1227 ett_diameter_3gpp_feature_list, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
1229 break;
1231 default:
1232 /* In case we end up here */
1233 if (!save_hidden) {
1234 proto_item_set_visible(diam_sub_dis_inf->item);
1236 break;
1239 return 4;
1243 /* AVP Code: 640 Path
1244 * imscxdx.xml
1245 * IMS Cx Dx AVPS 3GPP TS 29.229
1246 * 6.3.47 Path AVP
1247 * The Path AVP is of type OctetString and it contains a comma separated list of SIP proxies in the Path header as defined
1248 * in IETF RFC 3327 [17].
1250 static int
1251 dissect_diameter_3gpp_path(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
1253 proto_tree *sub_tree;
1254 int offset = 0, comma_offset;
1255 int end_offset = tvb_reported_length(tvb) - 1;
1257 sub_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_diameter_3gpp_path, NULL, "Paths");
1259 while (offset < end_offset) {
1260 comma_offset = tvb_find_uint8(tvb, offset, -1, ',');
1261 if(comma_offset == -1) {
1262 proto_tree_add_item(sub_tree, hf_diameter_3gpp_path, tvb, offset, comma_offset, ENC_ASCII);
1263 return end_offset;
1265 proto_tree_add_item(sub_tree, hf_diameter_3gpp_path, tvb, offset, comma_offset, ENC_ASCII);
1266 offset = comma_offset+1;
1270 return tvb_reported_length(tvb);
1273 /* AVP Code: 641 Contact
1274 * imscxdx.xml
1275 * IMS Cx Dx AVPS 3GPP TS 29.229
1276 * 6.3.48 Contact AVP
1277 * The Contact AVP is of type OctetString and it contains the Contact Addresses and Parameters in the Contact header as
1278 * defined in IETF RFC 3261.
1280 static int
1281 dissect_diameter_3gpp_contact(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
1283 proto_item *item;
1284 int offset = 0;
1286 item = proto_tree_add_item(tree, hf_diameter_3gpp_contact, tvb, offset, -1, ENC_ASCII);
1287 proto_item_set_generated(item);
1289 return tvb_reported_length(tvb);
1292 /* AVP Code: 701 MSISDN */
1293 static int
1294 dissect_diameter_3gpp_msisdn(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
1296 int offset = 0;
1297 int length = tvb_reported_length(tvb);
1299 dissect_e164_msisdn(tvb, tree, offset, length, E164_ENC_BCD);
1301 return length;
1304 /* AVP Code: 655 SAR-Flags
1305 * TGPP.xml
1306 * IMS Cx Dx AVPS 3GPP TS 29.229
1309 static int * const diameter_3gpp_sar_fields[] = {
1310 &hf_diameter_3gpp_sar_flags_flags_bit0,
1311 NULL
1314 static int
1315 dissect_diameter_3gpp_sar_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
1318 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
1320 /* Hide the item created in packet-diameter.c and only show the one created here */
1321 proto_item_set_hidden(diam_sub_dis_inf->item);
1323 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_sar_flags,
1324 ett_diameter_3gpp_sar_flags, diameter_3gpp_sar_fields, ENC_BIG_ENDIAN, BMT_NO_APPEND);
1326 return 4;
1329 /* AVP Code: 702 User-Data
1330 * TGPPSh.xml
1331 * The AVP codes from 709 to799 are reserved for TS 29.329
1333 /* AVP Code: 606 User-Data
1334 * imscxdx.xml
1335 * IMS Cx Dx AVPS 3GPP TS 29.229
1337 static int
1338 dissect_diameter_3gpp_user_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
1340 int length = tvb_reported_length(tvb);
1342 /* If there is less than 38 characters this is not XML
1343 * <?xml version="1.0" encoding="UTF-8"?>
1345 if(length < 38)
1346 return length;
1348 if (tvb_strncaseeql(tvb, 0, "<?xml", 5) == 0 && xml_handle) {
1349 call_dissector(xml_handle, tvb, pinfo, tree);
1352 return length;
1357 * AVP Code: 713 Requested-Nodes
1360 static int
1361 dissect_diameter_3gpp_req_nodes(tvbuff_t* tvb, packet_info* pinfo _U_, proto_tree* tree, void* data)
1364 static int* const diameter_3gpp_req_nodes_fields[] = {
1365 &hf_diameter_3gpp_req_nodes_bit3,
1366 &hf_diameter_3gpp_req_nodes_bit2,
1367 &hf_diameter_3gpp_req_nodes_bit1,
1368 &hf_diameter_3gpp_req_nodes_bit0,
1369 NULL
1372 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
1374 /* Hide the item created in packet-diameter.c and only show the one created here */
1375 proto_item_set_hidden(diam_sub_dis_inf->item);
1377 /* Change to BMT_NO_FALSE if the list gets to long(?)*/
1378 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_req_nodes,
1379 ett_diameter_3gpp_req_nodes, diameter_3gpp_req_nodes_fields, ENC_BIG_ENDIAN, BMT_NO_FALSE);
1381 return 4;
1385 /* AVP Code: 900 TMGI */
1386 static int
1387 dissect_diameter_3gpp_tmgi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
1389 proto_item *item;
1390 proto_tree *sub_tree;
1391 int offset = 0;
1393 item = proto_tree_add_item(tree, hf_diameter_3gpp_tmgi, tvb, offset, 6, ENC_NA);
1394 sub_tree = proto_item_add_subtree(item,ett_diameter_3gpp_tmgi);
1396 /* MBMS Service ID consisting of three octets. MBMS Service ID consists of a 6-digit
1397 * fixed-length hexadecimal number between 000000 and FFFFFF.
1398 * MBMS Service ID uniquely identifies an MBMS bearer service within a PLMN.
1401 proto_tree_add_item(sub_tree, hf_diameter_mbms_service_id, tvb, offset, 3, ENC_BIG_ENDIAN);
1402 offset = offset+3;
1403 offset = dissect_e212_mcc_mnc(tvb, pinfo, sub_tree, offset, E212_NONE, true);
1405 return offset;
1409 /* AVP Code: 903 MBMS-Service-Area */
1411 /* AVP Code: 917 MBMS-GGSN-IPv6-Address */
1412 static int
1413 dissect_diameter_3gpp_ipv6addr(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
1415 int offset = 0;
1417 proto_tree_add_item(tree, hf_diameter_3gpp_ipv6addr, tvb, offset, 16, ENC_NA);
1419 offset += 16;
1421 return offset;
1425 /* AVP Code: 918 MBMS-BMSC-SSM-IP-Address */
1426 static int
1427 dissect_diameter_3gpp_ipaddr(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
1429 int offset = 0;
1431 proto_tree_add_item(tree, hf_diameter_3gpp_ipaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
1432 offset += 4;
1434 return offset;
1438 /* AVP Code: 909 RAI AVP
1439 * 17.7.12 RAI AVP
1440 * The RAI AVP (AVP Code 909) is of type UTF8String, and contains the Routing Area Identity of the SGSN where the
1441 * UE is registered. RAI use and structure is specified in 3GPP TS 23.003 [40].
1442 * Its value shall be encoded as a UTF-8 string on either 11 (if the MNC contains two digits) or 12 (if the MNC contains
1443 * three digits) octets as follows:
1444 * - The MCC shall be encoded first using three UTF-8 characters on three octets, each character representing a
1445 * decimal digit starting with the first MCC digit.
1446 * - Then, the MNC shall be encoded as either two or three UTF-8 characters on two or three octets, each character
1447 * representing a decimal digit starting with the first MNC digit.
1448 * - The Location Area Code (LAC) is encoded next using four UTF-8 characters on four octets, each character
1449 * representing a hexadecimal digit of the LAC which is two binary octets long.
1450 * - The Routing Area Code (RAC) is encoded last using two UTF-8 characters on two octets, each character
1451 * representing a hexadecimal digit of the RAC which is one binary octet long.
1452 * NOTE: As an example, a RAI with the following information: MCC=123, MNC=45, LAC=41655(0xA2C1) and
1453 * RAC=10(0x0A) is encoded within the RAI AVP as a UTF-8 string of "12345A2C10A".
1456 static int
1457 dissect_diameter_3gpp_rai(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree _U_, void *data)
1459 diam_sub_dis_t *diam_sub_dis = (diam_sub_dis_t*)data;
1460 unsigned length;
1462 length = tvb_reported_length(tvb);
1464 if(length==12) {
1465 diam_sub_dis->avp_str = wmem_strdup_printf(pinfo->pool, "MCC %s, MNC %s, LAC 0x%s, RAC 0x%s",
1466 tvb_get_string_enc(pinfo->pool, tvb, 0, 3, ENC_UTF_8|ENC_NA), /* MCC 3 digits */
1467 tvb_get_string_enc(pinfo->pool, tvb, 3, 3, ENC_UTF_8|ENC_NA), /* MNC 3 digits */
1468 tvb_get_string_enc(pinfo->pool, tvb, 6, 4, ENC_UTF_8|ENC_NA), /* LCC 4 digits */
1469 tvb_get_string_enc(pinfo->pool, tvb, 10, 2, ENC_UTF_8|ENC_NA) /* RAC 2 digits */
1471 } else {
1472 diam_sub_dis->avp_str = wmem_strdup_printf(pinfo->pool, "MCC %s, MNC %s, LAC 0x%s, RAC 0x%s",
1473 tvb_get_string_enc(pinfo->pool, tvb, 0, 3, ENC_UTF_8|ENC_NA), /* MCC 3 digits */
1474 tvb_get_string_enc(pinfo->pool, tvb, 3, 2, ENC_UTF_8|ENC_NA), /* MNC 2 digits */
1475 tvb_get_string_enc(pinfo->pool, tvb, 5, 4, ENC_UTF_8|ENC_NA), /* LCC 4 digits */
1476 tvb_get_string_enc(pinfo->pool, tvb, 9, 2, ENC_UTF_8|ENC_NA) /* RAC 2 digits */
1480 return length;
1483 /* AVP Code: 913 MBMS-Required-QoS */
1484 static int
1485 dissect_diameter_3gpp_mbms_required_qos(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
1487 int offset = 0;
1488 unsigned length;
1490 /* Octet
1491 * 1 Allocation/Retention Priority as specified in 3GPP TS 23.107.
1492 * This octet encodes each priority level defined in 3GPP TS 23.107
1493 * as the binary value of the priority level. It specifies the relative
1494 * importance of the actual MBMS bearer service compared to other MBMS
1495 * and non-MBMS bearer services for allocation and retention of the
1496 * MBMS bearer service.
1497 * 2-N QoS Profile as specified by the Quality-of-Service information element,
1498 * from octet 3 onwards, in 3GPP TS 24.008
1500 proto_tree_add_item(tree, hf_diameter_3gpp_mbms_required_qos_prio, tvb, offset, 1, ENC_BIG_ENDIAN);
1501 offset++;
1502 length = tvb_reported_length(tvb) - 1;
1503 de_sm_qos(tvb, tree, pinfo, offset,length, NULL, 0);
1504 return offset+length;
1508 /* AVP Code: 926 MBMS-BMSC-SSM-UDP-Port */
1509 /* AVP Code: 927 MBMS-GW-UDP-Port */
1510 static int
1511 dissect_diameter_3gpp_udp_port(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
1513 int offset = 0;
1515 proto_tree_add_item(tree, hf_diameter_3gpp_udp_port, tvb, offset, 1, ENC_BIG_ENDIAN);
1517 offset += 1;
1519 return offset;
1522 /* AVP Code: 929 MBMS-Data-Transfer-Start */
1523 /* AVP Code: 930 MBMS-Data-Transfer-Stop */
1524 static int
1525 dissect_diameter_3gpp_mbms_abs_time_ofmbms_data_tfer(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
1527 int offset = 0;
1529 proto_tree_add_item(tree, hf_diameter_3gpp_mbms_abs_time_ofmbms_data_tfer, tvb, offset, 8, ENC_TIME_NTP | ENC_BIG_ENDIAN);
1530 offset+=8;
1532 return offset;
1535 /* AVP Code: 1082 Credit-Management-Status */
1536 static int
1537 dissect_diameter_3gpp_credit_management_status(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
1539 static int * const flags[] = {
1540 &hf_diameter_3gpp_cms_spare_bits,
1541 &hf_diameter_3gpp_cms_no_gyn_session_serv_not_allowed,
1542 &hf_diameter_3gpp_cms_no_gyn_session_serv_allowed,
1543 &hf_diameter_3gpp_cms_rating_failed,
1544 &hf_diameter_3gpp_cms_user_unknown,
1545 &hf_diameter_3gpp_cms_auth_rej,
1546 &hf_diameter_3gpp_cms_credit_ctrl_not_applicable,
1547 &hf_diameter_3gpp_cms_end_user_serv_status,
1548 NULL
1552 proto_tree *subtree = proto_tree_add_subtree(tree, tvb, 0, 4, ett_diameter_3gpp_cms, NULL, "Credit-Management-Status bit mask");
1553 proto_tree_add_bitmask_list(subtree, tvb, 0, 4, flags, ENC_BIG_ENDIAN);
1554 return 4;
1557 /* AVP Code: 1242 location estimate */
1558 static int
1559 dissect_diameter_3gpp_location_estimate(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
1561 dissect_geographical_description(tvb, pinfo, tree);
1563 return tvb_reported_length(tvb);
1566 /* AVP Code: 1263 Access-Network-Information
1567 * 3GPP TS 32.299
1568 * The Access-Network-Information AVP (AVP code 1263) is of type OctetString
1569 * and indicates one instance of the SIP P-header "P-Access-Network-Info".
1570 * In SIP, as per RFC 7315 [404], the content of the "P-Access-Network-Info"
1571 * header is known as the access-net-spec.
1573 static int
1574 dissect_diameter_3gpp_access_network_information(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
1576 int offset = 0;
1577 int length = tvb_reported_length(tvb);
1579 dissect_sip_p_access_network_info_header(tvb, pinfo, tree, offset, length);
1581 return length;
1584 /* AVP Code: 1304 Secondary-RAT-Type
1585 * 3GPP TS 32.299
1587 static const value_string diameter_3gpp_secondary_rat_type_vals[] = {
1588 { 0, "5G NR" },
1589 { 0, NULL }
1592 static int
1593 dissect_diameter_3gpp_secondary_rat_type(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
1595 int offset = 0;
1596 int length = tvb_reported_length(tvb);
1598 proto_tree_add_item(tree, hf_diameter_3gpp_secondary_rat_type, tvb, offset, 1, ENC_BIG_ENDIAN);
1600 return length;
1603 /* Helper function returning the main bitrates in kbps */
1604 static uint32_t
1605 qos_calc_bitrate(uint8_t oct)
1607 if (oct <= 0x3f)
1608 return oct;
1609 if (oct <= 0x7f)
1610 return 64 + (oct - 0x40) * 8;
1612 return 576 + (oct - 0x80) * 64;
1615 /* Helper function returning the extended bitrates in kbps */
1616 static uint32_t
1617 qos_calc_ext_bitrate(uint8_t oct)
1619 if (oct <= 0x4a)
1620 return 8600 + oct * 100;
1621 if (oct <= 0xba)
1622 return 16000 + (oct - 0x4a) * 1000;
1624 return 128000 + (oct - 0xba) * 2000;
1628 /* 3GPP TS 29.272
1629 * 7.3.77 QoS-Subscribed
1630 * AVP Code: 1404 QoS-Subscribed
1632 * The QoS-Subscribed AVP is of type OctetString. Octets are coded according to 3GPP TS 29.002
1633 * (octets of QoS-Subscribed, Ext-QoS-Subscribed, Ext2-QoS-Subscribed, Ext3-QoS-Subscribed and
1634 * Ext4-QoS-Subscribed values are concatenated).
1637 static int
1638 dissect_diameter_3ggp_qos_susbscribed(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
1640 unsigned offset = 0;
1641 unsigned length = tvb_reported_length(tvb);
1642 proto_tree *subtree;
1643 proto_item *item;
1644 unsigned char oct, tmp_oct;
1645 const char *str;
1646 uint32_t tmp32;
1648 item = proto_tree_add_item(tree, hf_diameter_3gpp_qos_subscribed, tvb, offset, length, ENC_NA);
1649 subtree = proto_item_add_subtree(item, ett_diameter_3gpp_qos_subscribed);
1651 /* QoS-Subscribed:: SIZE(3)
1652 * 1-3 Octets are coded according to TS 3GPP TS 24.008 Quality of Service Octets 3-5
1654 if (length >= 3) {
1655 proto_tree_add_item(subtree, hf_diameter_3gpp_qos_reliability_cls, tvb, offset, 1, ENC_BIG_ENDIAN);
1656 proto_tree_add_item(subtree, hf_diameter_3gpp_qos_delay_cls, tvb, offset, 1, ENC_BIG_ENDIAN);
1657 proto_tree_add_bits_item(subtree, hf_diameter_3gpp_spare_bits, tvb, offset << 3, 2, ENC_BIG_ENDIAN);
1658 offset += 1;
1660 proto_tree_add_item(subtree, hf_diameter_3gpp_qos_prec_class, tvb, offset, 1, ENC_BIG_ENDIAN);
1661 proto_tree_add_bits_item(subtree, hf_diameter_3gpp_spare_bits, tvb, (offset << 3) + 4, 1, ENC_BIG_ENDIAN);
1662 proto_tree_add_item(subtree, hf_diameter_3gpp_qos_peak_thr, tvb, offset, 1, ENC_BIG_ENDIAN);
1663 offset += 1;
1665 proto_tree_add_item(subtree, hf_diameter_3gpp_qos_mean_thr, tvb, offset, 1, ENC_BIG_ENDIAN);
1666 proto_tree_add_bits_item(subtree, hf_diameter_3gpp_spare_bits, tvb, (offset << 3), 3, ENC_BIG_ENDIAN);
1667 offset += 1;
1670 /* Ext-QoS-Subscribed:: SIZE(1..9)
1671 * 1 Allocation / Retention Priority (This octet encodes each priority level defined in
1672 * 23.107 as the binary value of the priority level, declaration in 29.060).
1673 * 2-9 Octets are coded according to 3GPP TS 24.008 Quality of Service Octets 6-13
1675 if (length >= 4) {
1676 proto_tree_add_item(subtree, hf_diameter_3gpp_qos_al_ret_priority, tvb, offset, 1, ENC_NA);
1677 offset += 1;
1680 if (length >= 5) {
1681 proto_tree_add_item(subtree, hf_diameter_3gpp_qos_del_of_err_sdu, tvb, offset, 1, ENC_BIG_ENDIAN);
1682 proto_tree_add_item(subtree, hf_diameter_3gpp_qos_del_order, tvb, offset, 1, ENC_BIG_ENDIAN);
1683 proto_tree_add_item(subtree, hf_diameter_3gpp_qos_traffic_cls, tvb, offset, 1, ENC_BIG_ENDIAN);
1684 offset += 1;
1687 if (length >= 6) {
1688 oct = tvb_get_uint8(tvb, offset);
1689 switch (oct) {
1690 case 0x00: str = "Subscribed maximum SDU size (MS to net); Reserved (net to MS)"; break;
1691 case 0x97: str = "1502 octets"; break;
1692 case 0x98: str = "1510 octets"; break;
1693 case 0x99: str = "1520 octets"; break;
1694 case 0xff: str = "Reserved"; break;
1695 default: str = "Unspecified/Reserved";
1698 if ((oct >= 1) && (oct <= 0x96))
1699 proto_tree_add_uint_format_value(subtree, hf_diameter_3gpp_qos_maximum_sdu_size, tvb, offset, 1, oct, "%u octets (%u)", oct * 10, oct);
1700 else
1701 proto_tree_add_uint_format_value(subtree, hf_diameter_3gpp_qos_maximum_sdu_size, tvb, offset, 1, oct, "%s (%u)", str, oct);
1703 offset += 1;
1706 if (length >= 7) {
1707 oct = tvb_get_uint8(tvb, offset);
1709 switch (oct) {
1710 case 0x00: str = "Subscribed maximum bit rate for uplink (MS to net); Reserved (net to MS)"; break;
1711 case 0xfe: str = "8640 kbps; Check extended"; break;
1712 case 0xff: str = "0 kbps"; break;
1713 default: str = wmem_strdup_printf(pinfo->pool, "%u kbps", qos_calc_bitrate(oct));
1716 proto_tree_add_uint_format_value(subtree, hf_diameter_3gpp_qos_max_bitrate_upl, tvb, offset, 1, oct, "%s (%u)", str, oct);
1717 offset += 1;
1720 if (length >= 8) {
1721 oct = tvb_get_uint8(tvb, offset);
1723 switch (oct) {
1724 case 0x00: str = "Subscribed maximum bit rate for downlink (MS to net); Reserved (net to MS)"; break;
1725 case 0xfe: str = "8640 kbps; Check extended"; break;
1726 case 0xff: str = "0 kbps"; break;
1727 default: str = wmem_strdup_printf(pinfo->pool, "%u kbps", qos_calc_bitrate(oct));
1730 proto_tree_add_uint_format_value(subtree, hf_diameter_3gpp_qos_max_bitrate_downl, tvb, offset, 1, oct, "%s (%u)", str, oct);
1731 offset += 1;
1734 if (length >= 9) {
1735 proto_tree_add_item(subtree, hf_diameter_3gpp_qos_sdu_err_rat, tvb, offset, 1, ENC_BIG_ENDIAN);
1736 proto_tree_add_item(subtree, hf_diameter_3gpp_qos_ber, tvb, offset, 1, ENC_BIG_ENDIAN);
1737 offset += 1;
1740 if (length >= 10) {
1741 proto_tree_add_item(subtree, hf_diameter_3gpp_qos_traff_hdl_pri, tvb, offset, 1, ENC_BIG_ENDIAN);
1743 oct = tvb_get_uint8(tvb, offset);
1744 tmp_oct = oct >> 2;
1745 switch (tmp_oct) {
1746 case 0x00: str = "Subscribed transfer delay (MS to net); Reserved (net to MS)"; break;
1747 case 0x3f: str = "Reserved"; break;
1748 default:
1749 if (oct <= 0x0f)
1750 tmp32 = tmp_oct * 10;
1751 else if (oct <= 0x1f)
1752 tmp32 = (tmp_oct - 0x10) * 50 + 200;
1753 else
1754 tmp32 = (tmp_oct - 0x20) * 100 + 1000;
1755 str = wmem_strdup_printf(pinfo->pool, "%u ms", tmp32);
1757 proto_tree_add_uint_format_value(subtree, hf_diameter_3gpp_qos_trans_delay, tvb, offset, 1, oct, "%s (%u)", str, tmp_oct);
1758 offset += 1;
1761 if (length >= 11) {
1762 oct = tvb_get_uint8(tvb, offset);
1764 switch (oct) {
1765 case 0x00: str = "Subscribed guaranteed bit rate for uplink (MS to net); Reserved (net to MS)"; break;
1766 case 0xfe: str = "8640 kbps; Check extended"; break;
1767 case 0xff: str = "0 kbps"; break;
1768 default: str = wmem_strdup_printf(pinfo->pool, "%u kbps", qos_calc_bitrate(oct));
1771 proto_tree_add_uint_format_value(subtree, hf_diameter_3gpp_qos_guar_bitrate_upl, tvb, offset, 1, oct, "%s (%u)", str, oct);
1772 offset += 1;
1775 if (length >= 12) {
1776 oct = tvb_get_uint8(tvb, offset);
1778 switch (oct) {
1779 case 0x00: str = "Subscribed guaranteed bit rate for downlink (MS to net); Reserved (net to MS)"; break;
1780 case 0xfe: str = "8640 kbps; Check extended"; break;
1781 case 0xff: str = "0 kbps"; break;
1782 default: str = wmem_strdup_printf(pinfo->pool, "%u kbps", qos_calc_bitrate(oct));
1785 proto_tree_add_uint_format_value(subtree, hf_diameter_3gpp_qos_guar_bitrate_downl, tvb, offset, 1, oct, "%s (%u)", str, oct);
1786 offset += 1;
1789 /* Ext2-QoS-Subscribed:: SIZE(1..3)
1790 * 1-3 Octets are coded according to 3GPP TS 24.008 Quality of Service Octets 14-16
1792 if (length >= 13) {
1793 oct = tvb_get_uint8(tvb, offset);
1794 tmp_oct = oct & 0x0f;
1795 if (tmp_oct == 0x01)
1796 str = "speech (MS to net); spare bits (net to MS)";
1797 else
1798 str = "unknown (MS to net); spare bits (net to MS)";
1800 proto_tree_add_uint_format_value(subtree, hf_diameter_3gpp_qos_source_stat_desc, tvb, offset, 1, oct, "%s (%u)", str, tmp_oct);
1801 proto_tree_add_item(subtree, hf_diameter_3gpp_qos_signalling_ind, tvb, offset, 1, ENC_BIG_ENDIAN);
1802 proto_tree_add_bits_item(subtree, hf_diameter_3gpp_spare_bits, tvb, (offset << 3), 3, ENC_BIG_ENDIAN);
1803 offset += 1;
1806 if (length >= 14) {
1807 oct = tvb_get_uint8(tvb, offset);
1809 if (oct == 0x00)
1810 str = "Use the value indicated by the Maximum bit rate for downlink";
1811 else if (oct > 0xfa) /* shouldn't go past 256 MBps */
1812 str = "undefined";
1813 else if (oct == 0xfa)
1814 str = "256 Mbps; Check extended 2";
1815 else {
1816 tmp32 = qos_calc_ext_bitrate(oct);
1817 if (oct >= 0x4a)
1818 str = wmem_strdup_printf(pinfo->pool, "%u Mbps", tmp32 / 1000);
1819 else
1820 str = wmem_strdup_printf(pinfo->pool, "%u kbps", tmp32);
1822 proto_tree_add_uint_format_value(subtree, hf_diameter_3gpp_qos_max_bitrate_downl_ext, tvb, offset, 1, oct, "%s (%u)", str, oct);
1823 offset += 1;
1826 if (length >= 15) {
1827 oct = tvb_get_uint8(tvb, offset);
1829 if (oct == 0x00)
1830 str = "Use the value indicated by the Guaranteed bit rate for downlink";
1831 else if (oct > 0xfa) /* shouldn't go past 256 MBps */
1832 str = "undefined";
1833 else if (oct == 0xfa)
1834 str = "256 Mbps; Check extended 2";
1835 else {
1836 tmp32 = qos_calc_ext_bitrate(oct);
1837 if (oct >= 0x4a)
1838 str = wmem_strdup_printf(pinfo->pool, "%u Mbps", tmp32 / 1000);
1839 else
1840 str = wmem_strdup_printf(pinfo->pool, "%u kbps", tmp32);
1842 proto_tree_add_uint_format_value(subtree, hf_diameter_3gpp_qos_guar_bitrate_downl_ext, tvb, offset, 1, oct, "%s (%u)", str, oct);
1843 offset += 1;
1846 /* Ext3-QoS-Susbcribed:: SIZE(1..2)
1847 * 1-2 Octets are coded according to 3GPP TS 24.008 Quality of Service Octets 17-18
1849 if (length >= 16) {
1850 oct = tvb_get_uint8(tvb, offset);
1852 if (oct == 0x00)
1853 str = "Use the value indicated by the Maximum bit rate for uplink";
1854 else if (oct > 0xfa) /* shouldn't go past 256 MBps */
1855 str = "undefined";
1856 else if (oct == 0xfa)
1857 str = "256 Mbps; Check extended 2";
1858 else {
1859 tmp32 = qos_calc_ext_bitrate(oct);
1860 if (oct >= 0x4a)
1861 str = wmem_strdup_printf(pinfo->pool, "%u Mbps", tmp32 / 1000);
1862 else
1863 str = wmem_strdup_printf(pinfo->pool, "%u kbps", tmp32);
1865 proto_tree_add_uint_format_value(subtree, hf_diameter_3gpp_qos_max_bitrate_upl_ext, tvb, offset, 1, oct, "%s (%u)", str, oct);
1866 offset += 1;
1869 if (length >= 17) {
1870 oct = tvb_get_uint8(tvb, offset);
1872 if (oct == 0x00)
1873 str = "Use the value indicated by the Guaranteed bit rate for uplink";
1874 else if (oct > 0xfa) /* shouldn't go past 256 MBps */
1875 str = "undefined";
1876 else if (oct == 0xfa)
1877 str = "256 Mbps; Check extended 2";
1878 else {
1879 tmp32 = qos_calc_ext_bitrate(oct);
1880 if (oct >= 0x4a)
1881 str = wmem_strdup_printf(pinfo->pool, "%u Mbps", tmp32 / 1000);
1882 else
1883 str = wmem_strdup_printf(pinfo->pool, "%u kbps", tmp32);
1885 proto_tree_add_uint_format_value(subtree, hf_diameter_3gpp_qos_guar_bitrate_upl_ext, tvb, offset, 1, oct, "%s (%u)", str, oct);
1886 offset += 1;
1889 /* Ext4-QoS-Subscribed:: SIZE(1)
1890 * 1 Evolved Allocation / Retention Priority. This octet encodes the Priority Level (PL),
1891 * the Preemption Capability (PCI) and Preemption Vulnerability (PVI) values, as described
1892 * in 3GPP TS 29.060.
1895 if (length >= 18) {
1896 proto_tree_add_item(subtree, hf_diameter_3gpp_qos_pre_emption_vulnerability, tvb, offset, 1, ENC_BIG_ENDIAN);
1897 proto_tree_add_bits_item(subtree, hf_diameter_3gpp_spare_bits, tvb, (offset << 3) + 6 , 1, ENC_BIG_ENDIAN);
1898 proto_tree_add_item(subtree, hf_diameter_3gpp_qos_priority_level, tvb, offset, 1, ENC_BIG_ENDIAN);
1899 proto_tree_add_item(subtree, hf_diameter_3gpp_qos_pre_emption_capability, tvb, offset, 1, ENC_BIG_ENDIAN);
1900 proto_tree_add_bits_item(subtree, hf_diameter_3gpp_spare_bits, tvb, (offset << 3), 1, ENC_BIG_ENDIAN);
1901 /*offset += 1;*/
1904 return length;
1907 /* 3GPP TS 29.272
1908 * 7.3.7 ULR-Flags
1909 * AVP Code: 1405 ULR-Flags
1911 static int
1912 dissect_diameter_3gpp_ulr_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
1914 static int * const flags[] = {
1915 &hf_diameter_3gpp_ulr_flags_spare_bits,
1916 &hf_diameter_3gpp_ulr_flags_bit8,
1917 &hf_diameter_3gpp_ulr_flags_bit7,
1918 &hf_diameter_3gpp_ulr_flags_bit6,
1919 &hf_diameter_3gpp_ulr_flags_bit5,
1920 &hf_diameter_3gpp_ulr_flags_bit4,
1921 &hf_diameter_3gpp_ulr_flags_bit3,
1922 &hf_diameter_3gpp_ulr_flags_bit2,
1923 &hf_diameter_3gpp_ulr_flags_bit1,
1924 &hf_diameter_3gpp_ulr_flags_bit0,
1925 NULL
1928 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
1930 /* Hide the item created in packet-diameter.c and only show the one created here */
1931 proto_item_set_hidden(diam_sub_dis_inf->item);
1933 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_ulr_flags, ett_diameter_3gpp_ulr_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
1934 return 4;
1937 /* AVP Code: 1406 ULA-Flags */
1938 static int
1939 dissect_diameter_3gpp_ula_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
1941 static int * const flags[] = {
1942 &hf_diameter_3gpp_ula_flags_spare_bits,
1943 &hf_diameter_3gpp_ula_flags_bit1,
1944 &hf_diameter_3gpp_ula_flags_bit0,
1945 NULL
1948 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
1950 /* Hide the item created in packet-diameter.c and only show the one created here */
1951 proto_item_set_hidden(diam_sub_dis_inf->item);
1953 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_ula_flags, ett_diameter_3gpp_ula_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
1954 return 4;
1957 /* AVP Code: 1407 Visited-PLMN-Id */
1958 static int
1959 dissect_diameter_3gpp_visited_plmn_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
1961 int length = tvb_reported_length(tvb);
1962 diam_sub_dis_t *diam_sub_dis = (diam_sub_dis_t*)data;
1964 if (length == 3) {
1965 diam_sub_dis->avp_str = dissect_e212_mcc_mnc_wmem_packet_str(tvb, pinfo, tree, 0, E212_NONE, true);
1966 } else {
1967 proto_tree_add_expert(tree, pinfo, &ei_diameter_3gpp_plmn_id_wrong_len, tvb, 0, length);
1970 return length;
1973 * 3GPP TS 29.272
1974 * 7.3.25 DSR-Flags
1975 * AVP Code: 1421 DSR-Flags
1977 static int
1978 dissect_diameter_3gpp_dsr_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
1980 static int * const flags[] = {
1981 &hf_diameter_3gpp_dsr_flags_bit31,
1982 &hf_diameter_3gpp_dsr_flags_bit30,
1983 &hf_diameter_3gpp_dsr_flags_bit29,
1984 &hf_diameter_3gpp_dsr_flags_bit28,
1985 &hf_diameter_3gpp_dsr_flags_bit27,
1986 &hf_diameter_3gpp_dsr_flags_bit26,
1987 &hf_diameter_3gpp_dsr_flags_bit25,
1988 &hf_diameter_3gpp_dsr_flags_bit24,
1989 &hf_diameter_3gpp_dsr_flags_bit23,
1990 &hf_diameter_3gpp_dsr_flags_bit22,
1991 &hf_diameter_3gpp_dsr_flags_bit21,
1992 &hf_diameter_3gpp_dsr_flags_bit20,
1993 &hf_diameter_3gpp_dsr_flags_bit19,
1994 &hf_diameter_3gpp_dsr_flags_bit18,
1995 &hf_diameter_3gpp_dsr_flags_bit17,
1996 &hf_diameter_3gpp_dsr_flags_bit16,
1997 &hf_diameter_3gpp_dsr_flags_bit15,
1998 &hf_diameter_3gpp_dsr_flags_bit14,
1999 &hf_diameter_3gpp_dsr_flags_bit13,
2000 &hf_diameter_3gpp_dsr_flags_bit12,
2001 &hf_diameter_3gpp_dsr_flags_bit11,
2002 &hf_diameter_3gpp_dsr_flags_bit10,
2003 &hf_diameter_3gpp_dsr_flags_bit9,
2004 &hf_diameter_3gpp_dsr_flags_bit8,
2005 &hf_diameter_3gpp_dsr_flags_bit7,
2006 &hf_diameter_3gpp_dsr_flags_bit6,
2007 &hf_diameter_3gpp_dsr_flags_bit5,
2008 &hf_diameter_3gpp_dsr_flags_bit4,
2009 &hf_diameter_3gpp_dsr_flags_bit3,
2010 &hf_diameter_3gpp_dsr_flags_bit2,
2011 &hf_diameter_3gpp_dsr_flags_bit1,
2012 &hf_diameter_3gpp_dsr_flags_bit0,
2013 NULL
2016 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2018 /* Hide the item created in packet-diameter.c and only show the one created here */
2019 proto_item_set_hidden(diam_sub_dis_inf->item);
2021 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_dsr_flags, ett_diameter_3gpp_dsr_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2022 return 4;
2025 /* AVP Code: 1422 DSA-Flags */
2026 static int
2027 dissect_diameter_3gpp_dsa_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2029 static int * const flags[] = {
2030 &hf_diameter_3gpp_dsa_flags_spare_bits,
2031 &hf_diameter_3gpp_dsa_flags_bit0,
2032 NULL
2035 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2037 /* Hide the item created in packet-diameter.c and only show the one created here */
2038 proto_item_set_hidden(diam_sub_dis_inf->item);
2040 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_dsa_flags, ett_diameter_3gpp_dsa_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2041 return 4;
2044 /* AVP Code: 1426 Access-Restriction-Data */
2045 static int
2046 dissect_diameter_3gpp_acc_res_data(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2048 static int * const flags[] = {
2049 &hf_diameter_3gpp_acc_res_dat_flags_spare_bits,
2050 &hf_diameter_3gpp_acc_res_dat_flags_bit12,
2051 &hf_diameter_3gpp_acc_res_dat_flags_bit11,
2052 &hf_diameter_3gpp_acc_res_dat_flags_bit10, /* NR in 5GS Not Allowed*/
2053 &hf_diameter_3gpp_acc_res_dat_flags_bit9,
2054 &hf_diameter_3gpp_acc_res_dat_flags_bit8,
2055 &hf_diameter_3gpp_acc_res_dat_flags_bit7,
2056 &hf_diameter_3gpp_acc_res_dat_flags_bit6,
2057 &hf_diameter_3gpp_acc_res_dat_flags_bit5,
2058 &hf_diameter_3gpp_acc_res_dat_flags_bit4,
2059 &hf_diameter_3gpp_acc_res_dat_flags_bit3,
2060 &hf_diameter_3gpp_acc_res_dat_flags_bit2,
2061 &hf_diameter_3gpp_acc_res_dat_flags_bit1,
2062 &hf_diameter_3gpp_acc_res_dat_flags_bit0,
2063 NULL
2066 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2068 /* Hide the item created in packet-diameter.c and only show the one created here */
2069 proto_item_set_hidden(diam_sub_dis_inf->item);
2071 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_acc_res_dat_flags, ett_diameter_3gpp_dsa_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2072 return 4;
2076 /* AVP Code: 1441 IDA-Flags */
2077 static int
2078 dissect_diameter_3gpp_ida_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
2080 static int * const flags[] = {
2081 &hf_diameter_3gpp_ida_flags_spare_bits,
2082 &hf_diameter_3gpp_ida_flags_bit0,
2083 NULL
2086 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_ida_flags, ett_diameter_3gpp_ida_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2087 return 4;
2090 /* AVP Code: 1442 PUA-Flags */
2091 static int
2092 dissect_diameter_3gpp_pua_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2094 static int * const flags[] = {
2095 &hf_diameter_3gpp_pua_flags_spare_bits,
2096 &hf_diameter_3gpp_pua_flags_bit1,
2097 &hf_diameter_3gpp_pua_flags_bit0,
2098 NULL
2101 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2103 /* Hide the item created in packet-diameter.c and only show the one created here */
2104 proto_item_set_hidden(diam_sub_dis_inf->item);
2106 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_pua_flags, ett_diameter_3gpp_pua_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2107 return 4;
2110 /* AVP Code: 1443 NOR-Flags */
2111 static int
2112 dissect_diameter_3gpp_nor_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2114 static int * const flags[] = {
2115 &hf_diameter_3gpp_nor_flags_spare_bits,
2116 &hf_diameter_3gpp_nor_flags_bit9,
2117 &hf_diameter_3gpp_nor_flags_bit8,
2118 &hf_diameter_3gpp_nor_flags_bit7,
2119 &hf_diameter_3gpp_nor_flags_bit6,
2120 &hf_diameter_3gpp_nor_flags_bit5,
2121 &hf_diameter_3gpp_nor_flags_bit4,
2122 &hf_diameter_3gpp_nor_flags_bit3,
2123 &hf_diameter_3gpp_nor_flags_bit2,
2124 &hf_diameter_3gpp_nor_flags_bit1,
2125 &hf_diameter_3gpp_nor_flags_bit0,
2126 NULL
2129 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2131 /* Hide the item created in packet-diameter.c and only show the one created here */
2132 proto_item_set_hidden(diam_sub_dis_inf->item);
2135 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_nor_flags, ett_diameter_3gpp_nor_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2136 return 4;
2139 /* AVP Code: 1474 GMLC-NUMBER */
2140 static int
2141 dissect_diameter_3gpp_isdn(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
2143 int offset = 0;
2144 int length = tvb_reported_length(tvb);
2146 dissect_e164_isdn(tvb, tree, offset, length, E164_ENC_BCD);
2148 return length;
2151 /* AVP Code: 1490 IDR-Flags */
2152 static int
2153 dissect_diameter_3gpp_idr_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2155 static int * const flags[] = {
2156 &hf_diameter_3gpp_idr_flags_spare_bits,
2157 &hf_diameter_3gpp_idr_flags_bit8,
2158 &hf_diameter_3gpp_idr_flags_bit7,
2159 &hf_diameter_3gpp_idr_flags_bit6,
2160 &hf_diameter_3gpp_idr_flags_bit5,
2161 &hf_diameter_3gpp_idr_flags_bit4,
2162 &hf_diameter_3gpp_idr_flags_bit3,
2163 &hf_diameter_3gpp_idr_flags_bit2,
2164 &hf_diameter_3gpp_idr_flags_bit1,
2165 &hf_diameter_3gpp_idr_flags_bit0,
2166 NULL
2169 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2171 /* Hide the item created in packet-diameter.c and only show the one created here */
2172 proto_item_set_hidden(diam_sub_dis_inf->item);
2174 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_idr_flags, ett_diameter_3gpp_idr_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2175 return 4;
2178 /* AVP Code: 1508 PPR-Flags */
2179 static int
2180 dissect_diameter_3gpp_ppr_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2182 static int * const flags[] = {
2183 &hf_diameter_3gpp_ppr_flags_spare_bits,
2184 &hf_diameter_3gpp_ppr_flags_bit3,
2185 &hf_diameter_3gpp_ppr_flags_bit2,
2186 &hf_diameter_3gpp_ppr_flags_bit1,
2187 &hf_diameter_3gpp_ppr_flags_bit0,
2188 NULL
2191 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2193 /* Hide the item created in packet-diameter.c and only show the one created here */
2194 proto_item_set_hidden(diam_sub_dis_inf->item);
2196 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_ppr_flags, ett_diameter_3gpp_ppr_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2197 return 4;
2200 /* AVP Code: 1518 AAA-Failure-Indication */
2201 /* TGPP TS 29.273, v14.0.0 */
2202 static int
2203 dissect_diameter_3gpp_aaa_fail_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2205 static int * const flags[] = {
2206 &hf_diameter_3gpp_aaa_fail_flags_spare_bits,
2207 &hf_diameter_3gpp_aaa_fail_flags_bit0,
2208 NULL
2211 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2213 /* Hide the item created in packet-diameter.c and only show the one created here */
2214 proto_item_set_hidden(diam_sub_dis_inf->item);
2216 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_aaa_fail_flags, ett_diameter_3gpp_aaa_fail_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2217 return 4;
2221 /* AVP Code: 1520 DER-Flags */
2222 static int
2223 dissect_diameter_3gpp_der_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2225 static int * const flags[] = {
2226 &hf_diameter_3gpp_der_flags_spare_bits,
2227 &hf_diameter_3gpp_der_flags_bit1,
2228 &hf_diameter_3gpp_der_flags_bit0,
2229 NULL
2232 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2234 /* Hide the item created in packet-diameter.c and only show the one created here */
2235 proto_item_set_hidden(diam_sub_dis_inf->item);
2237 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_der_flags, ett_diameter_3gpp_der_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2238 return 4;
2241 /* AVP Code: 1521 DEA-Flags */
2242 static int
2243 dissect_diameter_3gpp_dea_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2245 static int * const flags[] = {
2246 &hf_diameter_3gpp_dea_flags_spare_bits,
2247 &hf_diameter_3gpp_dea_flags_bit1,
2248 &hf_diameter_3gpp_dea_flags_bit0,
2249 NULL
2252 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2254 /* Hide the item created in packet-diameter.c and only show the one created here */
2255 proto_item_set_hidden(diam_sub_dis_inf->item);
2257 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_dea_flags, ett_diameter_3gpp_dea_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2258 return 4;
2261 /* AVP Code: 1522 RAR-Flags */
2262 static int
2263 dissect_diameter_3gpp_rar_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2265 static int * const flags[] = {
2266 &hf_diameter_3gpp_rar_flags_spare_bits,
2267 &hf_diameter_3gpp_rar_flags_bit1,
2268 &hf_diameter_3gpp_rar_flags_bit0,
2269 NULL
2272 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2274 /* Hide the item created in packet-diameter.c and only show the one created here */
2275 proto_item_set_hidden(diam_sub_dis_inf->item);
2277 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_rar_flags, ett_diameter_3gpp_rar_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2278 return 4;
2281 /* AVP Code: 1523 DER-S6b-Flags */
2282 static int
2283 dissect_diameter_3gpp_der_s6b_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2285 static int * const flags[] = {
2286 &hf_diameter_3gpp_der_s6b_flags_spare_bits,
2287 &hf_diameter_3gpp_der_s6b_flags_bit0,
2288 NULL
2291 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2293 /* Hide the item created in packet-diameter.c and only show the one created here */
2294 proto_item_set_hidden(diam_sub_dis_inf->item);
2297 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_der_s6b_flags, ett_diameter_3gpp_der_s6b_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2298 return 4;
2301 /* AVP Code: 1538 Emergency-Services */
2302 static int
2303 dissect_diameter_3gpp_emergency_services(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2305 static int * const flags[] = {
2306 &hf_diameter_3gpp_emergency_services_flags_spare_bits,
2307 &hf_diameter_3gpp_emergency_services_flags_bit0,
2308 NULL
2311 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2313 /* Hide the item created in packet-diameter.c and only show the one created here */
2314 proto_item_set_hidden(diam_sub_dis_inf->item);
2316 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_emergency_services_flags, ett_diameter_3gpp_emergency_services_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2317 return 4;
2321 /* 3GPP TS 29.272
2322 * 7.3.149 PUR-Flags
2323 * AVP Code: 1635 PUR-Flags
2325 static int
2326 dissect_diameter_3gpp_pur_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2328 static int * const flags[] = {
2329 &hf_diameter_3gpp_pur_flags_spare_bits,
2330 &hf_diameter_3gpp_pur_flags_bit1,
2331 &hf_diameter_3gpp_pur_flags_bit0,
2332 NULL
2335 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2337 /* Hide the item created in packet-diameter.c and only show the one created here */
2338 proto_item_set_hidden(diam_sub_dis_inf->item);
2341 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_pur_flags, ett_diameter_3gpp_pur_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2342 return 4;
2345 /* 3GPP TS 29.272
2346 * 7.3.152 CLR-Flag
2347 * AVP Code: 1638 CLR-Flag
2349 static int
2350 dissect_diameter_3gpp_clr_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2352 static int * const flags[] = {
2353 &hf_diameter_3gpp_clr_flags_spare_bits,
2354 &hf_diameter_3gpp_clr_flags_bit1,
2355 &hf_diameter_3gpp_clr_flags_bit0,
2356 NULL
2359 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2361 /* Hide the item created in packet-diameter.c and only show the one created here */
2362 proto_item_set_hidden(diam_sub_dis_inf->item);
2364 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_clr_flags, ett_diameter_3gpp_clr_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2365 return 4;
2368 /* 3GPP TS 29.272
2369 * 7.3.153 UVR-Flags
2370 * AVP Code: 1639 UVR-Flags
2372 static int
2373 dissect_diameter_3gpp_uvr_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2375 static int * const flags[] = {
2376 &hf_diameter_3gpp_uvr_flags_spare_bits,
2377 &hf_diameter_3gpp_uvr_flags_bit0,
2378 NULL
2381 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2383 /* Hide the item created in packet-diameter.c and only show the one created here */
2384 proto_item_set_hidden(diam_sub_dis_inf->item);
2386 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_uvr_flags, ett_diameter_3gpp_uvr_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2387 return 4;
2390 /* 3GPP TS 29.272
2391 * 7.3.154 UVA-Flags
2392 * AVP Code: 1640 UVA-Flags
2394 static int
2395 dissect_diameter_3gpp_uva_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2397 static int * const flags[] = {
2398 &hf_diameter_3gpp_uva_flags_spare_bits,
2399 &hf_diameter_3gpp_uva_flags_bit0,
2400 NULL
2403 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2405 /* Hide the item created in packet-diameter.c and only show the one created here */
2406 proto_item_set_hidden(diam_sub_dis_inf->item);
2408 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_uva_flags, ett_diameter_3gpp_uva_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2409 return 4;
2412 /* 3GPP TS 29.272
2413 * 7.3.159 MME-Number-for-MT-SMS
2414 * AVP Code: 1645 MME-Number-for-MT-SMS
2416 static int
2417 dissect_diameter_3gpp_mme_number_for_mt_sms(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
2419 int offset = 0;
2420 int length = tvb_reported_length(tvb);
2422 dissect_e164_isdn(tvb, tree, offset, length, E164_ENC_BCD);
2424 return length;
2427 /* 3GPP TS 29.272
2428 * 7.3.165 Subscription-Data-Flags
2429 * AVP Code: 1654 Subscription-Data-Flags
2431 static int
2432 dissect_diameter_3gpp_subscription_data_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2434 static int * const flags[] = {
2435 &hf_diameter_3gpp_subscription_data_flags_spare_bits,
2436 &hf_diameter_3gpp_subscription_data_flags_bit3,
2437 &hf_diameter_3gpp_subscription_data_flags_bit2,
2438 &hf_diameter_3gpp_subscription_data_flags_bit1,
2439 &hf_diameter_3gpp_subscription_data_flags_bit0,
2440 NULL
2443 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2445 /* Hide the item created in packet-diameter.c and only show the one created here */
2446 proto_item_set_hidden(diam_sub_dis_inf->item);
2448 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_subscription_data_flags, ett_diameter_3gpp_subscription_data_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2449 return 4;
2452 /* 3GPP TS 29.272
2453 * 7.3.182 WLAN-offloadability-EUTRAN
2454 * AVP Code: 1668 WLAN-offloadability-EUTRAN
2456 static int
2457 dissect_diameter_3gpp_wlan_offloadability_eutran(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2459 static int * const flags[] = {
2460 &hf_diameter_3gpp_wlan_offloadability_eutran_spare_bits,
2461 &hf_diameter_3gpp_wlan_offloadability_eutran_bit0,
2462 NULL
2465 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2467 /* Hide the item created in packet-diameter.c and only show the one created here */
2468 proto_item_set_hidden(diam_sub_dis_inf->item);
2470 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_wlan_offloadability_eutran, ett_diameter_3gpp_wlan_offloadability_eutran, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2471 return 4;
2474 /* 3GPP TS 29.272
2475 * 7.3.183 WLAN-offloadability-EUTRAN
2476 * AVP Code: 1669 WLAN-offloadability-EUTRAN
2478 static int
2479 dissect_diameter_3gpp_wlan_offloadability_utran(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2481 static int * const flags[] = {
2482 &hf_diameter_3gpp_wlan_offloadability_utran_spare_bits,
2483 &hf_diameter_3gpp_wlan_offloadability_utran_bit0,
2484 NULL
2487 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2489 /* Hide the item created in packet-diameter.c and only show the one created here */
2490 proto_item_set_hidden(diam_sub_dis_inf->item);
2492 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_wlan_offloadability_utran, ett_diameter_3gpp_wlan_offloadability_utran, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2493 return 4;
2496 /* 3GPP TS 29.272
2497 * 7.3.191 Group-PLMN-Id
2498 * AVP Code: 1677 Group-PLMN-Id
2500 static int
2501 dissect_diameter_3gpp_group_plmn_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
2503 int length = tvb_reported_length(tvb);
2504 diam_sub_dis_t *diam_sub_dis = (diam_sub_dis_t*)data;
2506 if (length == 3) {
2507 diam_sub_dis->avp_str = dissect_e212_mcc_mnc_wmem_packet_str(tvb, pinfo, tree, 0, E212_NONE, true);
2508 } else {
2509 proto_tree_add_expert(tree, pinfo, &ei_diameter_3gpp_plmn_id_wrong_len, tvb, 0, length);
2512 return length;
2516 /* 3GPP TS 29.272
2517 * 7.3.201 AIR-Flags
2518 * AVP Code: 1679 AIR-Flags
2520 static int
2521 dissect_diameter_3gpp_air_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2523 static int * const flags[] = {
2524 &hf_diameter_3gpp_air_flags_spare_bits,
2525 &hf_diameter_3gpp_air_flags_bit0,
2526 NULL
2529 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2531 /* Hide the item created in packet-diameter.c and only show the one created here */
2532 proto_item_set_hidden(diam_sub_dis_inf->item);
2534 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_air_flags, ett_diameter_3gpp_air_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2535 return 4;
2538 /* 3GPP TS 29.272
2539 * 7.3.209 Preferred-Data-Mode
2540 * AVP Code: 1686 Preferred-Data-Mode
2542 static int
2543 dissect_diameter_3gpp_preferred_data_mode(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2545 static int * const flags[] = {
2546 &hf_diameter_3gpp_preferred_data_mode_spare_bits,
2547 &hf_diameter_3gpp_preferred_data_mode_bit1,
2548 &hf_diameter_3gpp_preferred_data_mode_bit0,
2549 NULL
2552 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2554 /* Hide the item created in packet-diameter.c and only show the one created here */
2555 proto_item_set_hidden(diam_sub_dis_inf->item);
2557 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_preferred_data_mode, ett_diameter_3gpp_preferred_data_mode, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2558 return 4;
2561 /* 3GPP TS 29.272
2562 * 7.3.212 V2X-Permission
2563 * AVP Code: 1689 V2X-Permission
2565 static int
2566 dissect_diameter_3gpp_v2x_permission(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2568 static int * const flags[] = {
2569 &hf_diameter_3gpp_v2x_permission_spare_bits,
2570 &hf_diameter_3gpp_v2x_permission_bit1,
2571 &hf_diameter_3gpp_v2x_permission_bit0,
2572 NULL
2575 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2577 /* Hide the item created in packet-diameter.c and only show the one created here */
2578 proto_item_set_hidden(diam_sub_dis_inf->item);
2580 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_v2x_permission, ett_diameter_3gpp_v2x_permission, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2581 return 4;
2584 /* 3GPP TS 29.272
2585 * 7.3.230 Core-Network-Restrictions
2586 * AVP Code: 1704 Core-Network-Restrictions
2589 dissect_diameter_3gpp_core_network_restrictions(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2591 static int * const flags[] = {
2592 &hf_diameter_3gpp_core_network_restrictions_spare_bits,
2593 &hf_diameter_3gpp_core_network_restrictions_bit1,
2594 &hf_diameter_3gpp_core_network_restrictions_bit0,
2595 NULL
2598 if(data){
2599 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2601 /* Hide the item created in packet-diameter.c and only show the one created here */
2602 proto_item_set_hidden(diam_sub_dis_inf->item);
2604 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_core_network_restrictions, ett_diameter_3gpp_core_network_restrictions, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2605 return 4;
2608 /* AVP Code: 2510 Supported-GAD-Shapes */
2609 static int
2610 dissect_diameter_3gpp_supported_gad_shapes(tvbuff_t* tvb, packet_info* pinfo _U_, proto_tree* tree, void* data)
2612 static int* const flags[] = {
2613 &hf_diameter_3gpp_highaccuracyellipsoidpointwithaltitudeandscalableuncertaintyellipsoid_bit10,
2614 &hf_diameter_3gpp_highaccuracyellipsoidpointwithscalableuncertaintyellipse_bit9,
2615 &hf_diameter_3gpp_highaccuracyellipsoidpointwithaltitudeanduncertaintyellipsoid_bit8,
2616 &hf_diameter_3gpp_highaccuracyellipsoidpointwithuncertaintyellipse_bit7,
2617 &hf_diameter_3gpp_ellipsoidarc_bit6,
2618 &hf_diameter_3gpp_ellipsoidpointwithaltitudeanduncertaintyelipsoid_bit5,
2619 &hf_diameter_3gpp_ellipsoidpointwithaltitude_bit4,
2620 &hf_diameter_3gpp_polygon_bit3,
2621 &hf_diameter_3gpp_ellipsoidpointwithuncertaintyellipse_bit2,
2622 &hf_diameter_3gpp_ellipsoidpointwithuncertaintycircle_bit1,
2623 &hf_diameter_3gpp_ellipsoidpoint_bit0,
2624 NULL
2627 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2629 /* Hide the item created in packet-diameter.c and only show the one created here */
2630 proto_item_set_hidden(diam_sub_dis_inf->item);
2632 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_supported_gad_shapes, ett_diameter_3gpp_supported_gad_shapes, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2634 return 4;
2637 /* AVP Code: 2516 EUTRAN-Positioning-Data */
2638 static int
2639 dissect_diameter_3gpp_eutran_positioning_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
2641 return dissect_lcsap_Positioning_Data_PDU(tvb, pinfo, tree, NULL);
2644 /* AVP Code: 2530 LRR-Flags */
2646 static int * const flags[] = {
2647 &hf_diameter_3gpp_lrr_flags_spare_bits,
2648 &hf_diameter_3gpp_mo_lr_shortcircuit_req_bit2,
2649 &hf_diameter_3gpp_mo_lr_shortcircuit_ind_bit1,
2650 &hf_diameter_3gpp_Lgd_SLg_Ind_bit0,
2651 NULL
2655 /* AVP Code: 2532 Deferred-Location-Type */
2656 static int
2657 dissect_diameter_3gpp_deferred_location_type(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2659 static int * const flags[] = {
2660 &hf_diameter_3gpp_deferred_location_type_spare_bits,
2661 &hf_diameter_3gpp_maximum_interval_exporation_bit7,
2662 &hf_diameter_3gpp_ldr_activated_bit6,
2663 &hf_diameter_3gpp_motion_event_bit5,
2664 &hf_diameter_3gpp_periodic_ldr_bit4,
2665 &hf_diameter_3gpp_being_inside_area_bit3,
2666 &hf_diameter_3gpp_leaving_from_area_bit2,
2667 &hf_diameter_3gpp_entering_into_area_bit1,
2668 &hf_diameter_3gpp_ue_available_bit0,
2669 NULL
2672 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2674 /* Hide the item created in packet-diameter.c and only show the one created here */
2675 proto_item_set_hidden(diam_sub_dis_inf->item);
2677 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_deferred_location_type, ett_diameter_3gpp_deferred_location_type, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2679 return 4;
2682 /* AVP Code: 2545 PLR-Flags */
2683 static int
2684 dissect_diameter_3gpp_plr_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2686 static int * const flags[] = {
2687 &hf_diameter_3gpp_plr_flags_spare_bits,
2688 &hf_diameter_3gpp_delayed_location_reporting_support_indicator_bit2,
2689 &hf_diameter_3gpp_optimized_lcs_proc_req_bit1,
2690 &hf_diameter_3gpp_mo_lr_shortcircuit_indicator_bit0,
2691 NULL
2694 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2696 /* Hide the item created in packet-diameter.c and only show the one created here */
2697 proto_item_set_hidden(diam_sub_dis_inf->item);
2699 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_plr_flags, ett_diameter_3gpp_plr_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2700 return 4;
2703 /* AVP Code: 2546 PLA-Flags */
2704 static int
2705 dissect_diameter_3gpp_pla_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2707 static int * const flags[] = {
2708 &hf_diameter_3gpp_pla_flags_spare_bits,
2709 &hf_diameter_3gpp_ue_transiently_not_reachable_indicator_bit3,
2710 &hf_diameter_3gpp_optimized_lcs_proc_performed_bit2,
2711 &hf_diameter_3gpp_mo_lr_shortcircuit_indicator_bit1,
2712 &hf_diameter_3gpp_deferred_mt_lr_response_indicator_bit0,
2713 NULL
2716 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2718 /* Hide the item created in packet-diameter.c and only show the one created here */
2719 proto_item_set_hidden(diam_sub_dis_inf->item);
2721 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_pla_flags, ett_diameter_3gpp_pla_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2722 return 4;
2726 /* AVP Code: 2556 Civic-Address */
2727 static int
2728 dissect_diameter_3gpp_civic_address(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
2730 int length = tvb_reported_length(tvb);
2732 /* If there is less than 38 characters this is not XML
2733 * <?xml version="1.0" encoding="UTF-8"?>
2735 if(length < 38)
2736 return length;
2738 if (tvb_strncaseeql(tvb, 0, "<?xml", 5) == 0 && xml_handle) {
2739 call_dissector(xml_handle, tvb, pinfo, tree);
2742 return length;
2745 /* AVP Code: 2819 RAN-NAS-Release-Cause*/
2747 static const value_string ran_nas_prot_type_vals[] = {
2748 { 1, "S1AP Cause" },
2749 { 2, "EMM Cause" },
2750 { 3, "ESM Cause" },
2751 { 4, "Diameter Cause" },
2752 { 5, "IKEv2 Cause" },
2753 { 0, NULL}
2756 static int
2757 dissect_diameter_3gpp_ran_nas_release_cause(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
2759 int offset = 0;
2760 int length = tvb_reported_length(tvb);
2761 uint8_t octet = tvb_get_uint8(tvb, offset);
2762 uint8_t proto_type = (octet >> 4);
2763 int cause_type = 0;
2765 proto_tree_add_item(tree, hf_diameter_3gpp_ran_nas_protocol_type, tvb, offset, 1, ENC_BIG_ENDIAN);
2767 if (proto_type == 1) {
2768 proto_tree_add_item(tree, hf_diameter_3gpp_ran_nas_cause_type, tvb, offset, 1, ENC_BIG_ENDIAN);
2769 cause_type = octet & 0x0F;
2771 offset += 1;
2773 switch (proto_type) {
2774 case 1:
2775 switch (cause_type) {
2776 case 0:
2777 proto_tree_add_item(tree, hf_diameter_3gpp_s1ap_radio_network, tvb, offset, 1, ENC_BIG_ENDIAN);
2778 break;
2779 case 1:
2780 proto_tree_add_item(tree, hf_diameter_3gpp_s1ap_transport, tvb, offset, 1, ENC_BIG_ENDIAN);
2781 break;
2782 case 2:
2783 proto_tree_add_item(tree, hf_diameter_3gpp_s1ap_nas, tvb, offset, 1, ENC_BIG_ENDIAN);
2784 break;
2785 case 3:
2786 proto_tree_add_item(tree, hf_diameter_3gpp_s1ap_protocol, tvb, offset, 1, ENC_BIG_ENDIAN);
2787 break;
2788 case 4:
2789 proto_tree_add_item(tree, hf_diameter_3gpp_s1ap_misc, tvb, offset, 1, ENC_BIG_ENDIAN);
2790 break;
2791 default:
2792 proto_tree_add_item(tree, hf_diameter_3gpp_ran_nas_cause_value, tvb, offset, 1, ENC_BIG_ENDIAN);
2794 offset += 1;
2795 break;
2796 case 2:
2797 proto_tree_add_item(tree, hf_diameter_3gpp_emm_cause, tvb, offset, 1, ENC_BIG_ENDIAN);
2798 offset += 1;
2799 break;
2800 case 3:
2801 proto_tree_add_item(tree, hf_diameter_3gpp_esm_cause, tvb, offset, 1, ENC_BIG_ENDIAN);
2802 offset += 1;
2803 break;
2804 case 4:
2805 proto_tree_add_item(tree, hf_diameter_3gpp_diameter_cause, tvb, offset, 2, ENC_BIG_ENDIAN);
2806 offset += 2;
2807 break;
2808 case 5:
2809 proto_tree_add_item(tree, hf_diameter_3gpp_ikev2_cause, tvb, offset, 2, ENC_BIG_ENDIAN);
2810 offset += 2;
2811 break;
2812 default:
2813 proto_tree_add_item(tree, hf_diameter_3gpp_ran_nas_cause_value, tvb, offset, length - offset, ENC_BIG_ENDIAN);
2814 offset += (length - offset);
2815 break;
2818 return offset;
2821 /* AVP Code: 3144 Supported-Monitoring-Events*/
2822 static int
2823 dissect_diameter_3gpp_supported_monitoring_events(tvbuff_t* tvb, packet_info* pinfo _U_, proto_tree* tree, void* data)
2825 /* Unsigned64 */
2826 static int* const flags[] = {
2827 &hf_diameter_3gpp_supported_monitoring_events_b8,
2828 &hf_diameter_3gpp_supported_monitoring_events_b7,
2829 &hf_diameter_3gpp_supported_monitoring_events_b6,
2830 &hf_diameter_3gpp_supported_monitoring_events_b5,
2831 &hf_diameter_3gpp_supported_monitoring_events_b4,
2832 &hf_diameter_3gpp_supported_monitoring_events_b3,
2833 &hf_diameter_3gpp_supported_monitoring_events_b2,
2834 &hf_diameter_3gpp_supported_monitoring_events_b1,
2835 &hf_diameter_3gpp_supported_monitoring_events_b0,
2836 NULL
2839 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2841 /* Hide the item created in packet-diameter.c and only show the one created here */
2842 proto_item_set_hidden(diam_sub_dis_inf->item);
2843 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_supported_monitoring_events, ett_diameter_3gpp_supported_monitoring_events, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2844 return 8;
2848 /* AVP Code: 3167 RIR-Flags */
2849 static int
2850 dissect_diameter_3gpp_rir_flags(tvbuff_t* tvb, packet_info* pinfo _U_, proto_tree* tree, void* data)
2852 static int* const flags[] = {
2853 &hf_diameter_3gpp_rir_spare_b31_b4,
2854 &hf_diameter_3gpp_acpc,
2855 &hf_diameter_3gpp_coame,
2856 &hf_diameter_3gpp_amec,
2857 &hf_diameter_3gpp_gcip,
2858 NULL
2861 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2863 /* Hide the item created in packet-diameter.c and only show the one created here */
2864 proto_item_set_hidden(diam_sub_dis_inf->item);
2865 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_rir_flags, ett_diameter_3gpp_rir_flags, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2866 return 4;
2869 /* AVP Code: 3301 SM-RP-UI */
2871 static int
2872 dissect_diameter_3gpp_sm_rp_ui(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
2874 int length = tvb_reported_length(tvb);
2875 diam_sub_dis_t *diam_sub_dis_inf = (diam_sub_dis_t*)data;
2876 uint32_t cmd = 0;
2877 bool save_writable = col_get_writable(pinfo->cinfo, -1 /* All */);
2878 bool parent_message_is_request = true;
2880 if (diam_sub_dis_inf) {
2881 cmd = diam_sub_dis_inf->cmd_code;
2882 parent_message_is_request = diam_sub_dis_inf->parent_message_is_request;
2885 col_set_writable(pinfo->cinfo, -1, false);
2887 if ((length > 0) && (cmd != 0)) {
2888 switch (cmd){
2889 case 8388645:
2890 /* Command Code: 8388645 MO-Forward-Short-Message
2891 * serving MME or SGSN or IP-SM-GW and the SMS-IWMSC to forward
2892 * mobile originated short messages from a mobile user to a Service Centre
2895 if (parent_message_is_request) {
2896 pinfo->p2p_dir = P2P_DIR_RECV;
2897 } else {
2898 pinfo->p2p_dir = P2P_DIR_SENT;
2900 call_dissector(gsm_sms_handle, tvb, pinfo, tree);
2901 break;
2902 case 8388646:
2903 /* code="8388646 MT Forward Short Message
2904 * SMS-GMSC and the serving MME or SGSN(transiting an SMS Router, if present)
2905 * or IP-SM-GW to forward mobile terminated short messages.
2907 if (parent_message_is_request) {
2908 pinfo->p2p_dir = P2P_DIR_SENT;
2909 } else {
2910 pinfo->p2p_dir = P2P_DIR_RECV;
2912 call_dissector(gsm_sms_handle, tvb, pinfo, tree);
2913 break;
2914 default:
2915 break;
2919 col_set_writable(pinfo->cinfo, -1, save_writable);
2921 return length;
2926 /* AVP Code: 3502 MBMS-Bearer-Event */
2927 static int
2928 dissect_diameter_3gpp_mbms_bearer_event(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2930 static int * const flags[] = {
2931 &hf_diameter_3gpp_mbms_bearer_event_spare_bits,
2932 &hf_diameter_3gpp_mbms_bearer_event_bit2,
2933 &hf_diameter_3gpp_mbms_bearer_event_bit1,
2934 &hf_diameter_3gpp_mbms_bearer_event_bit0,
2935 NULL
2938 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2940 /* Hide the item created in packet-diameter.c and only show the one created here */
2941 proto_item_set_hidden(diam_sub_dis_inf->item);
2943 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_mbms_bearer_event, ett_diameter_3gpp_mbms_bearer_event, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2944 return 4;
2947 /* AVP Code: 3506 MBMS-Bearer-Result */
2948 static int
2949 dissect_diameter_3gpp_mbms_bearer_result(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2951 static int * const flags[] = {
2952 &hf_diameter_3gpp_mbms_bearer_result_spare_bits,
2953 &hf_diameter_3gpp_mbms_bearer_result_bit11,
2954 &hf_diameter_3gpp_mbms_bearer_result_bit10,
2955 &hf_diameter_3gpp_mbms_bearer_result_bit9,
2956 &hf_diameter_3gpp_mbms_bearer_result_bit8,
2957 &hf_diameter_3gpp_mbms_bearer_result_bit7,
2958 &hf_diameter_3gpp_mbms_bearer_result_bit6,
2959 &hf_diameter_3gpp_mbms_bearer_result_bit5,
2960 &hf_diameter_3gpp_mbms_bearer_result_bit4,
2961 &hf_diameter_3gpp_mbms_bearer_result_bit3,
2962 &hf_diameter_3gpp_mbms_bearer_result_bit2,
2963 &hf_diameter_3gpp_mbms_bearer_result_bit1,
2964 &hf_diameter_3gpp_mbms_bearer_result_bit0,
2965 NULL
2968 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2970 /* Hide the item created in packet-diameter.c and only show the one created here */
2971 proto_item_set_hidden(diam_sub_dis_inf->item);
2973 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_mbms_bearer_result, ett_diameter_3gpp_mbms_bearer_result, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2974 return 4;
2977 /* AVP Code: 3511 TMGI-Allocation-Result */
2978 static int
2979 dissect_diameter_3gpp_tmgi_allocation_result(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
2981 static int * const flags[] = {
2982 &hf_diameter_3gpp_tmgi_allocation_result_spare_bits,
2983 &hf_diameter_3gpp_tmgi_allocation_result_bit4,
2984 &hf_diameter_3gpp_tmgi_allocation_result_bit3,
2985 &hf_diameter_3gpp_tmgi_allocation_result_bit2,
2986 &hf_diameter_3gpp_tmgi_allocation_result_bit1,
2987 &hf_diameter_3gpp_tmgi_allocation_result_bit0,
2988 NULL
2991 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
2993 /* Hide the item created in packet-diameter.c and only show the one created here */
2994 proto_item_set_hidden(diam_sub_dis_inf->item);
2996 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_tmgi_allocation_result, ett_diameter_3gpp_tmgi_allocation_result, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
2997 return 4;
3000 /* AVP Code: 3514 TMGI-Deallocation-Result */
3001 static int
3002 dissect_diameter_3gpp_tmgi_deallocation_result(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data)
3004 static int * const flags[] = {
3005 &hf_diameter_3gpp_tmgi_deallocation_result_spare_bits,
3006 &hf_diameter_3gpp_tmgi_deallocation_result_bit2,
3007 &hf_diameter_3gpp_tmgi_deallocation_result_bit1,
3008 &hf_diameter_3gpp_tmgi_deallocation_result_bit0,
3009 NULL
3012 diam_sub_dis_t* diam_sub_dis_inf = (diam_sub_dis_t*)data;
3014 /* Hide the item created in packet-diameter.c and only show the one created here */
3015 proto_item_set_hidden(diam_sub_dis_inf->item);
3017 proto_tree_add_bitmask_with_flags(tree, tvb, 0, hf_diameter_3gpp_tmgi_deallocation_result, ett_diameter_3gpp_tmgi_deallocation_result, flags, ENC_BIG_ENDIAN, BMT_NO_APPEND);
3018 return 4;
3022 void
3023 proto_reg_handoff_diameter_3gpp(void)
3026 /* AVP Code: 5 3GPP-GPRS Negotiated QoS profile */
3027 /* Registered by packet-gtp.c */
3029 /* AVP Code: 8 3GPP-IMSI-MNC-MCC */
3030 dissector_add_uint("diameter.3gpp", 8, create_dissector_handle(dissect_diameter_3gpp_imsi_mnc_mcc, proto_diameter_3gpp));
3032 /* AVP Code: 15 3GPP-SGSN-IPv6-Address */
3033 dissector_add_uint("diameter.3gpp", 15, create_dissector_handle(dissect_diameter_3gpp_sgsn_ipv6_address, proto_diameter_3gpp));
3035 /* AVP Code: 18 3GPP-SGSN-MNC-MCC */
3036 dissector_add_uint("diameter.3gpp", 18, create_dissector_handle(dissect_diameter_3gpp_sgsn_mnc_mcc, proto_diameter_3gpp));
3038 /* AVP Code: 21 3GPP-RAT-Access-Type */
3039 dissector_add_uint("diameter.3gpp", 21, create_dissector_handle(dissect_diameter_3gpp_rat_type, proto_diameter_3gpp));
3042 /* AVP Code: 22 3GPP-User-Location-Info
3043 * Registered by packet-gtpv2.c
3046 /* AVP Code: 23 3GPP-MS-TimeZone */
3047 dissector_add_uint("diameter.3gpp", 23, create_dissector_handle(dissect_diameter_3gpp_ms_timezone, proto_diameter_3gpp));
3049 /* AVP Code: 29 3GPP-TWAN-Identifier */
3050 dissector_add_uint("diameter.3gpp", 29, create_dissector_handle(dissect_diameter_3gpp_twan_identifier, proto_diameter_3gpp));
3052 /* AVP Code: 524 Codec-Data */
3053 dissector_add_uint("diameter.3gpp", 524, create_dissector_handle(dissect_diameter_3gpp_codec_data, proto_diameter_3gpp));
3055 /* AVP Code: 551 AF-Requested-Data */
3056 dissector_add_uint("diameter.3gpp", 551, create_dissector_handle(dissect_diameter_3gpp_af_requested_data, proto_diameter_3gpp));
3058 /* AVP Code: 601 Public-Identity */
3059 dissector_add_uint("diameter.3gpp", 601, create_dissector_handle(dissect_diameter_3gpp_public_identity, proto_diameter_3gpp));
3061 /* AVP Code: 606 User-Data */
3062 dissector_add_uint("diameter.3gpp", 606, create_dissector_handle(dissect_diameter_3gpp_user_data, proto_diameter_3gpp));
3064 /* AVP Code: 629 Feature-List */
3065 dissector_add_uint("diameter.3gpp", 629, create_dissector_handle(dissect_diameter_3gpp_feature_list_id, proto_diameter_3gpp));
3067 /* AVP Code: 630 Feature-List */
3068 dissector_add_uint("diameter.3gpp", 630, create_dissector_handle(dissect_diameter_3gpp_feature_list, proto_diameter_3gpp));
3070 /* AVP Code: 637 UAR-Flags */
3071 dissector_add_uint("diameter.3gpp", 637, create_dissector_handle(dissect_diameter_3gpp_uar_flags, proto_diameter_3gpp));
3073 /* AVP Code: 640 Path */
3074 dissector_add_uint("diameter.3gpp", 640, create_dissector_handle(dissect_diameter_3gpp_path, proto_diameter_3gpp));
3076 /* AVP Code: 641 Contact */
3077 dissector_add_uint("diameter.3gpp", 641, create_dissector_handle(dissect_diameter_3gpp_contact, proto_diameter_3gpp));
3079 /* AVP Code: 655 SAR-Flags */
3080 dissector_add_uint("diameter.3gpp", 655, create_dissector_handle(dissect_diameter_3gpp_sar_flags, proto_diameter_3gpp));
3082 /* AVP Code: 701 MSISDN */
3083 dissector_add_uint("diameter.3gpp", 701, create_dissector_handle(dissect_diameter_3gpp_msisdn, proto_diameter_3gpp));
3085 /* AVP Code: 702 User-Data */
3086 dissector_add_uint("diameter.3gpp", 702, create_dissector_handle(dissect_diameter_3gpp_user_data, proto_diameter_3gpp));
3088 /* AVP Code: 713 Requested-Nodes */
3089 dissector_add_uint("diameter.3gpp", 713, create_dissector_handle(dissect_diameter_3gpp_req_nodes, proto_diameter_3gpp));
3091 /* AVP Code: 900 TMGI */
3092 dissector_add_uint("diameter.3gpp", 900, create_dissector_handle(dissect_diameter_3gpp_tmgi, proto_diameter_3gpp));
3094 /* AVP Code: 904 MBMS-Session-Duration Registered by packet-gtp.c */
3095 /* AVP Code: 903 MBMS-Service-Area Registered by packet-gtp.c */
3097 /* AVP Code: 909 RAI */
3098 dissector_add_uint("diameter.3gpp", 909, create_dissector_handle(dissect_diameter_3gpp_rai, proto_diameter_3gpp));
3100 /* AVP Code: 911 MBMS-Time-To-Data-Transfer Registered by packet-gtp.c */
3101 /* Registered by packet-gtp.c */
3103 /* AVP Code: 913 MBMS-Required-QoS */
3104 dissector_add_uint("diameter.3gpp", 913, create_dissector_handle(dissect_diameter_3gpp_mbms_required_qos, proto_diameter_3gpp));
3106 /* AVP Code: 917 MBMS-GGSN-IPv6-Address */
3107 dissector_add_uint("diameter.3gpp", 917, create_dissector_handle(dissect_diameter_3gpp_ipv6addr, proto_diameter_3gpp));
3109 /* AVP Code: 918 MBMS-BMSC-SSM-IP-Address */
3110 dissector_add_uint("diameter.3gpp", 918, create_dissector_handle(dissect_diameter_3gpp_ipaddr, proto_diameter_3gpp));
3112 /* AVP Code: 926 MBMS-BMSC-SSM-UDP-Port */
3113 /* AVP Code: 927 MBMS-GW-UDP-Port */
3114 dissector_add_uint("diameter.3gpp", 926, create_dissector_handle(dissect_diameter_3gpp_udp_port, proto_diameter_3gpp));
3115 dissector_add_uint("diameter.3gpp", 927, create_dissector_handle(dissect_diameter_3gpp_udp_port, proto_diameter_3gpp));
3117 /* AVP Code: 929 MBMS-Data-Transfer-Start */
3118 dissector_add_uint("diameter.3gpp", 929, create_dissector_handle(dissect_diameter_3gpp_mbms_abs_time_ofmbms_data_tfer, proto_diameter_3gpp));
3120 /* AVP Code: 930 MBMS-Data-Transfer-Stop */
3121 dissector_add_uint("diameter.3gpp", 930, create_dissector_handle(dissect_diameter_3gpp_mbms_abs_time_ofmbms_data_tfer, proto_diameter_3gpp));
3123 /* AVP Code: 1082 Credit-Management-Status */
3124 dissector_add_uint("diameter.3gpp", 1082, create_dissector_handle(dissect_diameter_3gpp_credit_management_status, proto_diameter_3gpp));
3126 /* AVP Code: 1242 location estimate */
3127 dissector_add_uint("diameter.3gpp", 1242, create_dissector_handle(dissect_diameter_3gpp_location_estimate, proto_diameter_3gpp));
3129 /* AVP Code: 1263 Access-Network-Information */
3130 dissector_add_uint("diameter.3gpp", 1263, create_dissector_handle(dissect_diameter_3gpp_access_network_information, proto_diameter_3gpp));
3132 /* AVP Code: 1304 Secondary-RAT-Type */
3133 dissector_add_uint("diameter.3gpp", 1304, create_dissector_handle(dissect_diameter_3gpp_secondary_rat_type, proto_diameter_3gpp));
3135 /* AVP Code: 1404 QoS-Subscribed */
3136 dissector_add_uint("diameter.3gpp", 1404, create_dissector_handle(dissect_diameter_3ggp_qos_susbscribed, proto_diameter_3gpp));
3138 /* AVP Code: 1405 ULR-Flags */
3139 dissector_add_uint("diameter.3gpp", 1405, create_dissector_handle(dissect_diameter_3gpp_ulr_flags, proto_diameter_3gpp));
3141 /* AVP Code: 1406 ULA-Flags */
3142 dissector_add_uint("diameter.3gpp", 1406, create_dissector_handle(dissect_diameter_3gpp_ula_flags, proto_diameter_3gpp));
3144 /*AVP Code: 1407 Visited-PLMN-Id */
3145 dissector_add_uint("diameter.3gpp", 1407, create_dissector_handle(dissect_diameter_3gpp_visited_plmn_id, proto_diameter_3gpp));
3147 /* AVP Code: 1421 DSR-Flags */
3148 dissector_add_uint("diameter.3gpp", 1421, create_dissector_handle(dissect_diameter_3gpp_dsr_flags, proto_diameter_3gpp));
3150 /* AVP Code: 1422 DSA-Flags */
3151 dissector_add_uint("diameter.3gpp", 1422, create_dissector_handle(dissect_diameter_3gpp_dsa_flags, proto_diameter_3gpp));
3153 /* AVP Code: 1426 Access-Restriction-Data */
3154 dissector_add_uint("diameter.3gpp", 1426, create_dissector_handle(dissect_diameter_3gpp_acc_res_data, proto_diameter_3gpp));
3156 /* AVP Code: 1441 IDA-Flags */
3157 dissector_add_uint("diameter.3gpp", 1441, create_dissector_handle(dissect_diameter_3gpp_ida_flags, proto_diameter_3gpp));
3159 /* AVP Code: 1442 PUA-Flags */
3160 dissector_add_uint("diameter.3gpp", 1442, create_dissector_handle(dissect_diameter_3gpp_pua_flags, proto_diameter_3gpp));
3162 /* AVP Code: 1443 NOR-Flags */
3163 dissector_add_uint("diameter.3gpp", 1443, create_dissector_handle(dissect_diameter_3gpp_nor_flags, proto_diameter_3gpp));
3165 /* AVP Code: 1474 GMLC-Number */
3166 dissector_add_uint("diameter.3gpp", 1474, create_dissector_handle(dissect_diameter_3gpp_isdn, proto_diameter_3gpp));
3168 /* AVP Code: 1490 IDR-Flags */
3169 dissector_add_uint("diameter.3gpp", 1490, create_dissector_handle(dissect_diameter_3gpp_idr_flags, proto_diameter_3gpp));
3171 /* AVP Code: 1508 PPR-Flags */
3172 dissector_add_uint("diameter.3gpp", 1508, create_dissector_handle(dissect_diameter_3gpp_ppr_flags, proto_diameter_3gpp));
3174 /* AVP Code: 1518 AAA-Failure-Indication */
3175 dissector_add_uint("diameter.3gpp", 1518, create_dissector_handle(dissect_diameter_3gpp_aaa_fail_flags, proto_diameter_3gpp));
3177 /* AVP Code: 1520 DER-Flags */
3178 dissector_add_uint("diameter.3gpp", 1520, create_dissector_handle(dissect_diameter_3gpp_der_flags, proto_diameter_3gpp));
3180 /* AVP Code: 1521 DEA-Flags */
3181 dissector_add_uint("diameter.3gpp", 1521, create_dissector_handle(dissect_diameter_3gpp_dea_flags, proto_diameter_3gpp));
3183 /* AVP Code: 1522 RAR-Flags */
3184 dissector_add_uint("diameter.3gpp", 1522, create_dissector_handle(dissect_diameter_3gpp_rar_flags, proto_diameter_3gpp));
3186 /* AVP Code: 1523 DER-S6b-Flags */
3187 dissector_add_uint("diameter.3gpp", 1523, create_dissector_handle(dissect_diameter_3gpp_der_s6b_flags, proto_diameter_3gpp));
3189 /* AVP Code: 1538 Emergency-Services */
3190 dissector_add_uint("diameter.3gpp", 1538, create_dissector_handle(dissect_diameter_3gpp_emergency_services, proto_diameter_3gpp));
3192 /* AVP Code: 1635 PUR-Flags */
3193 dissector_add_uint("diameter.3gpp", 1635, create_dissector_handle(dissect_diameter_3gpp_pur_flags, proto_diameter_3gpp));
3195 /* AVP Code: 1638 CLR-Flags */
3196 dissector_add_uint("diameter.3gpp", 1638, create_dissector_handle(dissect_diameter_3gpp_clr_flags, proto_diameter_3gpp));
3198 /* AVP Code: 1639 UVR-Flags */
3199 dissector_add_uint("diameter.3gpp", 1639, create_dissector_handle(dissect_diameter_3gpp_uvr_flags, proto_diameter_3gpp));
3201 /* AVP Code: 1640 UVA-Flags */
3202 dissector_add_uint("diameter.3gpp", 1640, create_dissector_handle(dissect_diameter_3gpp_uva_flags, proto_diameter_3gpp));
3204 /* AVP Code: 1645 MME-Number-for-MT-SMS */
3205 dissector_add_uint("diameter.3gpp", 1645, create_dissector_handle(dissect_diameter_3gpp_mme_number_for_mt_sms, proto_diameter_3gpp));
3207 /* AVP Code: 1654 Subscription-Data-Flags */
3208 dissector_add_uint("diameter.3gpp", 1654, create_dissector_handle(dissect_diameter_3gpp_subscription_data_flags, proto_diameter_3gpp));
3210 /* AVP Code: 1668 WLAN-offloadability-EUTRAN */
3211 dissector_add_uint("diameter.3gpp", 1668, create_dissector_handle(dissect_diameter_3gpp_wlan_offloadability_eutran, proto_diameter_3gpp));
3213 /* AVP Code: 1669 WLAN-offloadability-UTRAN */
3214 dissector_add_uint("diameter.3gpp", 1669, create_dissector_handle(dissect_diameter_3gpp_wlan_offloadability_utran, proto_diameter_3gpp));
3216 /* AVP Code: 1677 Group-PLMN-Id */
3217 dissector_add_uint("diameter.3gpp", 1677, create_dissector_handle(dissect_diameter_3gpp_group_plmn_id, proto_diameter_3gpp));
3219 /* AVP Code: 1679 AIR-Flags */
3220 dissector_add_uint("diameter.3gpp", 1679, create_dissector_handle(dissect_diameter_3gpp_air_flags, proto_diameter_3gpp));
3222 /* AVP Code: 1686 Preferred-Data-Mode */
3223 dissector_add_uint("diameter.3gpp", 1686, create_dissector_handle(dissect_diameter_3gpp_preferred_data_mode, proto_diameter_3gpp));
3225 /* AVP Code: 1689 V2X-Permission */
3226 dissector_add_uint("diameter.3gpp", 1689, create_dissector_handle(dissect_diameter_3gpp_v2x_permission, proto_diameter_3gpp));
3228 /* AVP Code: 1704 Core-Network-Restrictions */
3229 dissector_add_uint("diameter.3gpp", 1704, create_dissector_handle(dissect_diameter_3gpp_core_network_restrictions, proto_diameter_3gpp));
3231 /* AVP Code: 2510 Supported-GAD-Shapes */
3232 dissector_add_uint("diameter.3gpp", 2510, create_dissector_handle(dissect_diameter_3gpp_supported_gad_shapes, proto_diameter_3gpp));
3234 /* AVP Code: 2516 EUTRAN-Positioning-Data */
3235 dissector_add_uint("diameter.3gpp", 2516, create_dissector_handle(dissect_diameter_3gpp_eutran_positioning_data, proto_diameter_3gpp));
3237 /* AVP Code: 2532 Deferred-Location-Type */
3238 dissector_add_uint("diameter.3gpp", 2532, create_dissector_handle(dissect_diameter_3gpp_deferred_location_type, proto_diameter_3gpp));
3240 /* AVP Code: 2545 PLR-Flags */
3241 dissector_add_uint("diameter.3gpp", 2545, create_dissector_handle(dissect_diameter_3gpp_plr_flags, proto_diameter_3gpp));
3243 /* AVP Code: 2546 PLA-Flags */
3244 dissector_add_uint("diameter.3gpp", 2546, create_dissector_handle(dissect_diameter_3gpp_pla_flags, proto_diameter_3gpp));
3246 /* AVP Code: 2556 Civic-Address */
3247 dissector_add_uint("diameter.3gpp", 2556, create_dissector_handle(dissect_diameter_3gpp_civic_address, proto_diameter_3gpp));
3249 /* AVP Code: 2819 RAN-NAS-Release-Cause */
3250 dissector_add_uint("diameter.3gpp", 2819, create_dissector_handle(dissect_diameter_3gpp_ran_nas_release_cause, proto_diameter_3gpp));
3252 /* AVP Code: 3144 Supported-Monitoring-Events*/
3253 dissector_add_uint("diameter.3gpp", 3144, create_dissector_handle(dissect_diameter_3gpp_supported_monitoring_events, proto_diameter_3gpp));
3255 /* AVP Code: 3167 RIR-Flags */
3256 dissector_add_uint("diameter.3gpp", 3167, create_dissector_handle(dissect_diameter_3gpp_rir_flags, proto_diameter_3gpp));
3258 /* AVP Code: 3301 SM-RP-UI */
3259 dissector_add_uint("diameter.3gpp", 3301, create_dissector_handle(dissect_diameter_3gpp_sm_rp_ui, proto_diameter_3gpp));
3261 /* AVP Code: 3502 MBMS-Bearer-Event */
3262 dissector_add_uint("diameter.3gpp", 3502, create_dissector_handle(dissect_diameter_3gpp_mbms_bearer_event, proto_diameter_3gpp));
3264 /* AVP Code: 3506 MBMS-Bearer-Result */
3265 dissector_add_uint("diameter.3gpp", 3506, create_dissector_handle(dissect_diameter_3gpp_mbms_bearer_result, proto_diameter_3gpp));
3267 /* AVP Code: 3511 TMGI-Allocation-Result */
3268 dissector_add_uint("diameter.3gpp", 3511, create_dissector_handle(dissect_diameter_3gpp_tmgi_allocation_result, proto_diameter_3gpp));
3270 /* AVP Code: 3514 TMGI-Deallocation-Result */
3271 dissector_add_uint("diameter.3gpp", 3514, create_dissector_handle(dissect_diameter_3gpp_tmgi_deallocation_result, proto_diameter_3gpp));
3273 xml_handle = find_dissector_add_dependency("xml", proto_diameter_3gpp);
3274 gsm_sms_handle = find_dissector_add_dependency("gsm_sms", proto_diameter_3gpp);
3275 sdp_handle = find_dissector_add_dependency("sdp", proto_diameter_3gpp);
3279 * 3GPP TS 24.008 Quality of service
3281 static const value_string diameter_3gpp_qos_reliability_vals[] = {
3282 { 0x00, "Subscribed reliability class (in MS to net); Reserved (in net to MS)" },
3283 { 0x01, "Unused. Interpreted as Unacknowledged GTP, Ack LLC/RLC, Protected data." },
3284 { 0x02, "Unacknowledged GTP, Ack LLC/RLC, Protected data" },
3285 { 0x03, "Unacknowledged GTP/LLC, Ack RLC, Protected data" },
3286 { 0x04, "Unacknowledged GTP/LLC/RLC, Protected data" },
3287 { 0x05, "Unacknowledged GTP/LLC/RLC, Unprotected data" },
3288 { 0x06, "Interpreted as Unacknowledged GTP/LLC, Ack RLC, Protected data" }, /* other value */
3289 { 0x07, "Reserved" },
3290 { 0, NULL }
3293 static const range_string diameter_3gpp_qos_delay_cls_vals[] = {
3294 { 0x00, 0x00, "Subscribed delay class (in MS to net); Reserved (in net to MS)" },
3295 { 0x01, 0x01, "Delay class 1" },
3296 { 0x02, 0x02, "Delay class 2" },
3297 { 0x03, 0x03, "Delay class 3" },
3298 { 0x04, 0x04, "Delay class 4 (best effort)" },
3299 { 0x05, 0x06, "Interpreted as Delay class 4 (best effort)" },
3300 { 0x07, 0x07, "Reserved" },
3301 { 0, 0, NULL }
3304 static const range_string diameter_3gpp_qos_prec_class_vals[] = {
3305 { 0x00, 0x00, "Subscribed precedence (MS to net); Reserved (net to MS)" },
3306 { 0x01, 0x01, "High priority" },
3307 { 0x02, 0x02, "Normal priority" },
3308 { 0x03, 0x03, "Low priority" },
3309 { 0x04, 0x06, "Interpreted as Normal priority" },
3310 { 0x07, 0x07, "Reserved" },
3311 { 0, 0, NULL }
3314 static const range_string diameter_3gpp_qos_peak_thr_vals[] = {
3315 { 0x00, 0x00, "Subscribed peak throughput (MS to net); Reserved (net to MS)" },
3316 { 0x01, 0x01, "Up to 1 000 octet/s" },
3317 { 0x02, 0x02, "Up to 2 000 octet/s" },
3318 { 0x03, 0x03, "Up to 4 000 octet/s" },
3319 { 0x04, 0x04, "Up to 8 000 octet/s" },
3320 { 0x05, 0x05, "Up to 16 000 octet/s" },
3321 { 0x06, 0x06, "Up to 32 000 octet/s" },
3322 { 0x07, 0x07, "Up to 64 000 octet/s" },
3323 { 0x08, 0x08, "Up to 128 000 octet/s" },
3324 { 0x09, 0x09, "Up to 256 000 octet/s" },
3325 { 0x0a, 0x0e, "Interpreted as Up to 1 000 octet/s" },
3326 { 0x0f, 0x0f, "Reserved" },
3327 { 0, 0, NULL }
3330 static const range_string diameter_3gpp_qos_mean_thr_vals[] = {
3331 { 0x00, 0x00, "Subscribed peak throughput (MS to net); Reserved (net to MS)" },
3332 { 0x01, 0x01, "100 octet/h" },
3333 { 0x02, 0x02, "200 octet/h" },
3334 { 0x03, 0x03, "500 octet/h" },
3335 { 0x04, 0x04, "1 000 octet/h" },
3336 { 0x05, 0x05, "2 000 octet/h" },
3337 { 0x06, 0x06, "5 000 octet/h" },
3338 { 0x07, 0x07, "10 000 octet/h" },
3339 { 0x08, 0x08, "20 000 octet/h" },
3340 { 0x09, 0x09, "50 000 octet/h" },
3341 { 0x0a, 0x0a, "100 000 octet/h" },
3342 { 0x0b, 0x0b, "200 000 octet/h" },
3343 { 0x0c, 0x0c, "500 000 octet/h" },
3344 { 0x0d, 0x0d, "1 000 000 octet/h" },
3345 { 0x0e, 0x0e, "2 000 000 octet/h" },
3346 { 0x0f, 0x0f, "5 000 000 octet/h" },
3347 { 0x10, 0x10, "10 000 000 octet/h" },
3348 { 0x11, 0x11, "20 000 000 octet/h" },
3349 { 0x12, 0x12, "50 000 000 octet/h" },
3350 { 0x13, 0x1d, "Interpreted as Best effort" },
3351 { 0x1e, 0x1e, "Reserved" },
3352 { 0x1f, 0x1f, "Best effort" },
3353 { 0, 0, NULL }
3356 static const value_string diameter_3gpp_qos_del_of_err_sdu_vals[] = {
3357 { 0x00, "Subscribed delivery of erroneous SDUs (MS to net); Reserved (net to MS)" },
3358 { 0x01, "No detect ('-')" },
3359 { 0x02, "Erroneous SDUs are delivered ('yes')" },
3360 { 0x03, "Erroneous SDUs are not delivered ('no')" },
3361 { 0x07, "Reserved" },
3362 { 0, NULL }
3365 static const value_string diameter_3gpp_qos_del_order_vals[] = {
3366 { 0x00, "Subscribed delivery order (MS to net); Reserved (net to MS)" },
3367 { 0x01, "With delivery order ('yes')" },
3368 { 0x02, "Without delivery order ('no')" },
3369 { 0x03, "Reserved" },
3370 { 0, NULL }
3373 static const value_string diameter_3gpp_qos_traffic_cls_vals[] = {
3374 { 0x00, "Subscribed traffic class (MS to net); Reserved (net to MS)" },
3375 { 0x01, "Conversational class" },
3376 { 0x02, "Streaming class" },
3377 { 0x03, "Interactive class" },
3378 { 0x04, "Background class" },
3379 { 0x07, "Reserved" },
3380 { 0, NULL }
3383 static const value_string diameter_3gpp_qos_sdu_err_rat_vals[] = {
3384 { 0x00, "Subscribed SDU error ratio (MS to net); Reserved (net to MS)" },
3385 { 0x01, "1E-2" },
3386 { 0x02, "7E-3" },
3387 { 0x03, "1E-3" },
3388 { 0x04, "1E-4" },
3389 { 0x05, "1E-5" },
3390 { 0x06, "1E-6" },
3391 { 0x07, "1E-1" },
3392 { 0x15, "Reserved" },
3393 { 0, NULL }
3396 static const value_string diameter_3gpp_qos_ber_vals[] = {
3397 { 0x00, "Subscribed residual BER (MS to net); Reserved (net to MS)" },
3398 { 0x01, "5E-2" },
3399 { 0x02, "1E-2" },
3400 { 0x03, "5E-3" },
3401 { 0x04, "4E-3" },
3402 { 0x05, "1E-3" },
3403 { 0x06, "1E-4" },
3404 { 0x07, "1E-5" },
3405 { 0x08, "1E-6" },
3406 { 0x09, "6E-8" },
3407 { 0x15, "Reserved" },
3408 { 0, NULL }
3411 #if 0
3412 static const value_string diameter_3gpp_qos_traff_hdl_pri_vals[] = {
3413 { 0x00, "Subscribed traffic handling priority (MS to net); Reserved (net to MS)" },
3414 { 0x01, "Priority level 1" },
3415 { 0x02, "Priority level 2" },
3416 { 0x03, "Priority level 3" },
3417 { 0, NULL }
3419 #endif
3421 static const true_false_string diameter_3gpp_qos_signalling_ind_value = {
3422 "Optimised for signalling traffic",
3423 "Not optimised for signalling traffic"
3426 void
3427 proto_register_diameter_3gpp(void)
3430 /* Setup list of header fields See Section 1.6.1 for details*/
3431 static hf_register_info hf[] = {
3432 { &hf_diameter_3gpp_timezone,
3433 { "Timezone", "diameter.3gpp.3gpp_timezone",
3434 FT_UINT8, BASE_DEC, NULL, 0x0,
3435 NULL, HFILL }
3437 { &hf_diameter_3gpp_timezone_adjustment,
3438 { "Adjustment", "diameter.3gpp.timezone_adjustment",
3439 FT_UINT8, BASE_DEC, VALS(daylight_saving_time_vals), 0x03,
3440 NULL, HFILL }
3442 { &hf_diameter_3gpp_rat_type,
3443 { "RAT Type", "diameter.3gpp.rat-type",
3444 FT_UINT8, BASE_DEC, VALS(diameter_3gpp_rat_type_vals), 0x00,
3445 NULL, HFILL }
3447 { &hf_diameter_3gpp_path,
3448 { "Path", "diameter.3gpp.path",
3449 FT_STRING, BASE_NONE, NULL, 0x0,
3450 NULL, HFILL }
3452 { &hf_diameter_3gpp_contact,
3453 { "Contact", "diameter.3gpp.contact",
3454 FT_STRING, BASE_NONE, NULL, 0x0,
3455 NULL, HFILL }
3457 #if 0
3458 { &hf_diameter_3gpp_user_data,
3459 { "User data", "diameter.3gpp.user_data",
3460 FT_STRING, BASE_NONE, NULL, 0x0,
3461 NULL, HFILL }
3463 #endif
3464 { &hf_diameter_3gpp_ipaddr,
3465 { "IPv4 Address", "diameter.3gpp.ipaddr",
3466 FT_IPv4, BASE_NONE, NULL, 0x0,
3467 NULL, HFILL }
3469 { &hf_diameter_3gpp_mbms_required_qos_prio,
3470 { "Allocation/Retention Priority", "diameter.3gpp.mbms_required_qos_prio",
3471 FT_UINT8, BASE_DEC, NULL, 0x0,
3472 NULL, HFILL }
3474 { &hf_diameter_3gpp_tmgi,
3475 { "TMGI", "diameter.3gpp.tmgi",
3476 FT_BYTES, BASE_NONE, NULL, 0x0,
3477 NULL, HFILL }
3480 { &hf_diameter_3gpp_req_nodes,
3481 { "Requested-Nodes", "diameter.3gpp.req_nodes",
3482 FT_UINT32, BASE_HEX, NULL, 0x0,
3483 NULL, HFILL }
3485 { &hf_diameter_3gpp_req_nodes_bit0,
3486 { "MME", "diameter.3gpp.req_nodes_bit0",
3487 FT_BOOLEAN, 32, NULL, 0x00000001,
3488 NULL, HFILL }
3490 { &hf_diameter_3gpp_req_nodes_bit1,
3491 { "SGSN", "diameter.3gpp.req_nodes_bit1",
3492 FT_BOOLEAN, 32, NULL, 0x00000002,
3493 NULL, HFILL }
3495 { &hf_diameter_3gpp_req_nodes_bit2,
3496 { "3GPP-AAA-SERVER-TWAN", "diameter.3gpp.req_nodes_bit2",
3497 FT_BOOLEAN, 32, NULL, 0x00000004,
3498 NULL, HFILL }
3500 { &hf_diameter_3gpp_req_nodes_bit3,
3501 { "AMF", "diameter.3gpp.req_nodes_bit3",
3502 FT_BOOLEAN, 32, NULL, 0x00000008,
3503 NULL, HFILL }
3505 { &hf_diameter_mbms_service_id,
3506 { "MBMS Service ID", "diameter.3gpp.mbms_service_id",
3507 FT_UINT24, BASE_HEX, NULL, 0x0,
3508 NULL, HFILL }
3510 { &hf_diameter_3gpp_spare_bits,
3511 { "Spare bit(s)", "diameter.3gpp.spare_bits",
3512 FT_UINT32, BASE_HEX, NULL, 0x0,
3513 NULL, HFILL }
3515 { &hf_diameter_3gpp_uar_flags_flags,
3516 { "Flags", "diameter.3gpp.uar_flags_flags",
3517 FT_UINT32, BASE_HEX, NULL, 0x0,
3518 NULL, HFILL }
3520 { &hf_diameter_3gpp_uar_flags_flags_spare_bits,
3521 { "Spare", "diameter.3gpp.uar_flags_flags_spare_bits",
3522 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFE,
3523 NULL, HFILL }
3525 { &hf_diameter_3gpp_uar_flags_flags_bit0,
3526 { "Emergency registration", "diameter.3gpp.uar_flags_flags_bit0",
3527 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
3528 NULL, HFILL }
3530 { &hf_diameter_3gpp_feature_list_flags,
3531 { "Feature-List Flags", "diameter.3gpp.feature_list_flags",
3532 FT_UINT32, BASE_HEX, NULL, 0x0,
3533 NULL, HFILL }
3535 { &hf_diameter_3gpp_cx_feature_list_flags,
3536 { "CX Feature-List Flags", "diameter.3gpp.cx_feature_list_flags",
3537 FT_UINT32, BASE_HEX, NULL, 0x0,
3538 NULL, HFILL }
3540 { &hf_diameter_3gpp_cx_feature_list_1_flags_bit0,
3541 { "Shared IFC Sets", "diameter.3gpp.cx_feature_list_1_flags_bit0",
3542 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000001,
3543 NULL, HFILL }
3545 { &hf_diameter_3gpp_cx_feature_list_1_flags_bit1,
3546 { "Alias Indication", "diameter.3gpp.cx_feature_list_1_flags_bit1",
3547 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000002,
3548 NULL, HFILL }
3550 { &hf_diameter_3gpp_cx_feature_list_1_flags_bit2,
3551 { "IMS Restoration Indication", "diameter.3gpp.cx_feature_list_1_flags_bit2",
3552 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000004,
3553 NULL, HFILL }
3555 { &hf_diameter_3gpp_cx_feature_list_1_flags_bit3,
3556 { "P-CSCF Restoration mechanism", "diameter.3gpp.cx_feature_list_1_flags_bit3",
3557 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000008,
3558 NULL, HFILL }
3560 { &hf_diameter_3gpp_cx_feature_list_1_flags_spare_bits,
3561 { "Spare", "diameter.3gpp.cx_feature_list_1_flags_spare",
3562 FT_UINT32, BASE_HEX, NULL, 0xfffffff0,
3563 NULL, HFILL }
3565 { &hf_diameter_3gpp_feature_list1_sh_flags_bit0,
3566 { "Notif-Eff", "diameter.3gpp.feature_list1_sh_flags_bit0",
3567 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000001,
3568 NULL, HFILL }
3570 { &hf_diameter_3gpp_feature_list1_sh_flags_bit1,
3571 { "Update-Eff", "diameter.3gpp.feature_list1_sh_flags_bit1",
3572 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000002,
3573 NULL, HFILL }
3575 { &hf_diameter_3gpp_feature_list1_sh_flags_bit2,
3576 { "Update-Eff-Enhance", "diameter.3gpp.feature_list1_sh_flags_bit2",
3577 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000004,
3578 NULL, HFILL }
3580 { &hf_diameter_3gpp_feature_list1_sh_flags_bit3,
3581 { "Additional-MSISDN", "diameter.3gpp.feature_list1_sh_flags_bit3",
3582 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000008,
3583 NULL, HFILL }
3585 { &hf_diameter_3gpp_feature_list1_sh_flags_spare_bits,
3586 { "Spare", "diameter.3gpp.feature_list1_sh_flags_spare",
3587 FT_UINT32, BASE_HEX, NULL, 0xfffffff0,
3588 NULL, HFILL }
3590 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit0,
3591 { "Operator Determined Barring of all Packet Oriented Services", "diameter.3gpp.feature_list1_s6a_flags_bit0",
3592 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000001,
3593 NULL, HFILL }
3595 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit1,
3596 { "Operator Determined Barring of Packet Oriented Services from access points that are within the HPLMN whilst the subscriber is roaming in a VPLMN", "diameter.3gpp.feature_list1_s6a_flags_bit1",
3597 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000002,
3598 NULL, HFILL }
3600 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit2,
3601 { "Operator Determined Barring of Packet Oriented Services from access points that are within the roamed to VPLMN", "diameter.3gpp.feature_list1_s6a_flags_bit2",
3602 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000004,
3603 NULL, HFILL }
3605 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit3,
3606 { "Operator Determined Barring of all outgoing calls", "diameter.3gpp.feature_list1_s6a_flags_bit3",
3607 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000008,
3608 NULL, HFILL }
3610 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit4,
3611 { "Operator Determined Barring of all outgoing international calls", "diameter.3gpp.feature_list1_s6a_flags_bit4",
3612 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000010,
3613 NULL, HFILL }
3615 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit5,
3616 { "Operator Determined Barring of all outgoing international calls except those directed to the home PLMN country", "diameter.3gpp.feature_list1_s6a_flags_bit5",
3617 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000020,
3618 NULL, HFILL }
3620 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit6,
3621 { "Operator Determined Barring of all outgoing inter-zonal calls", "diameter.3gpp.feature_list1_s6a_flags_bit6",
3622 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000040,
3623 NULL, HFILL }
3625 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit7,
3626 { "Operator Determined Barring of all outgoing inter-zonal calls except those directed to the home PLMN country", "diameter.3gpp.feature_list1_s6a_flags_bit7",
3627 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000080,
3628 NULL, HFILL }
3630 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit8,
3631 { "Operator Determined Barring of all outgoing international calls except those directed to the home PLMN country and Barring of all outgoing inter-zonal calls", "diameter.3gpp.feature_list1_s6a_flags_bit8",
3632 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000100,
3633 NULL, HFILL }
3635 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit9,
3636 { "Regional Subscription", "diameter.3gpp.feature_list1_s6a_flags_bit9",
3637 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000200,
3638 NULL, HFILL }
3641 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit10,
3642 { "Trace Function", "diameter.3gpp.feature_list1_s6a_flags_bit10",
3643 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000400,
3644 NULL, HFILL }
3646 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit11,
3647 { "All LCS Privacy Exception Classes", "diameter.3gpp.feature_list1_s6a_flags_bit11",
3648 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000800,
3649 NULL, HFILL }
3651 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit12,
3652 { "Allow location by any LCS client", "diameter.3gpp.feature_list1_s6a_flags_bit12",
3653 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00001000,
3654 NULL, HFILL }
3656 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit13,
3657 { "Allow location by any value added LCS client to which a call/session is established from the target UE", "diameter.3gpp.feature_list1_s6a_flags_bit13",
3658 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00002000,
3659 NULL, HFILL }
3661 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit14,
3662 { "Allow location by designated external value added LCS clients", "diameter.3gpp.feature_list1_s6a_flags_bit14",
3663 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00004000,
3664 NULL, HFILL }
3666 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit15,
3667 { "Allow location by designated PLMN operator LCS clients", "diameter.3gpp.feature_list1_s6a_flags_bit15",
3668 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00008000,
3669 NULL, HFILL }
3671 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit16,
3672 { "Allow location by LCS clients of a designated LCS service type", "diameter.3gpp.feature_list1_s6a_flags_bit16",
3673 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00010000,
3674 NULL, HFILL }
3676 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit17,
3677 { "All Mobile Originating Location Request Classes", "diameter.3gpp.feature_list1_s6a_flags_bit17",
3678 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00020000,
3679 NULL, HFILL }
3681 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit18,
3682 { "Allow an MS to request its own location", "diameter.3gpp.feature_list1_s6a_flags_bit18",
3683 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00040000,
3684 NULL, HFILL }
3686 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit19,
3687 { "Allow an MS to perform self location without interaction with the PLMN", "diameter.3gpp.feature_list1_s6a_flags_bit19",
3688 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00080000,
3689 NULL, HFILL }
3691 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit20,
3692 { "Allow an MS to request transfer of its location to another LCS client", "diameter.3gpp.feature_list1_s6a_flags_bit20",
3693 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00100000,
3694 NULL, HFILL }
3696 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit21,
3697 { "Short Message MO-PP", "diameter.3gpp.feature_list1_s6a_flags_bit21",
3698 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00200000,
3699 NULL, HFILL }
3701 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit22,
3702 { "Barring of Outgoing Calls", "diameter.3gpp.feature_list1_s6a_flags_bit22",
3703 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00400000,
3704 NULL, HFILL }
3706 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit23,
3707 { "Barring of all outgoing calls", "diameter.3gpp.feature_list1_s6a_flags_bit23",
3708 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00800000,
3709 NULL, HFILL }
3711 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit24,
3712 { "Barring of outgoing international calls", "diameter.3gpp.feature_list1_s6a_flags_bit24",
3713 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x01000000,
3714 NULL, HFILL }
3716 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit25,
3717 { "Barring of outgoing international calls except those directed to the home PLMN Country", "diameter.3gpp.feature_list1_s6a_flags_bit25",
3718 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x02000000,
3719 NULL, HFILL }
3721 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit26,
3722 { "UE Reachability Notification", "diameter.3gpp.feature_list1_s6a_flags_bit26",
3723 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x04000000,
3724 NULL, HFILL }
3726 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit27,
3727 { "Terminating Access Domain Selection Data Retrieval", "diameter.3gpp.feature_list1_s6a_flags_bit27",
3728 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x08000000,
3729 NULL, HFILL }
3731 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit28,
3732 { "State/Location Information Retrieval", "diameter.3gpp.feature_list1_s6a_flags_bit28",
3733 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x10000000,
3734 NULL, HFILL }
3736 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit29,
3737 { "Partial Purge from a Combined MME/SGSN", "diameter.3gpp.feature_list1_s6a_flags_bit29",
3738 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x20000000,
3739 NULL, HFILL }
3741 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit30,
3742 { "UE Time Zone Retrieval", "diameter.3gpp.feature_list1_s6a_flags1_bit30",
3743 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x40000000,
3744 NULL, HFILL }
3746 { &hf_diameter_3gpp_feature_list1_s6a_flags_bit31,
3747 { "Additional MSISDN", "diameter.3gpp.feature_list1_s6a_flags_bit31",
3748 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x80000000,
3749 NULL, HFILL }
3751 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit0,
3752 { "SMS in MME", "diameter.3gpp.feature_list2_s6a_flags_bit0",
3753 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000001,
3754 NULL, HFILL }
3756 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit1,
3757 { "SMS in SGSN", "diameter.3gpp.feature_list2_s6a_flags_bit1",
3758 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000002,
3759 NULL, HFILL }
3761 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit2,
3762 { "Dia-LCS-all-PrivExcep", "diameter.3gpp.feature_list2_s6a_flags_bit2",
3763 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000004,
3764 NULL, HFILL }
3766 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit3,
3767 { "Dia-LCS-Universal", "diameter.3gpp.feature_list2_s6a_flags_bit3",
3768 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000008,
3769 NULL, HFILL }
3771 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit4,
3772 { "Dia-LCS-CallSessionRelated", "diameter.3gpp.feature_list2_s6a_flags_bit4",
3773 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000010,
3774 NULL, HFILL }
3776 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit5,
3777 { "Dia-LCS-CallSessionUnrelated", "diameter.3gpp.feature_list2_s6a_flags_bit5",
3778 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000020,
3779 NULL, HFILL }
3781 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit6,
3782 { "Dia-LCS-PLMNOperator", "diameter.3gpp.feature_list2_s6a_flags_bit6",
3783 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000040,
3784 NULL, HFILL }
3786 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit7,
3787 { "Dia-LCS-ServiceType", "diameter.3gpp.feature_list2_s6a_flags_bit7",
3788 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000080,
3789 NULL, HFILL }
3791 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit8,
3792 { "Dia-LCS-all-MOLR-SS", "diameter.3gpp.feature_list2_s6a_flags_bit8",
3793 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000100,
3794 NULL, HFILL }
3796 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit9,
3797 { "Dia-LCS-BasicSelfLocation", "diameter.3gpp.feature_list2_s6a_flags_bit9",
3798 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000200,
3799 NULL, HFILL }
3801 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit10,
3802 { "Dia-LCS-AutonomousSelfLocation", "diameter.3gpp.feature_list2_s6a_flags_bit10",
3803 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000400,
3804 NULL, HFILL }
3806 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit11,
3807 { "Dia-LCS-TransferToThirdParty", "diameter.3gpp.feature_list2_s6a_flags_bit11",
3808 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000800,
3809 NULL, HFILL }
3811 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit12,
3812 { "Gdd-in-SGSN", "diameter.3gpp.feature_list2_s6a_flags_bit12",
3813 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00001000,
3814 NULL, HFILL }
3816 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit13,
3817 { "Optimized-LCS-Proc-Support", "diameter.3gpp.feature_list2_s6a_flags_bit13",
3818 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00002000,
3819 NULL, HFILL }
3821 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit14,
3822 { "SGSN CAMEL Capability", "diameter.3gpp.feature_list2_s6a_flags_bit14",
3823 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00004000,
3824 NULL, HFILL }
3826 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit15,
3827 { "ProSe Capability", "diameter.3gpp.feature_list2_s6a_flags_bit15",
3828 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00008000,
3829 NULL, HFILL }
3831 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit16,
3832 { "P-CSCF Restoration", "diameter.3gpp.feature_list2_s6a_flags_bit16",
3833 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00010000,
3834 NULL, HFILL }
3836 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit17,
3837 { "Reset-IDs", "diameter.3gpp.feature_list2_s6a_flags_bit17",
3838 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00020000,
3839 NULL, HFILL }
3841 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit18,
3842 { "Communication-Pattern", "diameter.3gpp.feature_list2_s6a_flags_bit18",
3843 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00040000,
3844 NULL, HFILL }
3846 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit19,
3847 { "Monitoring-Event", "diameter.3gpp.feature_list2_s6a_flags_bit19",
3848 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00080000,
3849 NULL, HFILL }
3851 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit20,
3852 { "Dedicated Core Networks", "diameter.3gpp.feature_list2_s6a_flags_bit20",
3853 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00100000,
3854 NULL, HFILL }
3856 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit21,
3857 { "Non-IP PDN Type APNs", "diameter.3gpp.feature_list2_s6a_flags_bit21",
3858 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00200000,
3859 NULL, HFILL }
3861 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit22,
3862 { "Non-IP PDP Type APNs", "diameter.3gpp.feature_list2_s6a_flags_bit22",
3863 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00400000,
3864 NULL, HFILL }
3866 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit23,
3867 { "Removal of MSISDN", "diameter.3gpp.feature_list2_s6a_flags_bit23",
3868 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00800000,
3869 NULL, HFILL }
3871 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit24,
3872 { "Emergency Service Continuity", "diameter.3gpp.feature_list2_s6a_flags_bit24",
3873 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x01000000,
3874 NULL, HFILL }
3876 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit25,
3877 { "V2X Capability", "diameter.3gpp.feature_list2_s6a_flags_bit25",
3878 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x02000000,
3879 NULL, HFILL }
3881 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit26,
3882 { "External-Identifier", "diameter.3gpp.feature_list2_s6a_flags_bit26",
3883 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x04000000,
3884 NULL, HFILL }
3886 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit27,
3887 { "NR as Secondary RAT", "diameter.3gpp.feature_list2_s6a_flags_bit27",
3888 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x08000000,
3889 NULL, HFILL }
3891 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit28,
3892 { "Unlicensed Spectrum as Secondary RAT", "diameter.3gpp.feature_list2_s6a_flags_bit28",
3893 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x10000000,
3894 NULL, HFILL }
3896 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit29,
3897 { "Ethernet PDN Type APNs", "diameter.3gpp.feature_list2_s6a_flags_bit29",
3898 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x20000000,
3899 NULL, HFILL }
3901 { &hf_diameter_3gpp_feature_list2_s6a_flags_bit30,
3902 { "Extended Reference IDs", "diameter.3gpp.feature_list2_s6a_flags_bit30",
3903 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x40000000,
3904 NULL, HFILL }
3906 { &hf_diameter_3gpp_feature_list2_s6a_flags_spare_bits,
3907 { "Spare", "diameter.3gpp.feature_list2_s6a_flags_spare",
3908 FT_UINT32, BASE_HEX, NULL, 0x80000000,
3909 NULL, HFILL }
3911 { &hf_diameter_3gpp_feature_list_gx_flags,
3912 { "GX Feature-List Flags", "diameter.3gpp.gx_feature_list_flags",
3913 FT_UINT32, BASE_HEX, NULL, 0x0,
3914 NULL, HFILL }
3916 { &hf_diameter_3gpp_feature_list1_gx_flags_bit0,
3917 { "Rel-8 Gx", "diameter.3gpp.feature_list1_gx_flags_bit0",
3918 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000001,
3919 NULL, HFILL }
3921 { &hf_diameter_3gpp_feature_list1_gx_flags_bit1,
3922 { "Rel-9 Gx", "diameter.3gpp.feature_list1_gx_flags_bit1",
3923 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000002,
3924 NULL, HFILL }
3926 { &hf_diameter_3gpp_feature_list1_gx_flags_bit2,
3927 { "Provisioning AF Signaling IP Flow Information",
3928 "diameter.3gpp.feature_list1_gx_flags_bit2",
3929 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000004,
3930 NULL, HFILL }
3932 { &hf_diameter_3gpp_feature_list1_gx_flags_bit3,
3933 { "Rel-10 Gx", "diameter.3gpp.feature_list1_gx_flags_bit3",
3934 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000008,
3935 NULL, HFILL }
3937 { &hf_diameter_3gpp_feature_list1_gx_flags_bit4,
3938 { "Sponsored Data Connectivity",
3939 "diameter.3gpp.feature_list1_gx_flags_bit4",
3940 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000010,
3941 NULL, HFILL }
3943 { &hf_diameter_3gpp_feature_list1_gx_flags_bit5,
3944 { "IP Flow Mobility", "diameter.3gpp.feature_list1_gx_flags_bit5",
3945 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000020,
3946 NULL, HFILL }
3948 { &hf_diameter_3gpp_feature_list1_gx_flags_bit6,
3949 { "ADC", "diameter.3gpp.feature_list1_gx_flags_bit6",
3950 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000040,
3951 NULL, HFILL }
3953 { &hf_diameter_3gpp_feature_list1_gx_flags_bit7,
3954 { "vSRVCC", "diameter.3gpp.feature_list1_gx_flags_bit7",
3955 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000080,
3956 NULL, HFILL }
3958 { &hf_diameter_3gpp_feature_list1_gx_flags_bit8,
3959 { "EPC-routed", "diameter.3gpp.feature_list1_gx_flags_bit8",
3960 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000100,
3961 NULL, HFILL }
3963 { &hf_diameter_3gpp_feature_list1_gx_flags_bit9,
3964 { "rSRVCC", "diameter.3gpp.feature_list1_gx_flags_bit9",
3965 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000200,
3966 NULL, HFILL }
3968 { &hf_diameter_3gpp_feature_list1_gx_flags_bit10,
3969 { "NetLoc", "diameter.3gpp.feature_list1_gx_flags_bit10",
3970 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported),0x00000400,
3971 NULL, HFILL }
3973 { &hf_diameter_3gpp_feature_list1_gx_flags_bit11,
3974 { "Usage Monitoring Congestion Handling",
3975 "diameter.3gpp.feature_list1_gx_flags_bit11",
3976 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported),0x00000800,
3977 NULL, HFILL }
3979 { &hf_diameter_3gpp_feature_list1_gx_flags_bit12,
3980 { "Extended Filter", "diameter.3gpp.feature_list1_gx_flags_bit12",
3981 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00001000,
3982 NULL, HFILL }
3984 { &hf_diameter_3gpp_feature_list1_gx_flags_bit13,
3985 { "Trusted WLAN Access", "diameter.3gpp.feature_list1_gx_flags_bit13",
3986 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00002000,
3987 NULL, HFILL }
3989 { &hf_diameter_3gpp_feature_list1_gx_flags_bit14,
3990 { "SGW Restoration procedures", "diameter.3gpp.feature_list1_gx_flags_bit14",
3991 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00004000,
3992 NULL, HFILL }
3994 { &hf_diameter_3gpp_feature_list1_gx_flags_bit15,
3995 { "Time based Usage Monitoring Control", "diameter.3gpp.feature_list1_gx_flags_bit15",
3996 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00008000,
3997 NULL, HFILL }
3999 { &hf_diameter_3gpp_feature_list1_gx_flags_bit16,
4000 { "Pending Transaction", "diameter.3gpp.feature_list1_gx_flags_bit16",
4001 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00010000,
4002 NULL, HFILL }
4004 { &hf_diameter_3gpp_feature_list1_gx_flags_bit17,
4005 { "Application Based Charging", "diameter.3gpp.feature_list1_gx_flags_bit17",
4006 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00020000,
4007 NULL, HFILL }
4009 { &hf_diameter_3gpp_feature_list1_gx_flags_bit18,
4010 { "Spare", "diameter.3gpp.feature_list1_gx_flags_bit18",
4011 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00040000,
4012 NULL, HFILL }
4014 { &hf_diameter_3gpp_feature_list1_gx_flags_bit19,
4015 { "NetLoc Trusted WLAN", "diameter.3gpp.feature_list1_gx_flags_bit19",
4016 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00080000,
4017 NULL, HFILL }
4019 { &hf_diameter_3gpp_feature_list1_gx_flags_bit20,
4020 { "Fixed Broadband Access Convergence", "diameter.3gpp.feature_list1_gx_flags_bit20",
4021 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported),0x00100000,
4022 NULL, HFILL }
4024 { &hf_diameter_3gpp_feature_list1_gx_flags_bit21,
4025 { "Conditional APN Policy Info", "diameter.3gpp.feature_list1_gx_flags_bit21",
4026 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00200000,
4027 NULL, HFILL }
4029 { &hf_diameter_3gpp_feature_list1_gx_flags_bit22,
4030 { "RAN and/or NAS release cause", "diameter.3gpp.feature_list1_gx_flags_bit22",
4031 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00400000,
4032 NULL, HFILL }
4034 { &hf_diameter_3gpp_feature_list1_gx_flags_bit23,
4035 { "Presence Reporting Area Information reporting", "diameter.3gpp.feature_list1_gx_flags_bit23",
4036 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00800000,
4037 NULL, HFILL }
4039 { &hf_diameter_3gpp_feature_list1_gx_flags_bit24,
4040 { "P-CSCF Restoration Enhancement", "diameter.3gpp.feature_list1_gx_flags_bit24",
4041 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x01000000,
4042 NULL, HFILL }
4044 { &hf_diameter_3gpp_feature_list1_gx_flags_bit25,
4045 { "Mission Critical QCIs", "diameter.3gpp.feature_list1_gx_flags_bit25",
4046 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x02000000,
4047 NULL, HFILL }
4049 { &hf_diameter_3gpp_feature_list1_gx_flags_bit26,
4050 { "ResShare", "diameter.3gpp.feature_list1_gx_flags_bit26",
4051 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x04000000,
4052 NULL, HFILL }
4054 { &hf_diameter_3gpp_feature_list1_gx_flags_bit27,
4055 { "ExUsage", "diameter.3gpp.feature_list1_gx_flags_bit27",
4056 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x08000000,
4057 NULL, HFILL }
4059 { &hf_diameter_3gpp_feature_list1_gx_flags_bit28,
4060 { "NBIFOM", "diameter.3gpp.feature_list1_gx_flags_bit28",
4061 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x10000000,
4062 NULL, HFILL }
4064 { &hf_diameter_3gpp_feature_list1_gx_flags_bit29,
4065 { "TSC", "diameter.3gpp.feature_list1_gx_flags_bit29",
4066 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x20000000,
4067 NULL, HFILL }
4069 { &hf_diameter_3gpp_feature_list1_gx_flags_bit30,
4070 { "NetLoc-Untrusted-WLAN", "diameter.3gpp.feature_list1_gx_flags_bit30",
4071 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x40000000,
4072 NULL, HFILL }
4074 { &hf_diameter_3gpp_feature_list1_gx_flags_bit31,
4075 { "CondPolicyInfo", "diameter.3gpp.feature_list1_gx_flags_bit31",
4076 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x80000000,
4077 NULL, HFILL }
4079 { &hf_diameter_3gpp_feature_list2_gx_flags_bit0,
4080 { "Enhanced RAN and/or NAS release cause", "diameter.3gpp.feature_list2_gx_flags_bit0",
4081 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000001,
4082 NULL, HFILL }
4084 { &hf_diameter_3gpp_feature_list2_gx_flags_bit1,
4085 { "eNodeB Change", "diameter.3gpp.feature_list2_gx_flags_bit1",
4086 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000002,
4087 NULL, HFILL }
4089 { &hf_diameter_3gpp_feature_list2_gx_flags_bit2,
4090 { "RuleVersioning",
4091 "diameter.3gpp.feature_list2_gx_flags_bit2",
4092 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000004,
4093 NULL, HFILL }
4095 { &hf_diameter_3gpp_feature_list2_gx_flags_bit3,
4096 { "Multiple PRA", "diameter.3gpp.feature_list2_gx_flags_bit3",
4097 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000008,
4098 NULL, HFILL }
4100 { &hf_diameter_3gpp_feature_list2_gx_flags_bit4,
4101 { "CondPolicyInfo DefaultQoS",
4102 "diameter.3gpp.feature_list2_gx_flags_bit4",
4103 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000010,
4104 NULL, HFILL }
4106 { &hf_diameter_3gpp_feature_list2_gx_flags_bit5,
4107 { "Rule Bound to Default Bearer", "diameter.3gpp.feature_list2_gx_flags_bit5",
4108 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000020,
4109 NULL, HFILL }
4111 { &hf_diameter_3gpp_feature_list2_gx_flags_bit6,
4112 { "3GPP PS-Data Off", "diameter.3gpp.feature_list2_gx_flags_bit6",
4113 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000040,
4114 NULL, HFILL }
4116 { &hf_diameter_3gpp_feature_list2_gx_flags_bit7,
4117 { "Extended BW for NR", "diameter.3gpp.feature_list2_gx_flags_bit7",
4118 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000080,
4119 NULL, HFILL }
4121 { &hf_diameter_3gpp_cms_spare_bits,
4122 { "Spare", "diameter.3gpp.cms.spare",
4123 FT_UINT32, BASE_HEX, NULL, 0x01FFFFFF,
4124 NULL, HFILL }
4126 { &hf_diameter_3gpp_cms_no_gyn_session_serv_not_allowed,
4127 { "No Gyn Session, service not allowed", "diameter.3gpp.cms.no_gyn_session_serv_not_allowed",
4128 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x02000000,
4129 NULL, HFILL }
4131 { &hf_diameter_3gpp_cms_no_gyn_session_serv_allowed,
4132 { "No Gyn Session, service allowed", "diameter.3gpp.cms.no_gyn_session_serv_allowed",
4133 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x04000000,
4134 NULL, HFILL }
4136 { &hf_diameter_3gpp_cms_rating_failed,
4137 { "Rating Failed", "diameter.3gpp.cms.rating_failed",
4138 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x08000000,
4139 NULL, HFILL }
4141 { &hf_diameter_3gpp_cms_user_unknown,
4142 { "User Unknown", "diameter.3gpp.cms.user_unknown",
4143 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x10000000,
4144 NULL, HFILL }
4146 { &hf_diameter_3gpp_cms_auth_rej,
4147 { "Authorization Rejected", "diameter.3gpp.cms.auth_rej",
4148 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x20000000,
4149 NULL, HFILL }
4151 { &hf_diameter_3gpp_cms_credit_ctrl_not_applicable,
4152 { "Credit Control Not Applicable", "diameter.3gpp.cms.credit_ctrl_not_applicable",
4153 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x40000000,
4154 NULL, HFILL }
4156 { &hf_diameter_3gpp_cms_end_user_serv_status,
4157 { "End User Service Denied", "diameter.3gpp.cms.end_user_serv_status",
4158 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x80000000,
4159 NULL, HFILL }
4161 { &hf_diameter_3gpp_secondary_rat_type,
4162 { "Secondary RAT Type", "diameter.3gpp.secondary_rat_type",
4163 FT_UINT8, BASE_DEC, VALS(diameter_3gpp_secondary_rat_type_vals), 0x00,
4164 NULL, HFILL }
4166 { &hf_diameter_3gpp_qos_subscribed,
4167 { "QoS-Subscribed", "diameter.3gpp.qos_subscribed",
4168 FT_BYTES, BASE_NONE, NULL, 0x0,
4169 NULL, HFILL }
4171 { &hf_diameter_3gpp_qos_reliability_cls,
4172 { "Reliability class", "diameter.3gpp.qos.reliability_cls",
4173 FT_UINT8, BASE_DEC, VALS(diameter_3gpp_qos_reliability_vals), 0x07,
4174 NULL, HFILL }
4176 { &hf_diameter_3gpp_qos_delay_cls,
4177 { "Quality of Service Delay class", "diameter.3gpp.qos.delay_cls",
4178 FT_UINT8, BASE_DEC | BASE_RANGE_STRING, RVALS(diameter_3gpp_qos_delay_cls_vals), 0x38,
4179 NULL, HFILL }
4181 { &hf_diameter_3gpp_qos_prec_class,
4182 { "Precedence class", "diameter.3gpp.qos.prec_class",
4183 FT_UINT8, BASE_DEC | BASE_RANGE_STRING, RVALS(diameter_3gpp_qos_prec_class_vals), 0x07,
4184 NULL, HFILL }
4186 { &hf_diameter_3gpp_qos_peak_thr,
4187 { "Peak throughput", "diameter.3gpp.qos.qos.peak_throughput",
4188 FT_UINT8, BASE_DEC | BASE_RANGE_STRING, RVALS(diameter_3gpp_qos_peak_thr_vals), 0xf0,
4189 NULL, HFILL }
4191 { &hf_diameter_3gpp_qos_mean_thr,
4192 { "Mean throughput", "diameter.3gpp.qos.mean_throughput",
4193 FT_UINT8, BASE_DEC | BASE_RANGE_STRING, RVALS(diameter_3gpp_qos_mean_thr_vals), 0x1f,
4194 NULL, HFILL }
4196 { &hf_diameter_3gpp_qos_al_ret_priority,
4197 { "Allocation/Retention priority", "diameter.3gpp.qos.al_ret_priority",
4198 FT_UINT8, BASE_DEC, NULL, 0,
4199 NULL, HFILL }
4201 { &hf_diameter_3gpp_qos_del_of_err_sdu,
4202 { "Delivery of erroneous SDUs", "diameter.3gpp.qos.del_of_err_sdu",
4203 FT_UINT8, BASE_DEC, VALS(diameter_3gpp_qos_del_of_err_sdu_vals), 0x07,
4204 NULL, HFILL }
4206 { &hf_diameter_3gpp_qos_del_order,
4207 { "Delivery order", "diameter.3gpp.qos.del_order",
4208 FT_UINT8, BASE_DEC, VALS(diameter_3gpp_qos_del_order_vals), 0x18,
4209 NULL, HFILL }
4211 { &hf_diameter_3gpp_qos_traffic_cls,
4212 { "Traffic class", "diameter.3gpp.qos.traffic_cls",
4213 FT_UINT8, BASE_DEC, VALS(diameter_3gpp_qos_traffic_cls_vals), 0xe0,
4214 NULL, HFILL }
4216 { &hf_diameter_3gpp_qos_maximum_sdu_size,
4217 { "Maximum SDU size", "diameter.3gpp.qos.qos.maximum_sdu_size",
4218 FT_UINT8, BASE_DEC, NULL, 0x0,
4219 NULL, HFILL }
4221 { &hf_diameter_3gpp_qos_max_bitrate_upl,
4222 { "Maximum bitrate for uplink", "diameter.3gpp.qos.max_bitrate_upl",
4223 FT_UINT8, BASE_DEC, NULL, 0x0,
4224 NULL, HFILL }
4226 { &hf_diameter_3gpp_qos_max_bitrate_downl,
4227 { "Maximum bitrate for downlink", "diameter.3gpp.qos.max_bitrate_downl",
4228 FT_UINT8, BASE_DEC, NULL, 0x0,
4229 NULL, HFILL }
4231 { &hf_diameter_3gpp_qos_sdu_err_rat,
4232 { "SDU error ratio", "diameter.3gpp.qos.sdu_err_rat",
4233 FT_UINT8, BASE_DEC, VALS(diameter_3gpp_qos_sdu_err_rat_vals), 0x0f,
4234 NULL, HFILL }
4236 { &hf_diameter_3gpp_qos_ber,
4237 { "Residual Bit Error Rate (BER)", "diameter.3gpp.qos.ber",
4238 FT_UINT8, BASE_DEC, VALS(diameter_3gpp_qos_ber_vals), 0xf0,
4239 NULL, HFILL }
4241 { &hf_diameter_3gpp_qos_traff_hdl_pri,
4242 { "Traffic handling priority", "diameter.3gpp.qos.traff_hdl_pri",
4243 FT_UINT8, BASE_DEC, VALS(gsm_a_sm_qos_traff_hdl_pri_vals), 0x03,
4244 NULL, HFILL }
4246 { &hf_diameter_3gpp_qos_trans_delay,
4247 { "Transfer delay", "diameter.3gpp.qos.trans_delay",
4248 FT_UINT8, BASE_DEC, NULL, 0xfc,
4249 NULL, HFILL }
4251 { &hf_diameter_3gpp_qos_guar_bitrate_upl,
4252 { "Guaranteed bitrate for uplink", "diameter.3gpp.qos.guar_bitrate_upl",
4253 FT_UINT8, BASE_DEC, NULL, 0x0,
4254 NULL, HFILL }
4256 { &hf_diameter_3gpp_qos_guar_bitrate_downl,
4257 { "Guaranteed bitrate for downlink", "diameter.3gpp.qos.guar_bitrate_downl",
4258 FT_UINT8, BASE_DEC, NULL, 0x0,
4259 NULL, HFILL }
4262 { &hf_diameter_3gpp_qos_source_stat_desc,
4263 { "Source statistics description", "diameter.3gpp.qos.source_stat_desc",
4264 FT_UINT8, BASE_DEC, NULL, 0x0f,
4265 NULL, HFILL }
4267 { &hf_diameter_3gpp_qos_signalling_ind,
4268 { "Signalling indication", "diameter.3gpp.qos.signalling_ind",
4269 FT_BOOLEAN, 8, TFS(&diameter_3gpp_qos_signalling_ind_value), 0x10,
4270 NULL, HFILL }
4272 { &hf_diameter_3gpp_qos_max_bitrate_downl_ext,
4273 { "Maximum bitrate for downlink (extended)", "diameter.3gpp.qos.max_bitrate_downl_ext",
4274 FT_UINT8, BASE_DEC, NULL, 0x0,
4275 NULL, HFILL }
4277 { &hf_diameter_3gpp_qos_guar_bitrate_downl_ext,
4278 { "Guaranteed bitrate for downlink (extended)", "diameter.3gpp.qos.guar_bitrate_downl_ext",
4279 FT_UINT8, BASE_DEC, NULL, 0x0,
4280 NULL, HFILL }
4282 { &hf_diameter_3gpp_qos_max_bitrate_upl_ext,
4283 { "Maximum bitrate for uplink (extended)", "diameter.3gpp.qos.max_bitrate_upl_ext",
4284 FT_UINT8, BASE_DEC, NULL, 0x0,
4285 NULL, HFILL }
4287 { &hf_diameter_3gpp_qos_guar_bitrate_upl_ext,
4288 { "Guaranteed bitrate for uplink (extended)", "diameter.3gpp.qos.guar_bitrate_upl_ext",
4289 FT_UINT8, BASE_DEC, NULL, 0x0,
4290 NULL, HFILL }
4292 { &hf_diameter_3gpp_qos_pre_emption_vulnerability,
4293 { "Pre-emption vulnerability", "diameter.3gpp.qos.pre_emption_vulnerability",
4294 FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x01,
4295 NULL, HFILL }
4297 { &hf_diameter_3gpp_qos_priority_level,
4298 { "Priority level", "diameter.3gpp.qos.priority_level",
4299 FT_UINT8, BASE_DEC, NULL, 0x3c,
4300 NULL, HFILL }
4302 { &hf_diameter_3gpp_qos_pre_emption_capability,
4303 { "Pre-emption capability", "diameter.3gpp.qos.pre_emption_capability",
4304 FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x40,
4305 NULL, HFILL }
4307 { &hf_diameter_3gpp_ulr_flags,
4308 { "ULR Flags", "diameter.3gpp.ulr_flags",
4309 FT_UINT32, BASE_HEX, NULL, 0x0,
4310 NULL, HFILL }
4312 { &hf_diameter_3gpp_ulr_flags_bit0,
4313 { "Single-Registration-Indication", "diameter.3gpp.ulr_flags_bit0",
4314 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
4315 NULL, HFILL }
4317 { &hf_diameter_3gpp_ulr_flags_bit1,
4318 { "S6a/S6d-Indicator", "diameter.3gpp.ulr_flags_bit1",
4319 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
4320 NULL, HFILL }
4322 { &hf_diameter_3gpp_ulr_flags_bit2,
4323 { "Skip-Subscriber-Data", "diameter.3gpp.ulr_flags_bit2",
4324 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000004,
4325 NULL, HFILL }
4327 { &hf_diameter_3gpp_ulr_flags_bit3,
4328 { "GPRS-Subscription-Data-Indicator", "diameter.3gpp.ulr_flags_bit3",
4329 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000008,
4330 NULL, HFILL }
4332 { &hf_diameter_3gpp_ulr_flags_bit4,
4333 { "Node-Type-Indicator", "diameter.3gpp.ulr_flags_bit4",
4334 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000010,
4335 NULL, HFILL }
4337 { &hf_diameter_3gpp_ulr_flags_bit5,
4338 { "Initial-Attach-Indicator", "diameter.3gpp.ulr_flags_bit5",
4339 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000020,
4340 NULL, HFILL }
4342 { &hf_diameter_3gpp_ulr_flags_bit6,
4343 { "PS-LCS-Not-Supported-By-UE", "diameter.3gpp.ulr_flags_bit6",
4344 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000040,
4345 NULL, HFILL }
4347 { &hf_diameter_3gpp_ulr_flags_bit7,
4348 { "SMS-Only-Indication", "diameter.3gpp.ulr_flags_bit7",
4349 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000080,
4350 NULL, HFILL }
4352 { &hf_diameter_3gpp_ulr_flags_bit8,
4353 { "Dual-Registration-5G-Indicator", "diameter.3gpp.ulr_flags_bit8",
4354 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000100,
4355 NULL, HFILL }
4357 { &hf_diameter_3gpp_ulr_flags_spare_bits,
4358 { "Spare", "diameter.3gpp.ulr_flags_spare",
4359 FT_UINT32, BASE_HEX, NULL, 0xFFFFFE00,
4360 NULL, HFILL }
4362 { &hf_diameter_3gpp_ula_flags,
4363 { "ULA Flags", "diameter.3gpp.ula_flags",
4364 FT_UINT32, BASE_HEX, NULL, 0x0,
4365 NULL, HFILL }
4367 { &hf_diameter_3gpp_ula_flags_bit0,
4368 { "Separation Indication", "diameter.3gpp.ula_flags_bit0",
4369 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
4370 NULL, HFILL }
4372 { &hf_diameter_3gpp_ula_flags_bit1,
4373 { "MME Registered for SMS", "diameter.3gpp.ula_flags_bit1",
4374 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
4375 NULL, HFILL }
4377 { &hf_diameter_3gpp_ula_flags_spare_bits,
4378 { "Spare", "diameter.3gpp.ula_flags_spare",
4379 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFC,
4380 NULL, HFILL }
4382 { &hf_diameter_3gpp_dsr_flags,
4383 { "DSR Flags", "diameter.3gpp.dsr_flags",
4384 FT_UINT32, BASE_HEX, NULL, 0x0,
4385 NULL, HFILL }
4387 { &hf_diameter_3gpp_dsr_flags_bit0,
4388 { "Regional Subscription Withdrawal", "diameter.3gpp.dsr_flags_bit0",
4389 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
4390 NULL, HFILL }
4392 { &hf_diameter_3gpp_dsr_flags_bit1,
4393 { "Complete APN Configuration Profile Withdrawal", "diameter.3gpp.dsr_flags_bit1",
4394 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
4395 NULL, HFILL }
4397 { &hf_diameter_3gpp_dsr_flags_bit2,
4398 { "Subscribed Charging Characteristics Withdrawal", "diameter.3gpp.dsr_flags_bit2",
4399 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000004,
4400 NULL, HFILL }
4402 { &hf_diameter_3gpp_dsr_flags_bit3,
4403 { "PDN subscription contexts Withdrawal", "diameter.3gpp.dsr_flags_bit3",
4404 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000008,
4405 NULL, HFILL }
4407 { &hf_diameter_3gpp_dsr_flags_bit4,
4408 { "STN-SR", "diameter.3gpp.dsr_flags_bit4",
4409 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000010,
4410 NULL, HFILL }
4412 { &hf_diameter_3gpp_dsr_flags_bit5,
4413 { "Complete PDP context list Withdrawal", "diameter.3gpp.dsr_flags_bit5",
4414 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000020,
4415 NULL, HFILL }
4417 { &hf_diameter_3gpp_dsr_flags_bit6,
4418 { "PDP contexts Withdrawal", "diameter.3gpp.dsr_flags_bit6",
4419 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000040,
4420 NULL, HFILL }
4422 { &hf_diameter_3gpp_dsr_flags_bit7,
4423 { "Roaming Restricted due to unsupported feature", "diameter.3gpp.dsr_flags_bit7",
4424 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000080,
4425 NULL, HFILL }
4427 { &hf_diameter_3gpp_dsr_flags_bit8,
4428 { "Trace Data Withdrawal", "diameter.3gpp.dsr_flags_bit8",
4429 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000100,
4430 NULL, HFILL }
4432 { &hf_diameter_3gpp_dsr_flags_bit9,
4433 { "CSG Deleted", "diameter.3gpp.dsr_flags_bit9",
4434 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000200,
4435 NULL, HFILL }
4437 { &hf_diameter_3gpp_dsr_flags_bit10,
4438 { "APN-OI-Replacement", "diameter.3gpp.dsr_flags_bit10",
4439 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000400,
4440 NULL, HFILL }
4442 { &hf_diameter_3gpp_dsr_flags_bit11,
4443 { "GMLC List Withdrawal", "diameter.3gpp.dsr_flags_bit11",
4444 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000800,
4445 NULL, HFILL }
4447 { &hf_diameter_3gpp_dsr_flags_bit12,
4448 { "LCS Withdrawal", "diameter.3gpp.dsr_flags_bit12",
4449 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00001000,
4450 NULL, HFILL }
4452 { &hf_diameter_3gpp_dsr_flags_bit13,
4453 { "SMS Withdrawal", "diameter.3gpp.dsr_flags_bit13",
4454 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00002000,
4455 NULL, HFILL }
4457 { &hf_diameter_3gpp_dsr_flags_bit14,
4458 { "Subscribed periodic RAU-TAU Timer Withdrawal", "diameter.3gpp.dsr_flags_bit14",
4459 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00004000,
4460 NULL, HFILL }
4462 { &hf_diameter_3gpp_dsr_flags_bit15,
4463 { "Subscribed VSRVCC Withdrawal", "diameter.3gpp.dsr_flags_bit15",
4464 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00008000,
4465 NULL, HFILL }
4467 { &hf_diameter_3gpp_dsr_flags_bit16,
4468 { "A-MSISDN Withdrawal", "diameter.3gpp.dsr_flags_bit16",
4469 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00010000,
4470 NULL, HFILL }
4472 { &hf_diameter_3gpp_dsr_flags_bit17,
4473 { "ProSe Withdrawal", "diameter.3gpp.dsr_flags_bit17",
4474 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00020000,
4475 NULL, HFILL }
4477 { &hf_diameter_3gpp_dsr_flags_bit18,
4478 { "Reset-IDs", "diameter.3gpp.dsr_flags_bit18",
4479 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00040000,
4480 NULL, HFILL }
4482 { &hf_diameter_3gpp_dsr_flags_bit19,
4483 { "DL-Buffering-Suggested-Packet-Count Withdrawal", "diameter.3gpp.dsr_flags_bit19",
4484 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00080000,
4485 NULL, HFILL }
4487 { &hf_diameter_3gpp_dsr_flags_bit20,
4488 { "Subscribed IMSI-Group-Id Withdrawal", "diameter.3gpp.dsr_flags_bit20",
4489 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00100000,
4490 NULL, HFILL }
4492 { &hf_diameter_3gpp_dsr_flags_bit21,
4493 { "Delete monitoring events", "diameter.3gpp.dsr_flags_bit21",
4494 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00200000,
4495 NULL, HFILL }
4497 { &hf_diameter_3gpp_dsr_flags_bit22,
4498 { "User Plane Integrity Protection Withdrawal", "diameter.3gpp.dsr_flags_bit22",
4499 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00400000,
4500 NULL, HFILL }
4502 { &hf_diameter_3gpp_dsr_flags_bit23,
4503 { "MSISDN Withdrawal", "diameter.3gpp.dsr_flags_bit23",
4504 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00800000,
4505 NULL, HFILL }
4507 { &hf_diameter_3gpp_dsr_flags_bit24,
4508 { "UE Usage Type Withdrawal", "diameter.3gpp.dsr_flags_bit24",
4509 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x01000000,
4510 NULL, HFILL }
4512 { &hf_diameter_3gpp_dsr_flags_bit25,
4513 { "V2X Withdrawal", "diameter.3gpp.dsr_flags_bit25",
4514 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x02000000,
4515 NULL, HFILL }
4517 { &hf_diameter_3gpp_dsr_flags_bit26,
4518 { "External-Identifier-Withdrawal", "diameter.3gpp.dsr_flags_bit26",
4519 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x04000000,
4520 NULL, HFILL }
4522 { &hf_diameter_3gpp_dsr_flags_bit27,
4523 { "Aerial-UE-Subscription-Withdrawal", "diameter.3gpp.dsr_flags_bit27",
4524 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x08000000,
4525 NULL, HFILL }
4527 { &hf_diameter_3gpp_dsr_flags_bit28,
4528 { "Paging-Time-Window-Subscription-Withdrawal", "diameter.3gpp.dsr_flags_bit28",
4529 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x10000000,
4530 NULL, HFILL }
4532 { &hf_diameter_3gpp_dsr_flags_bit29,
4533 { "Active-Time-Withdrawal", "diameter.3gpp.dsr_flags_bit29",
4534 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x20000000,
4535 NULL, HFILL }
4537 { &hf_diameter_3gpp_dsr_flags_bit30,
4538 { "eDRX-Cycle-Length-Withdrawal", "diameter.3gpp.dsr_flags_bit30",
4539 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x40000000,
4540 NULL, HFILL }
4542 { &hf_diameter_3gpp_dsr_flags_bit31,
4543 { "Service-Gap-Time-Withdrawal", "diameter.3gpp.dsr_flags_bit31",
4544 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x80000000,
4545 NULL, HFILL }
4547 { &hf_diameter_3gpp_dsa_flags,
4548 { "DSA Flags", "diameter.3gpp.dsa_flags",
4549 FT_UINT32, BASE_HEX, NULL, 0x0,
4550 NULL, HFILL }
4552 { &hf_diameter_3gpp_dsa_flags_bit0,
4553 { "Network Node area restricted", "diameter.3gpp.dsa_flags_bit0",
4554 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
4555 NULL, HFILL }
4557 { &hf_diameter_3gpp_dsa_flags_spare_bits,
4558 { "Spare", "diameter.3gpp.dsa_flags_spare",
4559 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFE,
4560 NULL, HFILL }
4562 { &hf_diameter_3gpp_acc_res_dat_flags,
4563 { "Access-Restriction-Data Flags", "diameter.3gpp.acc_res_dat_flags",
4564 FT_UINT32, BASE_HEX, NULL, 0x0,
4565 NULL, HFILL }
4567 { &hf_diameter_3gpp_acc_res_dat_flags_bit0,
4568 { "UTRAN Not Allowed", "diameter.3gpp.acc_res_dat_flags_bit0",
4569 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
4570 NULL, HFILL }
4572 { &hf_diameter_3gpp_acc_res_dat_flags_bit1,
4573 { "GERAN Not Allowed", "diameter.3gpp.acc_res_dat_flags_bit1",
4574 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
4575 NULL, HFILL }
4577 { &hf_diameter_3gpp_acc_res_dat_flags_bit2,
4578 { "GAN Not Allowed", "diameter.3gpp.acc_res_dat_flags_bit2",
4579 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000004,
4580 NULL, HFILL }
4582 { &hf_diameter_3gpp_acc_res_dat_flags_bit3,
4583 { "I-HSPA-Evolution Not Allowed", "diameter.3gpp.acc_res_dat_flags_bit3",
4584 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000008,
4585 NULL, HFILL }
4587 { &hf_diameter_3gpp_acc_res_dat_flags_bit4,
4588 { "WB-E-UTRAN Not Allowed", "diameter.3gpp.acc_res_dat_flags_bit4",
4589 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000010,
4590 NULL, HFILL }
4592 { &hf_diameter_3gpp_acc_res_dat_flags_bit5,
4593 { "HO-To-Non-3GPP-Access Not Allowed", "diameter.3gpp.acc_res_dat_flags_bit5",
4594 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000020,
4595 NULL, HFILL }
4597 { &hf_diameter_3gpp_acc_res_dat_flags_bit6,
4598 { "NB-IoT Not Allowed", "diameter.3gpp.acc_res_dat_flags_bit6",
4599 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000040,
4600 NULL, HFILL }
4602 { &hf_diameter_3gpp_acc_res_dat_flags_bit7,
4603 { "Enhanced Coverage Not Allowed", "diameter.3gpp.acc_res_dat_flags_bit7",
4604 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000080,
4605 NULL, HFILL }
4607 { &hf_diameter_3gpp_acc_res_dat_flags_bit8,
4608 { "NR as Secondary RAT Not Allowed", "diameter.3gpp.acc_res_dat_flags_bit8",
4609 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000100,
4610 NULL, HFILL }
4612 { &hf_diameter_3gpp_acc_res_dat_flags_bit9,
4613 { "Unlicensed Spectrum as Secondary RAT Not Allowed", "diameter.3gpp.acc_res_dat_flags_bit9",
4614 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000200,
4615 NULL, HFILL }
4617 { &hf_diameter_3gpp_acc_res_dat_flags_bit10,
4618 { "NR in 5G Not Allowed", "diameter.3gpp.acc_res_dat_flags_bit10",
4619 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000400,
4620 NULL, HFILL }
4622 { &hf_diameter_3gpp_acc_res_dat_flags_bit11,
4623 { "LTE-M Not Allowed", "diameter.3gpp.acc_res_dat_flags_bit11",
4624 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000800,
4625 NULL, HFILL }
4627 { &hf_diameter_3gpp_acc_res_dat_flags_bit12,
4628 { "WB-E-UTRAN Except LTE-M Not Allowed", "diameter.3gpp.acc_res_dat_flags_bit12",
4629 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00001000,
4630 NULL, HFILL }
4632 { &hf_diameter_3gpp_acc_res_dat_flags_spare_bits,
4633 { "Spare", "diameter.3gpp.acc_res_dat_flags_spare",
4634 FT_UINT32, BASE_HEX, NULL, 0xFFFFe000,
4635 NULL, HFILL }
4638 { &hf_diameter_3gpp_ida_flags,
4639 { "IDA Flags", "diameter.3gpp.ida_flags",
4640 FT_UINT32, BASE_HEX, NULL, 0x0,
4641 NULL, HFILL }
4643 { &hf_diameter_3gpp_ida_flags_bit0,
4644 { "Network Node area restricted", "diameter.3gpp.ida_flags_bit0",
4645 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
4646 NULL, HFILL }
4648 { &hf_diameter_3gpp_ida_flags_spare_bits,
4649 { "Spare", "diameter.3gpp.ida_flags_spare",
4650 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFE,
4651 NULL, HFILL }
4653 { &hf_diameter_3gpp_pua_flags,
4654 { "PUA Flags", "diameter.3gpp.pua_flags",
4655 FT_UINT32, BASE_HEX, NULL, 0x0,
4656 NULL, HFILL }
4658 { &hf_diameter_3gpp_pua_flags_bit0,
4659 { "Freeze M-TMSI", "diameter.3gpp.pua_flags_bit0",
4660 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
4661 NULL, HFILL }
4663 { &hf_diameter_3gpp_pua_flags_bit1,
4664 { "Freeze P-TMSI", "diameter.3gpp.pua_flags_bit1",
4665 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
4666 NULL, HFILL }
4668 { &hf_diameter_3gpp_pua_flags_spare_bits,
4669 { "Spare", "diameter.3gpp.pua_flags_spare",
4670 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFC,
4671 NULL, HFILL }
4673 { &hf_diameter_3gpp_nor_flags,
4674 { "NOR Flags", "diameter.3gpp.nor_flags",
4675 FT_UINT32, BASE_HEX, NULL, 0x0,
4676 NULL, HFILL }
4678 { &hf_diameter_3gpp_nor_flags_bit0,
4679 { "Single-Registration-Indication", "diameter.3gpp.nor_flags_bit0",
4680 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
4681 NULL, HFILL }
4683 { &hf_diameter_3gpp_nor_flags_bit1,
4684 { "SGSN area restricted", "diameter.3gpp.nor_flags_bit1",
4685 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
4686 NULL, HFILL }
4688 { &hf_diameter_3gpp_nor_flags_bit2,
4689 { "Ready for SM", "diameter.3gpp.nor_flags_bit2",
4690 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000004,
4691 NULL, HFILL }
4693 { &hf_diameter_3gpp_nor_flags_bit3,
4694 { "UE Reachable", "diameter.3gpp.nor_flags_bit3",
4695 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000008,
4696 NULL, HFILL }
4698 { &hf_diameter_3gpp_nor_flags_bit4,
4699 { "Delete all APN and PDN GW identity pairs", "diameter.3gpp.nor_flags_bit4",
4700 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000010,
4701 NULL, HFILL }
4703 { &hf_diameter_3gpp_nor_flags_bit5,
4704 { "UE Reachable from SGSN", "diameter.3gpp.nor_flags_bit5",
4705 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000020,
4706 NULL, HFILL }
4708 { &hf_diameter_3gpp_nor_flags_bit6,
4709 { "Ready for SM from MME", "diameter.3gpp.nor_flags_bit6",
4710 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000040,
4711 NULL, HFILL }
4713 { &hf_diameter_3gpp_nor_flags_bit7,
4714 { "Homogeneous Support of IMS Voice Over PS Sessions", "diameter.3gpp.nor_flags_bit7",
4715 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000080,
4716 NULL, HFILL }
4718 { &hf_diameter_3gpp_nor_flags_bit8,
4719 { "S6a/S6d-Indicator", "diameter.3gpp.nor_flags_bit8",
4720 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000100,
4721 NULL, HFILL }
4723 { &hf_diameter_3gpp_nor_flags_bit9,
4724 { "Removal of MME Registration for SMS", "diameter.3gpp.nor_flags_bit9",
4725 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000200,
4726 NULL, HFILL }
4728 { &hf_diameter_3gpp_nor_flags_spare_bits,
4729 { "Spare", "diameter.3gpp.nor_flags_spare",
4730 FT_UINT32, BASE_HEX, NULL, 0xFFFFFC00,
4731 NULL, HFILL }
4733 { &hf_diameter_3gpp_idr_flags,
4734 { "IDR Flags", "diameter.3gpp.idr_flags",
4735 FT_UINT32, BASE_HEX, NULL, 0x0,
4736 NULL, HFILL }
4738 { &hf_diameter_3gpp_idr_flags_bit0,
4739 { "UE Reachability Request", "diameter.3gpp.idr_flags_bit0",
4740 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
4741 NULL, HFILL }
4743 { &hf_diameter_3gpp_idr_flags_bit1,
4744 { "T-ADS Data Request", "diameter.3gpp.idr_flags_bit1",
4745 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
4746 NULL, HFILL }
4748 { &hf_diameter_3gpp_idr_flags_bit2,
4749 { "EPS User State Request", "diameter.3gpp.idr_flags_bit2",
4750 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000004,
4751 NULL, HFILL }
4753 { &hf_diameter_3gpp_idr_flags_bit3,
4754 { "EPS Location Information Request", "diameter.3gpp.idr_flags_bit3",
4755 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000008,
4756 NULL, HFILL }
4758 { &hf_diameter_3gpp_idr_flags_bit4,
4759 { "Current Location Request", "diameter.3gpp.idr_flags_bit4",
4760 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000010,
4761 NULL, HFILL }
4763 { &hf_diameter_3gpp_idr_flags_bit5,
4764 { "Local Time Zone Request", "diameter.3gpp.idr_flags_bit5",
4765 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000020,
4766 NULL, HFILL }
4768 { &hf_diameter_3gpp_idr_flags_bit6,
4769 { "Remove SMS Registration", "diameter.3gpp.idr_flags_bit6",
4770 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000040,
4771 NULL, HFILL }
4773 { &hf_diameter_3gpp_idr_flags_bit7,
4774 { "RAT-Type Requested", "diameter.3gpp.idr_flags_bit7",
4775 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000080,
4776 NULL, HFILL }
4778 { &hf_diameter_3gpp_idr_flags_bit8,
4779 { "P-CSCF Restoration Request", "diameter.3gpp.idr_flags_bit8",
4780 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000100,
4781 NULL, HFILL }
4783 { &hf_diameter_3gpp_idr_flags_spare_bits,
4784 { "Spare", "diameter.3gpp.idr_flags_spare",
4785 FT_UINT32, BASE_HEX, NULL, 0xFFFFFE00,
4786 NULL, HFILL }
4788 { &hf_diameter_3gpp_ppr_flags,
4789 { "PPR Flags", "diameter.3gpp.ppr_flags",
4790 FT_UINT32, BASE_HEX, NULL, 0x0,
4791 NULL, HFILL }
4793 { &hf_diameter_3gpp_ppr_flags_bit0,
4794 { "Reset-Indication", "diameter.3gpp.ppr_flags_bit0",
4795 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
4796 NULL, HFILL }
4798 { &hf_diameter_3gpp_ppr_flags_bit1,
4799 { "Access-Network-Info-Request", "diameter.3gpp.ppr_flags_bit1",
4800 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
4801 NULL, HFILL }
4803 { &hf_diameter_3gpp_ppr_flags_bit2,
4804 { "UE-Local-Time-Zone-Request", "diameter.3gpp.ppr_flags_bit2",
4805 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000004,
4806 NULL, HFILL }
4808 { &hf_diameter_3gpp_ppr_flags_bit3,
4809 { "P-CSCF Restoration Request", "diameter.3gpp.ppr_flags_bit3",
4810 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000008,
4811 NULL, HFILL }
4813 { &hf_diameter_3gpp_ppr_flags_spare_bits,
4814 { "Spare", "diameter.3gpp.ppr_flags_spare",
4815 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFF0,
4816 NULL, HFILL }
4818 { &hf_diameter_3gpp_aaa_fail_flags,
4819 { "AAA Failure Indication", "diameter.3gpp.aaa_fail_flags",
4820 FT_UINT32, BASE_HEX, NULL, 0x0,
4821 NULL, HFILL }
4823 { &hf_diameter_3gpp_aaa_fail_flags_bit0,
4824 { "AAA Failure", "diameter.3gpp.aaa_fail_flags_bit0",
4825 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
4826 NULL, HFILL }
4828 { &hf_diameter_3gpp_aaa_fail_flags_spare_bits,
4829 { "Spare", "diameter.3gpp.aaa_fail_flags_spare",
4830 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFE,
4831 NULL, HFILL }
4833 { &hf_diameter_3gpp_der_flags,
4834 { "DER Flags", "diameter.3gpp.der_flags",
4835 FT_UINT32, BASE_HEX, NULL, 0x0,
4836 NULL, HFILL }
4838 { &hf_diameter_3gpp_der_flags_bit0,
4839 { "NSWO-Capability-Indication", "diameter.3gpp.der_flags_bit0",
4840 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
4841 NULL, HFILL }
4843 { &hf_diameter_3gpp_der_flags_bit1,
4844 { "TWAN-S2a-Connectivity-Indicator", "diameter.3gpp.der_flags_bit1",
4845 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
4846 NULL, HFILL }
4848 { &hf_diameter_3gpp_der_flags_spare_bits,
4849 { "Spare", "diameter.3gpp.der_flags_spare",
4850 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFC,
4851 NULL, HFILL }
4853 { &hf_diameter_3gpp_dea_flags,
4854 { "DEA Flags", "diameter.3gpp.dea_flags",
4855 FT_UINT32, BASE_HEX, NULL, 0x0,
4856 NULL, HFILL }
4858 { &hf_diameter_3gpp_dea_flags_bit0,
4859 { "NSWO-Authorization", "diameter.3gpp.dea_flags_bit0",
4860 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
4861 NULL, HFILL }
4863 { &hf_diameter_3gpp_dea_flags_bit1,
4864 { "TWAN-S2a-Connectivity-Indicator", "diameter.3gpp.dea_flags_bit1",
4865 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
4866 NULL, HFILL }
4868 { &hf_diameter_3gpp_dea_flags_spare_bits,
4869 { "Spare", "diameter.3gpp.dea_flags_spare",
4870 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFC,
4871 NULL, HFILL }
4873 { &hf_diameter_3gpp_rar_flags,
4874 { "RAR Flags", "diameter.3gpp.rar_flags",
4875 FT_UINT32, BASE_HEX, NULL, 0x0,
4876 NULL, HFILL }
4878 { &hf_diameter_3gpp_rar_flags_bit0,
4879 { "Trust-Relationship-Update-indication", "diameter.3gpp.rar_flags_bit0",
4880 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
4881 NULL, HFILL }
4883 { &hf_diameter_3gpp_rar_flags_bit1,
4884 { "P-CSCF Restoration Request", "diameter.3gpp.rar_flags_bit1",
4885 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
4886 NULL, HFILL }
4888 { &hf_diameter_3gpp_rar_flags_spare_bits,
4889 { "Spare", "diameter.3gpp.rar_flags_spare",
4890 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFC,
4891 NULL, HFILL }
4893 { &hf_diameter_3gpp_der_s6b_flags,
4894 { "RAR Flags", "diameter.3gpp.sb6_flags",
4895 FT_UINT32, BASE_HEX, NULL, 0x0,
4896 NULL, HFILL }
4898 { &hf_diameter_3gpp_der_s6b_flags_bit0,
4899 { "Initial-Attach-Indicator", "diameter.3gpp.sb6_flags_bit0",
4900 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
4901 NULL, HFILL }
4903 { &hf_diameter_3gpp_der_s6b_flags_spare_bits,
4904 { "Spare", "diameter.3gpp.sb6_flags_spare",
4905 FT_UINT32, BASE_HEX, NULL, 0x0,
4906 NULL, HFILL }
4908 { &hf_diameter_3gpp_ipv6addr,
4909 { "IPv6 Address", "diameter.3gpp.ipv6addr",
4910 FT_IPv6, BASE_NONE, NULL, 0x0,
4911 NULL, HFILL }
4913 { &hf_diameter_3gpp_mbms_abs_time_ofmbms_data_tfer,
4914 { "Absolute Time of MBMS Data Transfer", "diameter.3gpp.mbms_abs_time_ofmbms_data_tfer",
4915 FT_ABSOLUTE_TIME, ABSOLUTE_TIME_NTP_UTC, NULL, 0x0,
4916 NULL, HFILL }
4918 { &hf_diameter_3gpp_udp_port ,
4919 { "UDP Port", "diameter.3gpp.udp_port",
4920 FT_UINT8, BASE_DEC, NULL, 0x0,
4921 NULL, HFILL }
4923 { &hf_diameter_3gpp_codec_data_dir,
4924 { "Direction", "diameter.3gpp.codec_data.direction",
4925 FT_STRING, BASE_NONE, NULL, 0x0,
4926 NULL, HFILL }
4928 { &hf_diameter_3gpp_codec_sdp_type,
4929 { "SDP Type", "diameter.3gpp.codec_data.sdp_type",
4930 FT_STRING, BASE_NONE, NULL, 0x0,
4931 NULL, HFILL }
4933 { &hf_diameter_3gpp_af_requested_data_flags,
4934 { "AF-Requested-Data Flags", "diameter.3gpp.af_requested_data_flags",
4935 FT_UINT32, BASE_HEX, NULL, 0x0,
4936 NULL, HFILL }
4938 { &hf_diameter_3gpp_af_requested_data_flags_bit0,
4939 { "EPC-level identities", "diameter.3gpp.af_requested_data_flags.bit0",
4940 FT_BOOLEAN, 32, TFS(&tfs_required_not_required), 0x00000001,
4941 NULL, HFILL }
4943 { &hf_diameter_3gpp_mbms_bearer_event,
4944 { "MBMS-Bearer-Event", "diameter.3gpp.mbms_bearer_event",
4945 FT_UINT32, BASE_HEX, NULL, 0x0,
4946 NULL, HFILL }
4948 { &hf_diameter_3gpp_mbms_bearer_event_bit0,
4949 { "Bearer Terminated", "diameter.3gpp.mbms_bearer_event_bit0",
4950 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
4951 NULL, HFILL }
4953 { &hf_diameter_3gpp_mbms_bearer_event_bit1,
4954 { "Bearer Activated", "diameter.3gpp.mbms_bearer_event_bit1",
4955 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
4956 NULL, HFILL }
4958 { &hf_diameter_3gpp_mbms_bearer_event_bit2,
4959 { "Userplane Event", "diameter.3gpp.mbms_bearer_event_bit2",
4960 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000004,
4961 NULL, HFILL }
4963 { &hf_diameter_3gpp_mbms_bearer_event_spare_bits,
4964 { "Spare", "diameter.3gpp.mbms_bearer_event_spare",
4965 FT_UINT32, BASE_HEX, NULL, 0xfffffff8,
4966 NULL, HFILL }
4968 { &hf_diameter_3gpp_mbms_bearer_result,
4969 { "MBMS-Bearer-Result", "diameter.3gpp.mbms_bearer_result",
4970 FT_UINT32, BASE_HEX, NULL, 0x0,
4971 NULL, HFILL }
4973 { &hf_diameter_3gpp_mbms_bearer_result_bit0,
4974 { "Success", "diameter.3gpp.mbms_bearer_result_bit0",
4975 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
4976 NULL, HFILL }
4978 { &hf_diameter_3gpp_mbms_bearer_result_bit1,
4979 { "Authorization rejected", "diameter.3gpp.mbms_bearer_result_bit1",
4980 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
4981 NULL, HFILL }
4983 { &hf_diameter_3gpp_mbms_bearer_result_bit2,
4984 { "Resources exceeded", "diameter.3gpp.mbms_bearer_result_bit2",
4985 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000004,
4986 NULL, HFILL }
4988 { &hf_diameter_3gpp_mbms_bearer_result_bit3,
4989 { "Unknown TMGI", "diameter.3gpp.mbms_bearer_result_bit3",
4990 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000008,
4991 NULL, HFILL }
4993 { &hf_diameter_3gpp_mbms_bearer_result_bit4,
4994 { "TMGI not in use", "diameter.3gpp.mbms_bearer_result_bit4",
4995 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000010,
4996 NULL, HFILL }
4998 { &hf_diameter_3gpp_mbms_bearer_result_bit5,
4999 { "Overlapping MBMS-Service-Area", "diameter.3gpp.mbms_bearer_result_bit5",
5000 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000020,
5001 NULL, HFILL }
5003 { &hf_diameter_3gpp_mbms_bearer_result_bit6,
5004 { "Unknown Flow Identifier", "diameter.3gpp.mbms_bearer_result_bit6",
5005 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000040,
5006 NULL, HFILL }
5008 { &hf_diameter_3gpp_mbms_bearer_result_bit7,
5009 { "QoS Authorization Rejected", "diameter.3gpp.mbms_bearer_result_bit7",
5010 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000080,
5011 NULL, HFILL }
5013 { &hf_diameter_3gpp_mbms_bearer_result_bit8,
5014 { "Unknown MBMS-Service-Area", "diameter.3gpp.mbms_bearer_result_bit8",
5015 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000100,
5016 NULL, HFILL }
5018 { &hf_diameter_3gpp_mbms_bearer_result_bit9,
5019 { "MBMS-Service-Area Authorization Rejected", "diameter.3gpp.mbms_bearer_result_bit9",
5020 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000200,
5021 NULL, HFILL }
5023 { &hf_diameter_3gpp_mbms_bearer_result_bit10,
5024 { "MBMS-Start-Time", "diameter.3gpp.mbms_bearer_result_bit10",
5025 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000400,
5026 NULL, HFILL }
5028 { &hf_diameter_3gpp_mbms_bearer_result_bit11,
5029 { "Invalid AVP combination", "diameter.3gpp.mbms_bearer_result_bit11",
5030 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000800,
5031 NULL, HFILL }
5033 { &hf_diameter_3gpp_mbms_bearer_result_spare_bits,
5034 { "Spare", "diameter.3gpp.mbms_bearer_result_spare",
5035 FT_UINT32, BASE_HEX, NULL, 0xFFFFF000,
5036 NULL, HFILL }
5038 { &hf_diameter_3gpp_tmgi_allocation_result,
5039 { "TMGI-Allocation-Result", "diameter.3gpp.tmgi_allocation_result",
5040 FT_UINT32, BASE_HEX, NULL, 0x0,
5041 NULL, HFILL }
5043 { &hf_diameter_3gpp_tmgi_allocation_result_bit0,
5044 { "Success", "diameter.3gpp.tmgi_allocation_result_bit0",
5045 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
5046 NULL, HFILL }
5048 { &hf_diameter_3gpp_tmgi_allocation_result_bit1,
5049 { "Authorization rejected", "diameter.3gpp.tmgi_allocation_result_bit1",
5050 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
5051 NULL, HFILL }
5053 { &hf_diameter_3gpp_tmgi_allocation_result_bit2,
5054 { "Resources exceeded", "diameter.3gpp.tmgi_allocation_result_bit2",
5055 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000004,
5056 NULL, HFILL }
5058 { &hf_diameter_3gpp_tmgi_allocation_result_bit3,
5059 { "Unknown TMGI", "diameter.3gpp.tmgi_allocation_result_bit3",
5060 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000008,
5061 NULL, HFILL }
5063 { &hf_diameter_3gpp_tmgi_allocation_result_bit4,
5064 { "Too many TMGIs requested", "diameter.3gpp.tmgi_allocation_result_bit4",
5065 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000010,
5066 NULL, HFILL }
5068 { &hf_diameter_3gpp_tmgi_allocation_result_spare_bits,
5069 { "Spare", "diameter.3gpp.tmgi_allocation_result_spare",
5070 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFE0,
5071 NULL, HFILL }
5073 { &hf_diameter_3gpp_tmgi_deallocation_result,
5074 { "TMGI-Deallocation-Result", "diameter.3gpp.tmgi_deallocation_result",
5075 FT_UINT32, BASE_HEX, NULL, 0x0,
5076 NULL, HFILL }
5078 { &hf_diameter_3gpp_tmgi_deallocation_result_bit0,
5079 { "Success", "diameter.3gpp.tmgi_deallocation_result_bit0",
5080 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
5081 NULL, HFILL }
5083 { &hf_diameter_3gpp_tmgi_deallocation_result_bit1,
5084 { "Authorization rejected", "diameter.3gpp.tmgi_deallocation_result_bit1",
5085 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
5086 NULL, HFILL }
5088 { &hf_diameter_3gpp_tmgi_deallocation_result_bit2,
5089 { "Unknown TMGI", "diameter.3gpp.tmgi_deallocation_result_bit2",
5090 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000004,
5091 NULL, HFILL }
5093 { &hf_diameter_3gpp_tmgi_deallocation_result_spare_bits,
5094 { "Spare", "diameter.3gpp.tmgi_deallocation_result_spare",
5095 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFF8,
5096 NULL, HFILL }
5098 { &hf_diameter_3gpp_sar_flags,
5099 { "SAR Flags", "diameter.3gpp.sar_flags",
5100 FT_UINT32, BASE_HEX, NULL, 0x0,
5101 NULL, HFILL }
5104 { &hf_diameter_3gpp_sar_flags_flags_bit0,
5105 { "P-CSCF Restoration Indication", "diameter.3gpp.sar_flags_flags_bit0",
5106 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
5107 NULL, HFILL }
5109 { &hf_diameter_3gpp_feature_list1_rx_flags_bit0,
5110 { "Rel8", "diameter.3gpp.feature_list1_rx_flags_bit0",
5111 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000001,
5112 NULL, HFILL }
5114 { &hf_diameter_3gpp_feature_list1_rx_flags_bit1,
5115 { "Rel9", "diameter.3gpp.feature_list1_rx_flags_bit1",
5116 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000002,
5117 NULL, HFILL }
5119 { &hf_diameter_3gpp_feature_list1_rx_flags_bit2,
5120 { "ProvAFsignalFlow", "diameter.3gpp.feature_list1_rx_flags_bit2",
5121 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000004,
5122 NULL, HFILL }
5124 { &hf_diameter_3gpp_feature_list1_rx_flags_bit3,
5125 { "SponsoredConnectivity", "diameter.3gpp.feature_list1_rx_flags_bit3",
5126 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000008,
5127 NULL, HFILL }
5129 { &hf_diameter_3gpp_feature_list1_rx_flags_bit4,
5130 { "Rel10", "diameter.3gpp.feature_list1_rx_flags_bit4",
5131 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000010,
5132 NULL, HFILL }
5134 { &hf_diameter_3gpp_feature_list1_rx_flags_bit5,
5135 { "NetLoc", "diameter.3gpp.feature_list1_rx_flags_bit5",
5136 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000020,
5137 NULL, HFILL }
5139 { &hf_diameter_3gpp_feature_list1_rx_flags_bit6,
5140 { "ExtendedFilter", "diameter.3gpp.feature_list1_rx_flags_bit6",
5141 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000040,
5142 NULL, HFILL }
5144 { &hf_diameter_3gpp_feature_list1_rx_flags_bit7,
5145 { "SCTimeBasedUM", "diameter.3gpp.feature_list1_rx_flags_bit7",
5146 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000080,
5147 NULL, HFILL }
5149 { &hf_diameter_3gpp_feature_list1_rx_flags_bit8,
5150 { "Netloc-Trusted-WLAN", "diameter.3gpp.feature_list1_rx_flags_bit8",
5151 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000100,
5152 NULL, HFILL }
5154 { &hf_diameter_3gpp_feature_list1_rx_flags_bit9,
5155 { "RAN-NAS-Cause", "diameter.3gpp.feature_list1_rx_flags_bit9",
5156 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000200,
5157 NULL, HFILL }
5160 { &hf_diameter_3gpp_feature_list1_rx_flags_bit10,
5161 { "GroupComService", "diameter.3gpp.feature_list1_rx_flags_bit10",
5162 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000400,
5163 NULL, HFILL }
5165 { &hf_diameter_3gpp_feature_list1_rx_flags_bit11,
5166 { "ResShare", "diameter.3gpp.feature_list1_rx_flags_bit11",
5167 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000800,
5168 NULL, HFILL }
5170 { &hf_diameter_3gpp_feature_list1_rx_flags_bit12,
5171 { "DeferredService", "diameter.3gpp.feature_list1_rx_flags_bit12",
5172 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00001000,
5173 NULL, HFILL }
5175 { &hf_diameter_3gpp_feature_list1_rx_flags_bit13,
5176 { "DSCP", "diameter.3gpp.feature_list1_rx_flags_bit13",
5177 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00002000,
5178 NULL, HFILL }
5180 { &hf_diameter_3gpp_feature_list1_rx_flags_bit14,
5181 { "SponsorChange", "diameter.3gpp.feature_list1_rx_flags_bit14",
5182 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00004000,
5183 NULL, HFILL }
5185 { &hf_diameter_3gpp_feature_list1_rx_flags_bit15,
5186 { "E2EQOSMTSI", "diameter.3gpp.feature_list1_rx_flags_bit15",
5187 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00008000,
5188 NULL, HFILL }
5190 { &hf_diameter_3gpp_feature_list1_rx_flags_bit16,
5191 { "NetLoc-Untrusted-WLAN", "diameter.3gpp.feature_list1_rx_flags_bit16",
5192 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00010000,
5193 NULL, HFILL }
5195 { &hf_diameter_3gpp_feature_list1_rx_flags_bit17,
5196 { "MCPTT", "diameter.3gpp.feature_list1_rx_flags_bit17",
5197 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00020000,
5198 NULL, HFILL }
5200 { &hf_diameter_3gpp_feature_list1_rx_flags_bit18,
5201 { "PrioritySharing", "diameter.3gpp.feature_list1_rx_flags_bit18",
5202 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00040000,
5203 NULL, HFILL }
5205 { &hf_diameter_3gpp_feature_list1_rx_flags_bit19,
5206 { "PLMNInfo", "diameter.3gpp.feature_list1_rx_flags_bit19",
5207 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00080000,
5208 NULL, HFILL }
5210 { &hf_diameter_3gpp_feature_list1_rx_flags_bit20,
5211 { "MediaComponentVersioning", "diameter.3gpp.feature_list1_rx_flags_bit20",
5212 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00100000,
5213 NULL, HFILL }
5215 { &hf_diameter_3gpp_feature_list1_rx_flags_bit21,
5216 { "MCPTT-Preemption", "diameter.3gpp.feature_list1_rx_flags_bit21",
5217 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00200000,
5218 NULL, HFILL }
5220 { &hf_diameter_3gpp_feature_list1_rx_flags_bit22,
5221 { "MCVideo", "diameter.3gpp.feature_list1_rx_flags_bit22",
5222 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00400000,
5223 NULL, HFILL }
5225 { &hf_diameter_3gpp_feature_list1_rx_flags_spare_bits,
5226 { "Spare", "diameter.3gpp.feature_list1_rx_flags_spare",
5227 FT_UINT32, BASE_HEX, NULL, 0xFF800000,
5228 NULL, HFILL }
5230 { &hf_diameter_3gpp_feature_list2_rx_flags_bit0,
5231 { "PCSCF-Restoration-Enhancement", "diameter.3gpp.feature_list2_rx_flags_bit0",
5232 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000001,
5233 NULL, HFILL }
5235 { &hf_diameter_3gpp_feature_list2_rx_flags_bit1,
5236 { "Extended-Max-Requested-BW-NR", "diameter.3gpp.feature_list2_rx_flags_bit1",
5237 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000002,
5238 NULL, HFILL }
5240 { &hf_diameter_3gpp_feature_list2_rx_flags_bit2,
5241 { "Extended-Min-Requested-BW-NR", "diameter.3gpp.feature_list2_rx_flags_bit2",
5242 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000004,
5243 NULL, HFILL }
5245 { &hf_diameter_3gpp_feature_list2_rx_flags_bit3,
5246 { "Extended-BW-E2EQOSMTSI-NR", "diameter.3gpp.feature_list2_rx_flags_bit3",
5247 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000008,
5248 NULL, HFILL }
5250 { &hf_diameter_3gpp_feature_list2_rx_flags_bit4,
5251 { "VBC", "diameter.3gpp.feature_list2_rx_flags_bit4",
5252 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000010,
5253 NULL, HFILL }
5255 { &hf_diameter_3gpp_feature_list2_rx_flags_bit5,
5256 { "CHEM", "diameter.3gpp.feature_list2_rx_flags_bit5",
5257 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000020,
5258 NULL, HFILL }
5260 { &hf_diameter_3gpp_feature_list2_rx_flags_bit6,
5261 { "VBCLTE", "diameter.3gpp.feature_list2_rx_flags_bit6",
5262 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000040,
5263 NULL, HFILL }
5265 { &hf_diameter_3gpp_feature_list2_rx_flags_bit7,
5266 { "FLUS", "diameter.3gpp.feature_list2_rx_flags_bit7",
5267 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000080,
5268 NULL, HFILL }
5270 { &hf_diameter_3gpp_feature_list2_rx_flags_bit8,
5271 { "EPSFallbackReport", "diameter.3gpp.feature_list2_rx_flags_bit8",
5272 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000100,
5273 NULL, HFILL }
5275 { &hf_diameter_3gpp_feature_list2_rx_flags_bit9,
5276 { "ATSSS", "diameter.3gpp.feature_list2_rx_flags_bit9",
5277 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000200,
5278 NULL, HFILL }
5280 { &hf_diameter_3gpp_feature_list2_rx_flags_bit10,
5281 { "QoSHint", "diameter.3gpp.feature_list2_rx_flags_bit10",
5282 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000400,
5283 NULL, HFILL }
5285 { &hf_diameter_3gpp_feature_list2_rx_flags_bit11,
5286 { "ReallocationOfCredit", "diameter.3gpp.feature_list2_rx_flags_bit11",
5287 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000800,
5288 NULL, HFILL }
5290 { &hf_diameter_3gpp_feature_list2_rx_flags_bit12,
5291 { "Netloc-Trusted-N3GA", "diameter.3gpp.feature_list2_rx_flags_bit12",
5292 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00001000,
5293 NULL, HFILL }
5295 { &hf_diameter_3gpp_feature_list2_rx_flags_bit13,
5296 { "NetLoc-Wireline", "diameter.3gpp.feature_list2_rx_flags_bit13",
5297 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00002000,
5298 NULL, HFILL }
5300 { &hf_diameter_3gpp_feature_list2_rx_flags_bit14,
5301 { "MPSforDTS", "diameter.3gpp.feature_list2_rx_flags_bit14",
5302 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00004000,
5303 NULL, HFILL }
5305 { &hf_diameter_3gpp_feature_list2_rx_flags_bit15,
5306 { "User-Equipment-Info-Extension", "diameter.3gpp.feature_list2_rx_flags_bit15",
5307 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00008000,
5308 NULL, HFILL }
5310 { &hf_diameter_3gpp_feature_list2_rx_flags_spare_bits,
5311 { "Spare", "diameter.3gpp.feature_list2_rx_flags_spare",
5312 FT_UINT32, BASE_HEX, NULL, 0xFFFF0000,
5313 NULL, HFILL }
5315 { &hf_diameter_3gpp_feature_list_sd_flags,
5316 { "SD Feature-List Flags", "diameter.3gpp.sd_feature_list_flags",
5317 FT_UINT32, BASE_HEX, NULL, 0x0,
5318 NULL, HFILL }
5320 { &hf_diameter_3gpp_feature_list_sd_flags_bit0,
5321 { "UMCH", "diameter.3gpp.feature_list_sd_flags_bit0",
5322 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000001,
5323 NULL, HFILL}
5325 { &hf_diameter_3gpp_feature_list_sd_flags_bit1,
5326 { "Trusted-WLAN", "diameter.3gpp.feature_list_sd_flags_bit1",
5327 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000002,
5328 NULL, HFILL}
5330 { &hf_diameter_3gpp_feature_list_sd_flags_bit2,
5331 { "TimeBasedUM", "diameter.3gpp.feature_list_sd_flags_bit2",
5332 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000004,
5333 NULL, HFILL}
5335 { &hf_diameter_3gpp_feature_list_sd_flags_bit3,
5336 { "PendingTransaction", "diameter.3gpp.feature_list_sd_flags_bit3",
5337 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000008,
5338 NULL, HFILL}
5340 { &hf_diameter_3gpp_feature_list_sd_flags_bit4,
5341 { "ABC", "diameter.3gpp.feature_list_sd_flags_bit4",
5342 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000010,
5343 NULL, HFILL}
5345 { &hf_diameter_3gpp_feature_list_sd_flags_bit5,
5346 { "CNO-ULI", "diameter.3gpp.feature_list_sd_flags_bit5",
5347 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000020,
5348 NULL, HFILL}
5350 { &hf_diameter_3gpp_feature_list_sd_flags_bit6,
5351 { "ExUsage", "diameter.3gpp.feature_list_sd_flags_bit6",
5352 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000040,
5353 NULL, HFILL}
5355 { &hf_diameter_3gpp_feature_list_sd_flags_bit7,
5356 { "DLDSCPMarking", "diameter.3gpp.feature_list_sd_flags_bit7",
5357 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000080,
5358 NULL, HFILL}
5360 { &hf_diameter_3gpp_feature_list_sd_flags_bit8,
5361 { "TSC", "diameter.3gpp.feature_list_sd_flags_bit8",
5362 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000100,
5363 NULL, HFILL}
5365 { &hf_diameter_3gpp_feature_list_sd_flags_bit9,
5366 { "ENB-Change", "diameter.3gpp.feature_list_sd_flags_bit9",
5367 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000200,
5368 NULL, HFILL}
5370 { &hf_diameter_3gpp_feature_list_sd_flags_bit10,
5371 { "SponsoredConnectivity-Sd", "diameter.3gpp.feature_list_sd_flags_bit10",
5372 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000400,
5373 NULL, HFILL}
5375 { &hf_diameter_3gpp_feature_list_sd_flags_spare_bits,
5376 { "Spare", "diameter.3gpp.feature_list_sd_flags_spare",
5377 FT_UINT32, BASE_HEX, NULL, 0xFFFFF800,
5378 NULL, HFILL}
5380 { &hf_diameter_3gpp_ran_nas_protocol_type,
5381 { "Protocol Type", "diameter.3gpp.ran_nas.protocol_type",
5382 FT_UINT8, BASE_DEC, VALS(ran_nas_prot_type_vals), 0xF0,
5383 NULL, HFILL}
5385 { &hf_diameter_3gpp_ran_nas_cause_type,
5386 { "S1AP Cause Type", "diameter.3gpp.ran_nas.s1ap_type",
5387 FT_UINT8, BASE_DEC, VALS(s1ap_Cause_vals), 0x0F,
5388 NULL, HFILL}
5390 { &hf_diameter_3gpp_ran_nas_cause_value,
5391 { "Cause Value", "diameter.3gpp.ran_nas.cause_value",
5392 FT_UINT32, BASE_DEC, NULL, 0x0,
5393 NULL, HFILL}
5395 { &hf_diameter_3gpp_s1ap_radio_network,
5396 { "S1AP Radio Network Cause Value", "diameter.3gpp.ran_nas.radio_cause",
5397 FT_UINT8, BASE_DEC, VALS(s1ap_CauseRadioNetwork_vals), 0x0,
5398 NULL, HFILL}
5400 { &hf_diameter_3gpp_s1ap_transport,
5401 { "S1AP Transport Cause Value", "diameter.3gpp.ran_nas.transport_cause",
5402 FT_UINT8, BASE_DEC, VALS(s1ap_CauseTransport_vals), 0x0,
5403 NULL, HFILL}
5405 { &hf_diameter_3gpp_s1ap_nas,
5406 { "S1AP NAS Cause Value", "diameter.3gpp.ran_nas.nas_cause",
5407 FT_UINT8, BASE_DEC, VALS(s1ap_CauseNas_vals), 0x0,
5408 NULL, HFILL}
5410 { &hf_diameter_3gpp_s1ap_protocol,
5411 { "S1AP Protocol Cause Value", "diameter.3gpp.ran_nas.protocol_cause",
5412 FT_UINT8, BASE_DEC, VALS(s1ap_CauseProtocol_vals), 0x0,
5413 NULL, HFILL}
5415 { &hf_diameter_3gpp_s1ap_misc,
5416 { "S1AP Misc. Cause Value", "diameter.3gpp.ran_nas.misc_cause",
5417 FT_UINT8, BASE_DEC, VALS(s1ap_CauseMisc_vals), 0x0,
5418 NULL, HFILL}
5420 { &hf_diameter_3gpp_emm_cause,
5421 { "EMM Cause Value", "diameter.3gpp.ran_nas.emm_cause",
5422 FT_UINT8, BASE_DEC, VALS(nas_eps_emm_cause_values), 0x0,
5423 NULL, HFILL}
5425 { &hf_diameter_3gpp_esm_cause,
5426 { "ESM Cause Value", "diameter.3gpp.ran_nas.esm_cause",
5427 FT_UINT8, BASE_DEC, VALS(nas_eps_esm_cause_vals), 0x0,
5428 NULL, HFILL}
5430 { &hf_diameter_3gpp_diameter_cause,
5431 { "Diameter Cause Value", "diameter.3gpp.ran_nas.diameter_cause",
5432 FT_UINT16, BASE_DEC, VALS(diameter_3gpp_termination_cause_vals), 0x0,
5433 NULL, HFILL}
5435 { &hf_diameter_3gpp_ikev2_cause,
5436 { "IKEv2 Cause Value", "diameter.3gpp.ran_nas.ikev2_cause",
5437 FT_UINT16, BASE_DEC, VALS(diameter_3gpp_IKEv2_error_type_vals), 0x0,
5438 NULL, HFILL}
5440 { &hf_diameter_3gpp_emergency_services_flags,
5441 { "Emergency-Services Flags", "diameter.3gpp.emergency_ind_flags",
5442 FT_UINT32, BASE_HEX, NULL, 0x0,
5443 NULL, HFILL }
5445 { &hf_diameter_3gpp_emergency_services_flags_bit0,
5446 { "Emergency-Indication", "diameter.3gpp.emergency_ind_flags_bit0",
5447 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
5448 NULL, HFILL }
5450 { &hf_diameter_3gpp_emergency_services_flags_spare_bits,
5451 { "Spare", "diameter.3gpp.emergency_ind_flags_spare",
5452 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFE,
5453 NULL, HFILL }
5455 { &hf_diameter_3gpp_pur_flags,
5456 { "PUR Flags", "diameter.3gpp.pur_flags",
5457 FT_UINT32, BASE_HEX, NULL, 0x0,
5458 NULL, HFILL }
5460 { &hf_diameter_3gpp_pur_flags_spare_bits,
5461 { "Spare", "diameter.3gpp.pur_flags_spare",
5462 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFC,
5463 NULL, HFILL }
5465 { &hf_diameter_3gpp_pur_flags_bit1,
5466 { "UE Purged in SGSN", "diameter.3gpp.pur_flags_bit1",
5467 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
5468 NULL, HFILL }
5470 { &hf_diameter_3gpp_pur_flags_bit0,
5471 { "UE Purged in MME", "diameter.3gpp.pur_flags_bit0",
5472 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
5473 NULL, HFILL }
5475 { &hf_diameter_3gpp_clr_flags,
5476 { "CLR Flags", "diameter.3gpp.clr_flags",
5477 FT_UINT32, BASE_HEX, NULL, 0x0,
5478 NULL, HFILL }
5480 { &hf_diameter_3gpp_clr_flags_spare_bits,
5481 { "Spare", "diameter.3gpp.clr_flags_spare",
5482 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFC,
5483 NULL, HFILL }
5485 { &hf_diameter_3gpp_clr_flags_bit1,
5486 { "Reattach-Required", "diameter.3gpp.clr_flags_bit1",
5487 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
5488 NULL, HFILL }
5490 { &hf_diameter_3gpp_clr_flags_bit0,
5491 { "S6a/S6d-Indicator", "diameter.3gpp.clr_flags_bit0",
5492 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
5493 NULL, HFILL }
5495 { &hf_diameter_3gpp_uvr_flags,
5496 { "UVR Flags", "diameter.3gpp.uvr_flags",
5497 FT_UINT32, BASE_HEX, NULL, 0x0,
5498 NULL, HFILL }
5500 { &hf_diameter_3gpp_uvr_flags_spare_bits,
5501 { "Spare", "diameter.3gpp.uvr_flags_spare",
5502 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFE,
5503 NULL, HFILL }
5505 { &hf_diameter_3gpp_uvr_flags_bit0,
5506 { "Skip Subscriber Data", "diameter.3gpp.uvr_flags_bit0",
5507 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
5508 NULL, HFILL }
5510 { &hf_diameter_3gpp_uva_flags,
5511 { "UVA Flags", "diameter.3gpp.uva_flags",
5512 FT_UINT32, BASE_HEX, NULL, 0x0,
5513 NULL, HFILL }
5515 { &hf_diameter_3gpp_uva_flags_spare_bits,
5516 { "Spare", "diameter.3gpp.uva_flags_spare",
5517 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFE,
5518 NULL, HFILL }
5520 { &hf_diameter_3gpp_uva_flags_bit0,
5521 { "Temporary Empty VPLMN CSG Subscription Data", "diameter.3gpp.uva_flags_bit0",
5522 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
5523 NULL, HFILL }
5525 { &hf_diameter_3gpp_subscription_data_flags,
5526 { "Subscription Data Flags", "diameter.3gpp.subscription_data_flags",
5527 FT_UINT32, BASE_HEX, NULL, 0x0,
5528 NULL, HFILL }
5530 { &hf_diameter_3gpp_subscription_data_flags_spare_bits,
5531 { "Spare", "diameter.3gpp.subscription_data_flags_spare",
5532 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFF0,
5533 NULL, HFILL }
5535 { &hf_diameter_3gpp_subscription_data_flags_bit3,
5536 { "PDN-Connection-Restricted", "diameter.3gpp.subscription_data_flags_bit3",
5537 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000008,
5538 NULL, HFILL }
5540 { &hf_diameter_3gpp_subscription_data_flags_bit2,
5541 { "User Plane Integrity Protection", "diameter.3gpp.subscription_data_flags_bit2",
5542 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000004,
5543 NULL, HFILL }
5545 { &hf_diameter_3gpp_subscription_data_flags_bit1,
5546 { "SMS-In-SGSN-Allowed-Indication", "diameter.3gpp.subscription_data_flags_bit1",
5547 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
5548 NULL, HFILL }
5550 { &hf_diameter_3gpp_subscription_data_flags_bit0,
5551 { "PS-And-SMS-Only-Service-Provision-Indication", "diameter.3gpp.subscription_data_flags_bit0",
5552 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
5553 NULL, HFILL }
5555 { &hf_diameter_3gpp_wlan_offloadability_eutran,
5556 { "WLAN-offloadability-EUTRAN", "diameter.3gpp.wlan_offloadability_eutran",
5557 FT_UINT32, BASE_HEX, NULL, 0x0,
5558 NULL, HFILL }
5560 { &hf_diameter_3gpp_wlan_offloadability_eutran_spare_bits,
5561 { "Spare", "diameter.3gpp.wlan_offloadability_eutran_spare",
5562 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFE,
5563 NULL, HFILL }
5565 { &hf_diameter_3gpp_wlan_offloadability_eutran_bit0,
5566 { "PWLAN offloadability for E-UTRAN", "diameter.3gpp.wlan_offloadability_eutran_bit0",
5567 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
5568 NULL, HFILL }
5570 { &hf_diameter_3gpp_wlan_offloadability_utran,
5571 { "WLAN-offloadability-UTRAN", "diameter.3gpp.wlan_offloadability_utran",
5572 FT_UINT32, BASE_HEX, NULL, 0x0,
5573 NULL, HFILL }
5575 { &hf_diameter_3gpp_wlan_offloadability_utran_spare_bits,
5576 { "Spare", "diameter.3gpp.wlan_offloadability_utran_spare",
5577 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFE,
5578 NULL, HFILL }
5580 { &hf_diameter_3gpp_wlan_offloadability_utran_bit0,
5581 { "PWLAN offloadability for UTRAN", "diameter.3gpp.wlan_offloadability_utran_bit0",
5582 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
5583 NULL, HFILL }
5585 { &hf_diameter_3gpp_air_flags,
5586 { "AIR Flags", "diameter.3gpp.air_flags",
5587 FT_UINT32, BASE_HEX, NULL, 0x0,
5588 NULL, HFILL }
5590 { &hf_diameter_3gpp_air_flags_spare_bits,
5591 { "Spare", "diameter.3gpp.air_flags_spare",
5592 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFE,
5593 NULL, HFILL }
5595 { &hf_diameter_3gpp_air_flags_bit0,
5596 { "Send UE Usage Type", "diameter.3gpp.air_flags_bit0",
5597 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
5598 NULL, HFILL }
5600 { &hf_diameter_3gpp_preferred_data_mode,
5601 { "Preferred Data Mode", "diameter.3gpp.preferred_data_mode",
5602 FT_UINT32, BASE_HEX, NULL, 0x0,
5603 NULL, HFILL }
5605 { &hf_diameter_3gpp_preferred_data_mode_spare_bits,
5606 { "Spare", "diameter.3gpp.preferred_data_mode_spare",
5607 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFC,
5608 NULL, HFILL }
5610 { &hf_diameter_3gpp_preferred_data_mode_bit1,
5611 { "Data over Control Plane Preferred", "diameter.3gpp.preferred_data_mode_bit1",
5612 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
5613 NULL, HFILL }
5615 { &hf_diameter_3gpp_preferred_data_mode_bit0,
5616 { "Data over User Plane Preferred", "diameter.3gpp.preferred_data_mode_bit0",
5617 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
5618 NULL, HFILL }
5620 { &hf_diameter_3gpp_v2x_permission,
5621 { "V2X Permission", "diameter.3gpp.v2x_permission",
5622 FT_UINT32, BASE_HEX, NULL, 0x0,
5623 NULL, HFILL }
5625 { &hf_diameter_3gpp_v2x_permission_spare_bits,
5626 { "Spare", "diameter.3gpp.v2x_permission_spare",
5627 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFC,
5628 NULL, HFILL }
5630 { &hf_diameter_3gpp_v2x_permission_bit1,
5631 { "Allow V2X communication over PC5 as Pedestrian UE", "diameter.3gpp.v2x_permission_bit1",
5632 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
5633 NULL, HFILL }
5635 { &hf_diameter_3gpp_v2x_permission_bit0,
5636 { "Allow V2X communication over PC5 as Vehicle UE", "diameter.3gpp.v2x_permission_bit0",
5637 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
5638 NULL, HFILL }
5640 { &hf_diameter_3gpp_core_network_restrictions,
5641 { "Core Network Restrictions", "diameter.3gpp.core_network_restrictions",
5642 FT_UINT32, BASE_HEX, NULL, 0x0,
5643 NULL, HFILL }
5645 { &hf_diameter_3gpp_core_network_restrictions_spare_bits,
5646 { "Spare", "diameter.3gpp.core_network_restrictions_spare",
5647 FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFC,
5648 NULL, HFILL }
5650 { &hf_diameter_3gpp_core_network_restrictions_bit1,
5651 { "5GC", "diameter.3gpp.core_network_restrictions_bit1",
5652 FT_BOOLEAN, 32, TFS(&tfs_not_allowed_allowed), 0x00000002,
5653 NULL, HFILL }
5655 { &hf_diameter_3gpp_core_network_restrictions_bit0,
5656 { "Reserved", "diameter.3gpp.core_network_restrictions_bit0",
5657 FT_UINT32, BASE_HEX, NULL, 0x00000001,
5658 NULL, HFILL }
5660 { &hf_diameter_3gpp_supported_gad_shapes,
5661 { "Supported-GAD-Shapes", "diameter.3gpp.supported_gad_shapes",
5662 FT_UINT32, BASE_HEX, NULL, 0x0,
5663 NULL, HFILL }
5666 { &hf_diameter_3gpp_highaccuracyellipsoidpointwithaltitudeandscalableuncertaintyellipsoid_bit10,
5667 { "highAccuracyEllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid", "diameter.3gpp.highaccuracyellipsoidpointwithaltitudeandscalableuncertaintyellipsoid_bit10",
5668 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000400,
5669 NULL, HFILL }
5671 { &hf_diameter_3gpp_highaccuracyellipsoidpointwithscalableuncertaintyellipse_bit9,
5672 { "highAccuracyEllipsoidPointWithScalableUncertaintyEllipse", "diameter.3gpp.highaccuracyellipsoidpointwithscalableuncertaintyellipse_bit9",
5673 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000200,
5674 NULL, HFILL }
5676 { &hf_diameter_3gpp_highaccuracyellipsoidpointwithaltitudeanduncertaintyellipsoid_bit8,
5677 { "highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid", "diameter.3gpp.highaccuracyellipsoidpointwithaltitudeanduncertaintyellipsoid_bit8",
5678 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000100,
5679 NULL, HFILL }
5681 { &hf_diameter_3gpp_highaccuracyellipsoidpointwithuncertaintyellipse_bit7,
5682 { "highAccuracyEllipsoidPointWithUncertaintyEllipse", "diameter.3gpp.highaccuracyellipsoidpointwithuncertaintyellipse_bit7",
5683 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000080,
5684 NULL, HFILL }
5686 { &hf_diameter_3gpp_ellipsoidarc_bit6,
5687 { "ellipsoidArc", "diameter.3gpp.ellipsoidarc_bit6",
5688 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000040,
5689 NULL, HFILL }
5691 { &hf_diameter_3gpp_ellipsoidpointwithaltitudeanduncertaintyelipsoid_bit5,
5692 { "ellipsoidPointWithAltitudeAndUncertaintyElipsoid", "diameter.3gpp.ellipsoidpointwithaltitudeanduncertaintyelipsoid_bit5",
5693 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000020,
5694 NULL, HFILL }
5696 { &hf_diameter_3gpp_ellipsoidpointwithaltitude_bit4,
5697 { "ellipsoidPointWithAltitude", "diameter.3gpp.ellipsoidpointwithaltitude_bit4",
5698 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000010,
5699 NULL, HFILL }
5701 { &hf_diameter_3gpp_polygon_bit3,
5702 { "polygon", "diameter.3gpp.polygon_bit3",
5703 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000008,
5704 NULL, HFILL }
5706 { &hf_diameter_3gpp_ellipsoidpointwithuncertaintyellipse_bit2,
5707 { "ellipsoidPointWithUncertaintyEllipse", "diameter.3gpp.ellipsoidpointwithuncertaintyellipse_bit2",
5708 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000004,
5709 NULL, HFILL }
5711 { &hf_diameter_3gpp_ellipsoidpointwithuncertaintycircle_bit1,
5712 { "ellipsoidPointWithUncertaintyCircle", "diameter.3gpp.ellipsoidpointwithuncertaintycircle_bit1",
5713 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000002,
5714 NULL, HFILL }
5716 { &hf_diameter_3gpp_ellipsoidpoint_bit0,
5717 { "ellipsoidPoint", "diameter.3gpp.ellipsoidpoint_bit0",
5718 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000001,
5719 NULL, HFILL }
5722 { &hf_diameter_3gpp_plr_flags,
5723 { "PLR-Flags", "diameter.3gpp.plr_flags",
5724 FT_UINT32, BASE_HEX, NULL, 0x0,
5725 NULL, HFILL }
5727 { &hf_diameter_3gpp_mo_lr_shortcircuit_indicator_bit0,
5728 { "MO-LR-ShortCircuit-Indicator", "diameter.3gpp.mo_lr_shortcircuit_indicator",
5729 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
5730 NULL, HFILL }
5732 { &hf_diameter_3gpp_optimized_lcs_proc_req_bit1,
5733 { "Optimized-LCS-Proc-Req", "diameter.3gpp.optimized_lcs_proc_req",
5734 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
5735 NULL, HFILL }
5737 { &hf_diameter_3gpp_delayed_location_reporting_support_indicator_bit2,
5738 { "Delayed-Location-Reporting-Support-Indicator", "diameter.3gpp.delayed_location_reporting_support_indicator",
5739 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000004,
5740 NULL, HFILL }
5742 { &hf_diameter_3gpp_plr_flags_spare_bits,
5743 { "Spare", "diameter.3gpp.plr_flags_spare_bits",
5744 FT_UINT32, BASE_HEX, NULL, 0xfffffff8,
5745 NULL, HFILL }
5747 { &hf_diameter_3gpp_pla_flags,
5748 { "PLA-Flags", "diameter.3gpp.pla_flags",
5749 FT_UINT32, BASE_HEX, NULL, 0x0,
5750 NULL, HFILL }
5753 { &hf_diameter_3gpp_deferred_mt_lr_response_indicator_bit0,
5754 { "Deferred-MT-LR-Response-Indicator", "diameter.3gpp.deferred_mt_lr_response_indicator",
5755 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
5756 NULL, HFILL }
5758 { &hf_diameter_3gpp_mo_lr_shortcircuit_indicator_bit1,
5759 { "MO-LR-ShortCircuit-Indicator", "diameter.3gpp.mo_lr_shortcircuit_indicator",
5760 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
5761 NULL, HFILL }
5763 { &hf_diameter_3gpp_optimized_lcs_proc_performed_bit2,
5764 { "Optimized-LCS-Proc-Performed", "diameter.3gpp.optimized_lcs_proc_performed",
5765 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000004,
5766 NULL, HFILL }
5768 { &hf_diameter_3gpp_ue_transiently_not_reachable_indicator_bit3,
5769 { "UE-Transiently-Not-Reachable-Indicator", "diameter.3gpp.ue_transiently_not_reachable_indicator",
5770 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000008,
5771 NULL, HFILL }
5773 { &hf_diameter_3gpp_pla_flags_spare_bits,
5774 { "Spare", "diameter.3gpp.pla_flags_spare_bits",
5775 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0xfffffff0,
5776 NULL, HFILL }
5778 { &hf_diameter_3gpp_deferred_location_type,
5779 { "Deferred-Location-Type", "diameter.3gpp.deferred_location_type",
5780 FT_UINT32, BASE_HEX, NULL, 0x0,
5781 NULL, HFILL }
5784 { &hf_diameter_3gpp_ue_available_bit0,
5785 { "UE-Available", "diameter.3gpp.ue_avaliable",
5786 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
5787 NULL, HFILL }
5789 { &hf_diameter_3gpp_entering_into_area_bit1,
5790 { "Entering-Into-Area", "diameter.3gpp.entering_into_area",
5791 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
5792 NULL, HFILL }
5794 { &hf_diameter_3gpp_leaving_from_area_bit2,
5795 { "Leaving-From-Area", "diameter.3gpp.leaving_from_area",
5796 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000004,
5797 NULL, HFILL }
5799 { &hf_diameter_3gpp_being_inside_area_bit3,
5800 { "Being-Inside-Area", "diameter.3gpp.being_inside_area",
5801 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000008,
5802 NULL, HFILL }
5804 { &hf_diameter_3gpp_periodic_ldr_bit4,
5805 { "Periodic-LDR", "diameter.3gpp.periodic_ldr",
5806 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000010,
5807 NULL, HFILL }
5809 { &hf_diameter_3gpp_motion_event_bit5,
5810 { "Motion-Event", "diameter.3gpp.motion_event",
5811 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000020,
5812 NULL, HFILL }
5814 { &hf_diameter_3gpp_ldr_activated_bit6,
5815 { "LDR-Activated", "diameter.3gpp.ldr_activated",
5816 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000040,
5817 NULL, HFILL }
5819 { &hf_diameter_3gpp_maximum_interval_exporation_bit7,
5820 { "Maximum-Interval-Expiration", "diameter.3gpp.maximum_interval_exporation",
5821 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000080,
5822 NULL, HFILL }
5824 { &hf_diameter_3gpp_deferred_location_type_spare_bits,
5825 { "Spare", "diameter.3gpp.deferred_location_type_spare",
5826 FT_UINT32, BASE_HEX, NULL, 0xffffff00,
5827 NULL, HFILL }
5829 { &hf_diameter_3gpp_gcip,
5830 { "Group-Configuration-In-Progress", "diameter.3gpp.gcip",
5831 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
5832 NULL, HFILL }
5834 { &hf_diameter_3gpp_amec,
5835 { "All-Monitoring-Events-Cancelled", "diameter.3gpp.amec",
5836 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
5837 NULL, HFILL }
5839 { &hf_diameter_3gpp_coame,
5840 { "Change-Of-Authorized-Monitoring-Events", "diameter.3gpp.coame",
5841 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000004,
5842 NULL, HFILL }
5844 { &hf_diameter_3gpp_acpc,
5845 { "All-Communication-Pattern-Cancelled", "diameter.3gpp.acpc",
5846 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000008,
5847 NULL, HFILL }
5849 { &hf_diameter_3gpp_rir_flags,
5850 { "RIR Flags", "diameter.3gpp.rir_flags",
5851 FT_UINT32, BASE_HEX, NULL, 0x0,
5852 NULL, HFILL }
5854 { &hf_diameter_3gpp_rir_spare_b31_b4,
5855 { "Spare", "diameter.3gpp.rir_flags.spare",
5856 FT_UINT32, BASE_HEX, NULL, 0xffffffF0,
5857 NULL, HFILL }
5859 { &hf_diameter_3gpp_feature_list_s6t_flags,
5860 { "S6t Feature-List Flags", "diameter.3gpp.s6t.feature_list_flags",
5861 FT_UINT32, BASE_HEX, NULL, 0x0,
5862 NULL, HFILL }
5864 { &hf_diameter_3gpp_feature_list_s6t_flags_bit0,
5865 { "MONTE", "diameter.3gpp.s6t.b0",
5866 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000001,
5867 NULL, HFILL }
5869 { &hf_diameter_3gpp_feature_list_s6t_flags_bit1,
5870 { "AESE-Communication-Pattern", "diameter.3gpp.s6t.b1",
5871 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000002,
5872 NULL, HFILL }
5874 { &hf_diameter_3gpp_feature_list_s6t_flags_bit2,
5875 { "NIDD-Authorization", "diameter.3gpp.s6t.b2",
5876 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000004,
5877 NULL, HFILL }
5879 { &hf_diameter_3gpp_feature_list_s6t_flags_bit3,
5880 { "Enhanced-Coverage-Restriction-Control", "diameter.3gpp.s6t.b3",
5881 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000008,
5882 NULL, HFILL }
5884 { &hf_diameter_3gpp_feature_list_s6t_flags_bit4,
5885 { "NIDD Authorization Update", "diameter.3gpp.s6t.b4",
5886 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000010,
5887 NULL, HFILL }
5889 { &hf_diameter_3gpp_feature_list_s6t_flags_bit5,
5890 { "Report-Eff-MONTE", "diameter.3gpp.s6t.b5",
5891 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000020,
5892 NULL, HFILL }
5894 { &hf_diameter_3gpp_feature_list_s6t_flags_bit6,
5895 { "Event Cancellation Report", "diameter.3gpp.s6t.b6",
5896 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000040,
5897 NULL, HFILL }
5899 { &hf_diameter_3gpp_feature_list_s6t_flags_bit7,
5900 { "Config-Eff-CP", "diameter.3gpp.s6t.b7",
5901 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000080,
5902 NULL, HFILL }
5904 { &hf_diameter_3gpp_feature_list_s6t_flags_bit8,
5905 { "Config-Eff-NP", "diameter.3gpp.s6t.b8",
5906 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000100,
5907 NULL, HFILL }
5909 { &hf_diameter_3gpp_feature_list_s6t_flags_bit9,
5910 { "Extended Reference IDs", "diameter.3gpp.s6t.b9",
5911 FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x00000200,
5912 NULL, HFILL }
5914 { &hf_diameter_3gpp_feature_list_s6t_spare_b31_b10,
5915 { "Spare", "diameter.3gpp.s6t.spare",
5916 FT_UINT32, BASE_HEX, NULL, 0xfffffc00,
5917 NULL, HFILL }
5919 { &hf_diameter_3gpp_feature_list_swx_flags,
5920 { "SWx Feature-List Flags", "diameter.3gpp.swx.feature_list_flags",
5921 FT_UINT32, BASE_HEX, NULL, 0x0,
5922 NULL, HFILL }
5924 { &hf_diameter_3gpp_feature_list_swx_flags_bit0,
5925 { "HSS Restoration", "diameter.3gpp.swx.feature_list_flags.b0",
5926 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000001,
5927 NULL, HFILL }
5929 { &hf_diameter_3gpp_feature_list_swx_flags_bit1,
5930 { "Access-Network-Information-Retrieval", "diameter.3gpp.swx.feature_list_flags.b1",
5931 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000002,
5932 NULL, HFILL }
5934 { &hf_diameter_3gpp_feature_list_swx_flags_bit2,
5935 { "UE Local Time Zone Retrieval", "diameter.3gpp.swx.feature_list_flags.b2",
5936 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000004,
5937 NULL, HFILL }
5939 { &hf_diameter_3gpp_feature_list_swx_flags_bit3,
5940 { "P-CSCF Restoration for WLAN", "diameter.3gpp.swx.feature_list_flags.b3",
5941 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000008,
5942 NULL, HFILL }
5944 { &hf_diameter_3gpp_feature_list_swx_flags_bit4,
5945 { "Emergency Services Continuity", "diameter.3gpp.swx.feature_list_flags.b4",
5946 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000010,
5947 NULL, HFILL }
5949 { &hf_diameter_3gpp_feature_list_swx_flags_bit5,
5950 { "ERP", "diameter.3gpp.swx.feature_list_flags.b5",
5951 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000020,
5952 NULL, HFILL }
5954 { &hf_diameter_3gpp_feature_list_swx_flags_bit6,
5955 { "Dedicated Core Networks", "diameter.3gpp.swx.feature_list_flags.b6",
5956 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000040,
5957 NULL, HFILL }
5959 { &hf_diameter_3gpp_feature_list_s6b_flags,
5960 { "S6b Feature-List Flags", "diameter.3gpp.s6b.feature_list_flags",
5961 FT_UINT32, BASE_HEX, NULL, 0x0,
5962 NULL, HFILL }
5964 { &hf_diameter_3gpp_feature_list_s6b_flags_bit0,
5965 { "P-CSCF Restoration for WLAN", "diameter.3gpp.s6b.feature_list_flags.b0",
5966 FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x00000001,
5967 NULL, HFILL }
5969 { &hf_diameter_3gpp_supported_monitoring_events,
5970 { "Supported-Monitoring-Events", "diameter.3gpp.supported_monitoring_events",
5971 FT_UINT64, BASE_HEX, NULL, 0x0,
5972 NULL, HFILL }
5974 { &hf_diameter_3gpp_supported_monitoring_events_b0,
5975 { "UE and UICC and/or new IMSI-IMEI-SV association", "diameter.3gpp.supported_monitoring_events.b0",
5976 FT_BOOLEAN, 64, TFS(&tfs_supported_not_supported), 0x0000000000000001,
5977 NULL, HFILL }
5979 { &hf_diameter_3gpp_supported_monitoring_events_b1,
5980 { "UE-reachability", "diameter.3gpp.supported_monitoring_events.b1",
5981 FT_BOOLEAN, 64, TFS(&tfs_supported_not_supported), 0x0000000000000002,
5982 NULL, HFILL }
5984 { &hf_diameter_3gpp_supported_monitoring_events_b2,
5985 { "Location-of-the-UE", "diameter.3gpp.supported_monitoring_events.b2",
5986 FT_BOOLEAN, 64, TFS(&tfs_supported_not_supported), 0x0000000000000004,
5987 NULL, HFILL }
5989 { &hf_diameter_3gpp_supported_monitoring_events_b3,
5990 { "Loss-of-connectivity", "diameter.3gpp.supported_monitoring_events.b3",
5991 FT_BOOLEAN, 64, TFS(&tfs_supported_not_supported), 0x0000000000000008,
5992 NULL, HFILL }
5994 { &hf_diameter_3gpp_supported_monitoring_events_b4,
5995 { "Communication-failure", "diameter.3gpp.supported_monitoring_events.b4",
5996 FT_BOOLEAN, 64, TFS(&tfs_supported_not_supported), 0x0000000000000010,
5997 NULL, HFILL }
5999 { &hf_diameter_3gpp_supported_monitoring_events_b5,
6000 { "Roaming-status", "diameter.3gpp.supported_monitoring_events.b5",
6001 FT_BOOLEAN, 64, TFS(&tfs_supported_not_supported), 0x0000000000000020,
6002 NULL, HFILL }
6004 { &hf_diameter_3gpp_supported_monitoring_events_b6,
6005 { "Availability after DDN failure", "diameter.3gpp.supported_monitoring_events.b6",
6006 FT_BOOLEAN, 64, TFS(&tfs_supported_not_supported), 0x0000000000000040,
6007 NULL, HFILL }
6009 { &hf_diameter_3gpp_supported_monitoring_events_b7,
6010 { "Idle Status Indication", "diameter.3gpp.supported_monitoring_events.b7",
6011 FT_BOOLEAN, 64, TFS(&tfs_supported_not_supported), 0x0000000000000080,
6012 NULL, HFILL }
6014 { &hf_diameter_3gpp_supported_monitoring_events_b8,
6015 { "PDN Connectivity Status", "diameter.3gpp.supported_monitoring_events.b8",
6016 FT_BOOLEAN, 64, TFS(&tfs_supported_not_supported), 0x0000000000000100,
6017 NULL, HFILL }
6022 /* Setup protocol subtree array */
6023 static int *ett[] = {
6024 &ett_diameter_3gpp_path,
6025 &ett_diameter_3gpp_uar_flags,
6026 &ett_diameter_3gpp_feature_list,
6027 &ett_diameter_3gpp_tmgi,
6028 &ett_diameter_3gpp_cms,
6029 &ett_diameter_3gpp_qos_subscribed,
6030 &ett_diameter_3gpp_ulr_flags,
6031 &ett_diameter_3gpp_ula_flags,
6032 &ett_diameter_3gpp_dsr_flags,
6033 &ett_diameter_3gpp_dsa_flags,
6034 &ett_diameter_3gpp_ida_flags,
6035 &ett_diameter_3gpp_pua_flags,
6036 &ett_diameter_3gpp_nor_flags,
6037 &ett_diameter_3gpp_idr_flags,
6038 &ett_diameter_3gpp_ppr_flags,
6039 &ett_diameter_3gpp_aaa_fail_flags,
6040 &ett_diameter_3gpp_der_flags,
6041 &ett_diameter_3gpp_dea_flags,
6042 &ett_diameter_3gpp_rar_flags,
6043 &ett_diameter_3gpp_der_s6b_flags,
6044 &ett_diameter_3gpp_mbms_bearer_event,
6045 &ett_diameter_3gpp_mbms_bearer_result,
6046 &ett_diameter_3gpp_tmgi_allocation_result,
6047 &ett_diameter_3gpp_tmgi_deallocation_result,
6048 &ett_diameter_3gpp_sar_flags,
6049 &ett_diameter_3gpp_req_nodes,
6050 &ett_diameter_3gpp_emergency_services_flags,
6051 &ett_diameter_3gpp_pur_flags,
6052 &ett_diameter_3gpp_clr_flags,
6053 &ett_diameter_3gpp_uvr_flags,
6054 &ett_diameter_3gpp_uva_flags,
6055 &ett_diameter_3gpp_subscription_data_flags,
6056 &ett_diameter_3gpp_wlan_offloadability_eutran,
6057 &ett_diameter_3gpp_wlan_offloadability_utran,
6058 &ett_diameter_3gpp_air_flags,
6059 &ett_diameter_3gpp_preferred_data_mode,
6060 &ett_diameter_3gpp_v2x_permission,
6061 &ett_diameter_3gpp_core_network_restrictions,
6062 &ett_diameter_3gpp_supported_gad_shapes,
6063 &ett_diameter_3gpp_plr_flags,
6064 &ett_diameter_3gpp_pla_flags,
6065 &ett_diameter_3gpp_deferred_location_type,
6066 &ett_diameter_3gpp_rir_flags,
6067 &ett_diameter_3gpp_supported_monitoring_events,
6068 &ett_diameter_3gpp_af_requested_data_flags
6071 expert_module_t *expert_diameter_3gpp;
6073 static ei_register_info ei[] = {
6074 { &ei_diameter_3gpp_plmn_id_wrong_len,
6075 { "diameter_3gpp.plmn_id_wrong_len", PI_PROTOCOL, PI_ERROR, "PLMN Id should be 3 octets", EXPFILL } },
6078 /* Required function calls to register the header fields and subtrees used */
6079 proto_diameter_3gpp = proto_register_protocol("Diameter 3GPP","Diameter3GPP", "diameter.3gpp");
6080 proto_register_field_array(proto_diameter_3gpp, hf, array_length(hf));
6081 proto_register_subtree_array(ett, array_length(ett));
6083 expert_diameter_3gpp = expert_register_protocol(proto_diameter_3gpp);
6084 expert_register_field_array(expert_diameter_3gpp, ei, array_length(ei));
6089 * Editor modelines - https://www.wireshark.org/tools/modelines.html
6091 * Local variables:
6092 * c-basic-offset: 4
6093 * tab-width: 8
6094 * indent-tabs-mode: nil
6095 * End:
6097 * vi: set shiftwidth=4 tabstop=8 expandtab:
6098 * :indentSize=4:tabSize=8:noTabs=true: