HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / epan / dissectors / packet-sabp.c
blob7ea0638247142a154699fbff6e9246f67b908101
1 /* Do not modify this file. Changes will be overwritten. */
2 /* Generated automatically by the ASN.1 to Wireshark dissector compiler */
3 /* packet-sabp.c */
4 /* ../../tools/asn2wrs.py -p sabp -c ./sabp.cnf -s ./packet-sabp-template -D . -O ../../epan/dissectors SABP-CommonDataTypes.asn SABP-Constants.asn SABP-Containers.asn SABP-IEs.asn SABP-PDU-Contents.asn SABP-PDU-Descriptions.asn */
6 /* Input file: packet-sabp-template.c */
8 #line 1 "../../asn1/sabp/packet-sabp-template.c"
9 /* packet-sbap.c
10 * Routines for UTRAN Iu-BC Interface: Service Area Broadcast Protocol (SBAP) packet dissection
11 * Copyright 2007, Tomas Kukosa <tomas.kukosa@siemens.com>
13 * $Id$
15 * Wireshark - Network traffic analyzer
16 * By Gerald Combs <gerald@wireshark.org>
17 * Copyright 1998 Gerald Combs
19 * This program is free software; you can redistribute it and/or
20 * modify it under the terms of the GNU General Public License
21 * as published by the Free Software Foundation; either version 2
22 * of the License, or (at your option) any later version.
24 * This program is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * GNU General Public License for more details.
29 * You should have received a copy of the GNU General Public License
30 * along with this program; if not, write to the Free Software
31 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
33 * Ref: 3GPP TS 25.419 version V9.0.0 (2009-12)
36 #include "config.h"
38 #include <glib.h>
39 #include <epan/packet.h>
41 #include <epan/asn1.h>
43 #include "packet-tcp.h"
44 #include "packet-per.h"
45 #include "packet-e212.h"
46 #include "packet-gsm_map.h"
47 #include "packet-gsm_sms.h"
48 #include <epan/sctpppids.h>
49 #include "packet-cell_broadcast.h"
51 #define PNAME "UTRAN IuBC interface SABP signaling"
52 #define PSNAME "SABP"
53 #define PFNAME "sabp"
56 /*--- Included file: packet-sabp-val.h ---*/
57 #line 1 "../../asn1/sabp/packet-sabp-val.h"
58 #define maxNrOfErrors 256
59 #define maxnoofSAI 65535
60 #define maxProtocolExtensions 65535
61 #define maxProtocolIEs 65535
62 #define maxNrOfLevels 256
64 typedef enum _ProcedureCode_enum {
65 id_Write_Replace = 0,
66 id_Kill = 1,
67 id_Load_Status_Enquiry = 2,
68 id_Message_Status_Query = 3,
69 id_Restart_Indication = 4,
70 id_Reset = 5,
71 id_Failure_Indication = 6,
72 id_Error_Indication = 7
73 } ProcedureCode_enum;
75 typedef enum _ProtocolIE_ID_enum {
76 id_Broadcast_Message_Content = 0,
77 id_Category = 1,
78 id_Cause = 2,
79 id_Criticality_Diagnostics = 3,
80 id_Data_Coding_Scheme = 4,
81 id_Failure_List = 5,
82 id_Message_Identifier = 6,
83 id_New_Serial_Number = 7,
84 id_Number_of_Broadcasts_Completed_List = 8,
85 id_Number_of_Broadcasts_Requested = 9,
86 id_Old_Serial_Number = 10,
87 id_Radio_Resource_Loading_List = 11,
88 id_Recovery_Indication = 12,
89 id_Repetition_Period = 13,
90 id_Serial_Number = 14,
91 id_Service_Areas_List = 15,
92 id_MessageStructure = 16,
93 id_TypeOfError = 17,
94 id_Paging_ETWS_Indicator = 18,
95 id_Warning_Type = 19,
96 id_WarningSecurityInfo = 20,
97 id_Broadcast_Message_Content_Validity_Indicator = 21
98 } ProtocolIE_ID_enum;
100 /*--- End of included file: packet-sabp-val.h ---*/
101 #line 48 "../../asn1/sabp/packet-sabp-template.c"
103 void proto_register_sabp(void);
104 void proto_reg_handoff_sabp(void);
106 /* Initialize the protocol and registered fields */
107 static int proto_sabp = -1;
109 static int hf_sabp_no_of_pages = -1;
110 static int hf_sabp_cb_inf_len = -1;
111 static int hf_sabp_cb_msg_inf_page = -1;
112 static int hf_sabp_cbs_page_content = -1;
114 /*--- Included file: packet-sabp-hf.c ---*/
115 #line 1 "../../asn1/sabp/packet-sabp-hf.c"
116 static int hf_sabp_Broadcast_Message_Content_PDU = -1; /* Broadcast_Message_Content */
117 static int hf_sabp_Broadcast_Message_Content_Validity_Indicator_PDU = -1; /* Broadcast_Message_Content_Validity_Indicator */
118 static int hf_sabp_Category_PDU = -1; /* Category */
119 static int hf_sabp_Cause_PDU = -1; /* Cause */
120 static int hf_sabp_Criticality_Diagnostics_PDU = -1; /* Criticality_Diagnostics */
121 static int hf_sabp_MessageStructure_PDU = -1; /* MessageStructure */
122 static int hf_sabp_Data_Coding_Scheme_PDU = -1; /* Data_Coding_Scheme */
123 static int hf_sabp_Failure_List_PDU = -1; /* Failure_List */
124 static int hf_sabp_Message_Identifier_PDU = -1; /* Message_Identifier */
125 static int hf_sabp_New_Serial_Number_PDU = -1; /* New_Serial_Number */
126 static int hf_sabp_Number_of_Broadcasts_Completed_List_PDU = -1; /* Number_of_Broadcasts_Completed_List */
127 static int hf_sabp_Number_of_Broadcasts_Requested_PDU = -1; /* Number_of_Broadcasts_Requested */
128 static int hf_sabp_Old_Serial_Number_PDU = -1; /* Old_Serial_Number */
129 static int hf_sabp_Paging_ETWS_Indicator_PDU = -1; /* Paging_ETWS_Indicator */
130 static int hf_sabp_Radio_Resource_Loading_List_PDU = -1; /* Radio_Resource_Loading_List */
131 static int hf_sabp_Recovery_Indication_PDU = -1; /* Recovery_Indication */
132 static int hf_sabp_Repetition_Period_PDU = -1; /* Repetition_Period */
133 static int hf_sabp_Serial_Number_PDU = -1; /* Serial_Number */
134 static int hf_sabp_Service_Areas_List_PDU = -1; /* Service_Areas_List */
135 static int hf_sabp_TypeOfError_PDU = -1; /* TypeOfError */
136 static int hf_sabp_WarningSecurityInfo_PDU = -1; /* WarningSecurityInfo */
137 static int hf_sabp_Warning_Type_PDU = -1; /* Warning_Type */
138 static int hf_sabp_Write_Replace_PDU = -1; /* Write_Replace */
139 static int hf_sabp_Write_Replace_Complete_PDU = -1; /* Write_Replace_Complete */
140 static int hf_sabp_Write_Replace_Failure_PDU = -1; /* Write_Replace_Failure */
141 static int hf_sabp_Kill_PDU = -1; /* Kill */
142 static int hf_sabp_Kill_Complete_PDU = -1; /* Kill_Complete */
143 static int hf_sabp_Kill_Failure_PDU = -1; /* Kill_Failure */
144 static int hf_sabp_Load_Query_PDU = -1; /* Load_Query */
145 static int hf_sabp_Load_Query_Complete_PDU = -1; /* Load_Query_Complete */
146 static int hf_sabp_Load_Query_Failure_PDU = -1; /* Load_Query_Failure */
147 static int hf_sabp_Message_Status_Query_PDU = -1; /* Message_Status_Query */
148 static int hf_sabp_Message_Status_Query_Complete_PDU = -1; /* Message_Status_Query_Complete */
149 static int hf_sabp_Message_Status_Query_Failure_PDU = -1; /* Message_Status_Query_Failure */
150 static int hf_sabp_Reset_PDU = -1; /* Reset */
151 static int hf_sabp_Reset_Complete_PDU = -1; /* Reset_Complete */
152 static int hf_sabp_Reset_Failure_PDU = -1; /* Reset_Failure */
153 static int hf_sabp_Restart_PDU = -1; /* Restart */
154 static int hf_sabp_Failure_PDU = -1; /* Failure */
155 static int hf_sabp_Error_Indication_PDU = -1; /* Error_Indication */
156 static int hf_sabp_SABP_PDU_PDU = -1; /* SABP_PDU */
157 static int hf_sabp_ProtocolIE_Container_item = -1; /* ProtocolIE_Field */
158 static int hf_sabp_id = -1; /* ProtocolIE_ID */
159 static int hf_sabp_criticality = -1; /* Criticality */
160 static int hf_sabp_protocolIE_Field_value = -1; /* ProtocolIE_Field_value */
161 static int hf_sabp_ProtocolExtensionContainer_item = -1; /* ProtocolExtensionField */
162 static int hf_sabp_ext_id = -1; /* ProtocolExtensionID */
163 static int hf_sabp_extensionValue = -1; /* T_extensionValue */
164 static int hf_sabp_procedureCode = -1; /* ProcedureCode */
165 static int hf_sabp_triggeringMessage = -1; /* TriggeringMessage */
166 static int hf_sabp_procedureCriticality = -1; /* Criticality */
167 static int hf_sabp_iEsCriticalityDiagnostics = -1; /* CriticalityDiagnostics_IE_List */
168 static int hf_sabp_iE_Extensions = -1; /* ProtocolExtensionContainer */
169 static int hf_sabp_CriticalityDiagnostics_IE_List_item = -1; /* CriticalityDiagnostics_IE_List_item */
170 static int hf_sabp_iECriticality = -1; /* Criticality */
171 static int hf_sabp_iE_ID = -1; /* ProtocolIE_ID */
172 static int hf_sabp_repetitionNumber = -1; /* RepetitionNumber0 */
173 static int hf_sabp_MessageStructure_item = -1; /* MessageStructure_item */
174 static int hf_sabp_repetitionNumber1 = -1; /* RepetitionNumber1 */
175 static int hf_sabp_Failure_List_item = -1; /* Failure_List_Item */
176 static int hf_sabp_service_area_identifier = -1; /* Service_Area_Identifier */
177 static int hf_sabp_cause = -1; /* Cause */
178 static int hf_sabp_Number_of_Broadcasts_Completed_List_item = -1; /* Number_of_Broadcasts_Completed_List_Item */
179 static int hf_sabp_number_of_broadcasts_completed = -1; /* INTEGER_0_65535 */
180 static int hf_sabp_number_of_broadcasts_completed_info = -1; /* Number_Of_Broadcasts_Completed_Info */
181 static int hf_sabp_Radio_Resource_Loading_List_item = -1; /* Radio_Resource_Loading_List_Item */
182 static int hf_sabp_available_bandwidth = -1; /* Available_Bandwidth */
183 static int hf_sabp_pLMNidentity = -1; /* T_pLMNidentity */
184 static int hf_sabp_lac = -1; /* OCTET_STRING_SIZE_2 */
185 static int hf_sabp_sac = -1; /* OCTET_STRING_SIZE_2 */
186 static int hf_sabp_Service_Areas_List_item = -1; /* Service_Area_Identifier */
187 static int hf_sabp_protocolIEs = -1; /* ProtocolIE_Container */
188 static int hf_sabp_protocolExtensions = -1; /* ProtocolExtensionContainer */
189 static int hf_sabp_initiatingMessage = -1; /* InitiatingMessage */
190 static int hf_sabp_successfulOutcome = -1; /* SuccessfulOutcome */
191 static int hf_sabp_unsuccessfulOutcome = -1; /* UnsuccessfulOutcome */
192 static int hf_sabp_initiatingMessage_value = -1; /* InitiatingMessage_value */
193 static int hf_sabp_successfulOutcome_value = -1; /* SuccessfulOutcome_value */
194 static int hf_sabp_unsuccessfulOutcome_value = -1; /* UnsuccessfulOutcome_value */
196 /*--- End of included file: packet-sabp-hf.c ---*/
197 #line 60 "../../asn1/sabp/packet-sabp-template.c"
199 /* Initialize the subtree pointers */
200 static int ett_sabp = -1;
201 static int ett_sabp_e212 = -1;
202 static int ett_sabp_cbs_data_coding = -1;
203 static int ett_sabp_bcast_msg = -1;
204 static int ett_sabp_cbs_serial_number = -1;
205 static int ett_sabp_cbs_new_serial_number = -1;
206 static int ett_sabp_cbs_page = -1;
207 static int ett_sabp_cbs_page_content = -1;
210 /*--- Included file: packet-sabp-ett.c ---*/
211 #line 1 "../../asn1/sabp/packet-sabp-ett.c"
212 static gint ett_sabp_ProtocolIE_Container = -1;
213 static gint ett_sabp_ProtocolIE_Field = -1;
214 static gint ett_sabp_ProtocolExtensionContainer = -1;
215 static gint ett_sabp_ProtocolExtensionField = -1;
216 static gint ett_sabp_Criticality_Diagnostics = -1;
217 static gint ett_sabp_CriticalityDiagnostics_IE_List = -1;
218 static gint ett_sabp_CriticalityDiagnostics_IE_List_item = -1;
219 static gint ett_sabp_MessageStructure = -1;
220 static gint ett_sabp_MessageStructure_item = -1;
221 static gint ett_sabp_Failure_List = -1;
222 static gint ett_sabp_Failure_List_Item = -1;
223 static gint ett_sabp_Number_of_Broadcasts_Completed_List = -1;
224 static gint ett_sabp_Number_of_Broadcasts_Completed_List_Item = -1;
225 static gint ett_sabp_Radio_Resource_Loading_List = -1;
226 static gint ett_sabp_Radio_Resource_Loading_List_Item = -1;
227 static gint ett_sabp_Service_Area_Identifier = -1;
228 static gint ett_sabp_Service_Areas_List = -1;
229 static gint ett_sabp_Write_Replace = -1;
230 static gint ett_sabp_Write_Replace_Complete = -1;
231 static gint ett_sabp_Write_Replace_Failure = -1;
232 static gint ett_sabp_Kill = -1;
233 static gint ett_sabp_Kill_Complete = -1;
234 static gint ett_sabp_Kill_Failure = -1;
235 static gint ett_sabp_Load_Query = -1;
236 static gint ett_sabp_Load_Query_Complete = -1;
237 static gint ett_sabp_Load_Query_Failure = -1;
238 static gint ett_sabp_Message_Status_Query = -1;
239 static gint ett_sabp_Message_Status_Query_Complete = -1;
240 static gint ett_sabp_Message_Status_Query_Failure = -1;
241 static gint ett_sabp_Reset = -1;
242 static gint ett_sabp_Reset_Complete = -1;
243 static gint ett_sabp_Reset_Failure = -1;
244 static gint ett_sabp_Restart = -1;
245 static gint ett_sabp_Failure = -1;
246 static gint ett_sabp_Error_Indication = -1;
247 static gint ett_sabp_SABP_PDU = -1;
248 static gint ett_sabp_InitiatingMessage = -1;
249 static gint ett_sabp_SuccessfulOutcome = -1;
250 static gint ett_sabp_UnsuccessfulOutcome = -1;
252 /*--- End of included file: packet-sabp-ett.c ---*/
253 #line 72 "../../asn1/sabp/packet-sabp-template.c"
255 /* Global variables */
256 static guint32 ProcedureCode;
257 static guint32 ProtocolIE_ID;
258 static guint32 ProtocolExtensionID;
259 static guint8 sms_encoding;
261 /* desegmentation of sabp over TCP */
262 static gboolean gbl_sabp_desegment = TRUE;
264 /* Dissector tables */
265 static dissector_table_t sabp_ies_dissector_table;
266 static dissector_table_t sabp_extension_dissector_table;
267 static dissector_table_t sabp_proc_imsg_dissector_table;
268 static dissector_table_t sabp_proc_sout_dissector_table;
269 static dissector_table_t sabp_proc_uout_dissector_table;
271 static int dissect_ProtocolIEFieldValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *);
272 static int dissect_ProtocolExtensionFieldExtensionValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *);
273 static int dissect_InitiatingMessageValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *);
274 static int dissect_SuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *);
275 static int dissect_UnsuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *);
276 static void dissect_sabp_cb_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
279 /*--- Included file: packet-sabp-fn.c ---*/
280 #line 1 "../../asn1/sabp/packet-sabp-fn.c"
282 static const value_string sabp_Criticality_vals[] = {
283 { 0, "reject" },
284 { 1, "ignore" },
285 { 2, "notify" },
286 { 0, NULL }
290 static int
291 dissect_sabp_Criticality(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
292 offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
293 3, NULL, FALSE, 0, NULL);
295 return offset;
299 static const value_string sabp_ProcedureCode_vals[] = {
300 { id_Write_Replace, "id-Write-Replace" },
301 { id_Kill, "id-Kill" },
302 { id_Load_Status_Enquiry, "id-Load-Status-Enquiry" },
303 { id_Message_Status_Query, "id-Message-Status-Query" },
304 { id_Restart_Indication, "id-Restart-Indication" },
305 { id_Reset, "id-Reset" },
306 { id_Failure_Indication, "id-Failure-Indication" },
307 { id_Error_Indication, "id-Error-Indication" },
308 { 0, NULL }
311 static value_string_ext sabp_ProcedureCode_vals_ext = VALUE_STRING_EXT_INIT(sabp_ProcedureCode_vals);
314 static int
315 dissect_sabp_ProcedureCode(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
316 offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
317 0U, 255U, &ProcedureCode, FALSE);
319 #line 58 "../../asn1/sabp/sabp.cnf"
320 col_add_fstr(actx->pinfo->cinfo, COL_INFO, "%s ",
321 val_to_str_ext(ProcedureCode, &sabp_ProcedureCode_vals_ext,
322 "unknown message"));
324 return offset;
329 static int
330 dissect_sabp_ProtocolExtensionID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
331 offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
332 0U, 65535U, &ProtocolExtensionID, FALSE);
334 return offset;
338 static const value_string sabp_ProtocolIE_ID_vals[] = {
339 { id_Broadcast_Message_Content, "id-Broadcast-Message-Content" },
340 { id_Category, "id-Category" },
341 { id_Cause, "id-Cause" },
342 { id_Criticality_Diagnostics, "id-Criticality-Diagnostics" },
343 { id_Data_Coding_Scheme, "id-Data-Coding-Scheme" },
344 { id_Failure_List, "id-Failure-List" },
345 { id_Message_Identifier, "id-Message-Identifier" },
346 { id_New_Serial_Number, "id-New-Serial-Number" },
347 { id_Number_of_Broadcasts_Completed_List, "id-Number-of-Broadcasts-Completed-List" },
348 { id_Number_of_Broadcasts_Requested, "id-Number-of-Broadcasts-Requested" },
349 { id_Old_Serial_Number, "id-Old-Serial-Number" },
350 { id_Radio_Resource_Loading_List, "id-Radio-Resource-Loading-List" },
351 { id_Recovery_Indication, "id-Recovery-Indication" },
352 { id_Repetition_Period, "id-Repetition-Period" },
353 { id_Serial_Number, "id-Serial-Number" },
354 { id_Service_Areas_List, "id-Service-Areas-List" },
355 { id_MessageStructure, "id-MessageStructure" },
356 { id_TypeOfError, "id-TypeOfError" },
357 { id_Paging_ETWS_Indicator, "id-Paging-ETWS-Indicator" },
358 { id_Warning_Type, "id-Warning-Type" },
359 { id_WarningSecurityInfo, "id-WarningSecurityInfo" },
360 { id_Broadcast_Message_Content_Validity_Indicator, "id-Broadcast-Message-Content-Validity-Indicator" },
361 { 0, NULL }
364 static value_string_ext sabp_ProtocolIE_ID_vals_ext = VALUE_STRING_EXT_INIT(sabp_ProtocolIE_ID_vals);
367 static int
368 dissect_sabp_ProtocolIE_ID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
369 offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
370 0U, 65535U, &ProtocolIE_ID, FALSE);
372 #line 45 "../../asn1/sabp/sabp.cnf"
373 if (tree) {
374 proto_item_append_text(proto_item_get_parent_nth(actx->created_item, 2), ": %s", val_to_str_ext(ProtocolIE_ID, &sabp_ProtocolIE_ID_vals_ext, "unknown (%d)"));
377 return offset;
381 static const value_string sabp_TriggeringMessage_vals[] = {
382 { 0, "initiating-message" },
383 { 1, "successful-outcome" },
384 { 2, "unsuccessful-outcome" },
385 { 3, "outcome" },
386 { 0, NULL }
390 static int
391 dissect_sabp_TriggeringMessage(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
392 offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
393 4, NULL, FALSE, 0, NULL);
395 return offset;
400 static int
401 dissect_sabp_ProtocolIE_Field_value(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
402 offset = dissect_per_open_type_pdu_new(tvb, offset, actx, tree, hf_index, dissect_ProtocolIEFieldValue);
404 return offset;
408 static const per_sequence_t ProtocolIE_Field_sequence[] = {
409 { &hf_sabp_id , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_ID },
410 { &hf_sabp_criticality , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_Criticality },
411 { &hf_sabp_protocolIE_Field_value, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Field_value },
412 { NULL, 0, 0, NULL }
415 static int
416 dissect_sabp_ProtocolIE_Field(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
417 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
418 ett_sabp_ProtocolIE_Field, ProtocolIE_Field_sequence);
420 return offset;
424 static const per_sequence_t ProtocolIE_Container_sequence_of[1] = {
425 { &hf_sabp_ProtocolIE_Container_item, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Field },
428 static int
429 dissect_sabp_ProtocolIE_Container(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
430 offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
431 ett_sabp_ProtocolIE_Container, ProtocolIE_Container_sequence_of,
432 0, maxProtocolIEs, FALSE);
434 return offset;
439 static int
440 dissect_sabp_T_extensionValue(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
441 offset = dissect_per_open_type_pdu_new(tvb, offset, actx, tree, hf_index, dissect_ProtocolExtensionFieldExtensionValue);
443 return offset;
447 static const per_sequence_t ProtocolExtensionField_sequence[] = {
448 { &hf_sabp_ext_id , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolExtensionID },
449 { &hf_sabp_criticality , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_Criticality },
450 { &hf_sabp_extensionValue , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_T_extensionValue },
451 { NULL, 0, 0, NULL }
454 static int
455 dissect_sabp_ProtocolExtensionField(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
456 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
457 ett_sabp_ProtocolExtensionField, ProtocolExtensionField_sequence);
459 return offset;
463 static const per_sequence_t ProtocolExtensionContainer_sequence_of[1] = {
464 { &hf_sabp_ProtocolExtensionContainer_item, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolExtensionField },
467 static int
468 dissect_sabp_ProtocolExtensionContainer(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
469 offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
470 ett_sabp_ProtocolExtensionContainer, ProtocolExtensionContainer_sequence_of,
471 1, maxProtocolExtensions, FALSE);
473 return offset;
478 static int
479 dissect_sabp_Available_Bandwidth(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
480 offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
481 0U, 20480U, NULL, FALSE);
483 return offset;
488 static int
489 dissect_sabp_Broadcast_Message_Content(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
490 #line 211 "../../asn1/sabp/sabp.cnf"
491 tvbuff_t *parameter_tvb=NULL;
493 offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index,
494 1, 9968, FALSE, &parameter_tvb);
496 if (!parameter_tvb)
497 return offset;
498 dissect_sabp_cb_data(parameter_tvb, actx->pinfo, tree);
501 return offset;
505 static const value_string sabp_Broadcast_Message_Content_Validity_Indicator_vals[] = {
506 { 0, "broadcast-Message-Content-not-valid" },
507 { 0, NULL }
511 static int
512 dissect_sabp_Broadcast_Message_Content_Validity_Indicator(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
513 offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
514 1, NULL, TRUE, 0, NULL);
516 return offset;
520 static const value_string sabp_Category_vals[] = {
521 { 0, "high-priority" },
522 { 1, "background-priority" },
523 { 2, "normal-priority" },
524 { 3, "default-priority" },
525 { 0, NULL }
529 static int
530 dissect_sabp_Category(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
531 offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
532 4, NULL, TRUE, 0, NULL);
534 return offset;
538 static const value_string sabp_Cause_vals[] = {
539 { 0, "parameter-not-recognised" },
540 { 1, "parameter-value-invalid" },
541 { 2, "valid-CN-message-not-identified" },
542 { 3, "service-area-identity-not-valid" },
543 { 4, "unrecognised-message" },
544 { 5, "missing-mandatory-element" },
545 { 6, "rNC-capacity-exceeded" },
546 { 7, "rNC-memory-exceeded" },
547 { 8, "service-area-broadcast-not-supported" },
548 { 9, "service-area-broadcast-not-operational" },
549 { 10, "message-reference-already-used" },
550 { 11, "unspecifed-error" },
551 { 12, "transfer-syntax-error" },
552 { 13, "semantic-error" },
553 { 14, "message-not-compatible-with-receiver-state" },
554 { 15, "abstract-syntax-error-reject" },
555 { 16, "abstract-syntax-error-ignore-and-notify" },
556 { 17, "abstract-syntax-error-falsely-constructed-message" },
557 { 0, NULL }
560 static value_string_ext sabp_Cause_vals_ext = VALUE_STRING_EXT_INIT(sabp_Cause_vals);
563 static int
564 dissect_sabp_Cause(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
565 offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
566 0U, 255U, NULL, FALSE);
568 return offset;
573 static int
574 dissect_sabp_RepetitionNumber0(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
575 offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
576 0U, 255U, NULL, FALSE);
578 return offset;
582 static const per_sequence_t CriticalityDiagnostics_IE_List_item_sequence[] = {
583 { &hf_sabp_iECriticality , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_Criticality },
584 { &hf_sabp_iE_ID , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_ID },
585 { &hf_sabp_repetitionNumber, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_RepetitionNumber0 },
586 { &hf_sabp_iE_Extensions , ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
587 { NULL, 0, 0, NULL }
590 static int
591 dissect_sabp_CriticalityDiagnostics_IE_List_item(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
592 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
593 ett_sabp_CriticalityDiagnostics_IE_List_item, CriticalityDiagnostics_IE_List_item_sequence);
595 return offset;
599 static const per_sequence_t CriticalityDiagnostics_IE_List_sequence_of[1] = {
600 { &hf_sabp_CriticalityDiagnostics_IE_List_item, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_CriticalityDiagnostics_IE_List_item },
603 static int
604 dissect_sabp_CriticalityDiagnostics_IE_List(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
605 offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
606 ett_sabp_CriticalityDiagnostics_IE_List, CriticalityDiagnostics_IE_List_sequence_of,
607 1, maxNrOfErrors, FALSE);
609 return offset;
613 static const per_sequence_t Criticality_Diagnostics_sequence[] = {
614 { &hf_sabp_procedureCode , ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProcedureCode },
615 { &hf_sabp_triggeringMessage, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_TriggeringMessage },
616 { &hf_sabp_procedureCriticality, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_Criticality },
617 { &hf_sabp_iEsCriticalityDiagnostics, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_CriticalityDiagnostics_IE_List },
618 { &hf_sabp_iE_Extensions , ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
619 { NULL, 0, 0, NULL }
622 static int
623 dissect_sabp_Criticality_Diagnostics(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
624 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
625 ett_sabp_Criticality_Diagnostics, Criticality_Diagnostics_sequence);
627 return offset;
632 static int
633 dissect_sabp_RepetitionNumber1(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
634 offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
635 1U, 256U, NULL, FALSE);
637 return offset;
641 static const per_sequence_t MessageStructure_item_sequence[] = {
642 { &hf_sabp_iE_ID , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_ID },
643 { &hf_sabp_repetitionNumber1, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_RepetitionNumber1 },
644 { &hf_sabp_iE_Extensions , ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
645 { NULL, 0, 0, NULL }
648 static int
649 dissect_sabp_MessageStructure_item(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
650 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
651 ett_sabp_MessageStructure_item, MessageStructure_item_sequence);
653 return offset;
657 static const per_sequence_t MessageStructure_sequence_of[1] = {
658 { &hf_sabp_MessageStructure_item, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_MessageStructure_item },
661 static int
662 dissect_sabp_MessageStructure(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
663 offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
664 ett_sabp_MessageStructure, MessageStructure_sequence_of,
665 1, maxNrOfLevels, FALSE);
667 return offset;
672 static int
673 dissect_sabp_Data_Coding_Scheme(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
674 #line 172 "../../asn1/sabp/sabp.cnf"
675 tvbuff_t *parameter_tvb=NULL;
676 proto_tree *subtree;
678 offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index,
679 8, 8, FALSE, &parameter_tvb);
682 if (!parameter_tvb)
683 return offset;
684 subtree = proto_item_add_subtree(actx->created_item, ett_sabp_cbs_data_coding);
685 sms_encoding = dissect_cbs_data_coding_scheme(parameter_tvb, actx->pinfo, subtree, 0);
689 return offset;
694 static int
695 dissect_sabp_T_pLMNidentity(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
696 #line 160 "../../asn1/sabp/sabp.cnf"
697 tvbuff_t *parameter_tvb=NULL;
698 proto_tree *subtree;
700 offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
701 3, 3, FALSE, &parameter_tvb);
703 if (!parameter_tvb)
704 return offset;
705 subtree = proto_item_add_subtree(actx->created_item, ett_sabp_e212);
706 dissect_e212_mcc_mnc(parameter_tvb, actx->pinfo, subtree, 0, FALSE);
710 return offset;
715 static int
716 dissect_sabp_OCTET_STRING_SIZE_2(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
717 offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
718 2, 2, FALSE, NULL);
720 return offset;
724 static const per_sequence_t Service_Area_Identifier_sequence[] = {
725 { &hf_sabp_pLMNidentity , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_T_pLMNidentity },
726 { &hf_sabp_lac , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_OCTET_STRING_SIZE_2 },
727 { &hf_sabp_sac , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_OCTET_STRING_SIZE_2 },
728 { NULL, 0, 0, NULL }
731 static int
732 dissect_sabp_Service_Area_Identifier(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
733 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
734 ett_sabp_Service_Area_Identifier, Service_Area_Identifier_sequence);
736 return offset;
740 static const per_sequence_t Failure_List_Item_sequence[] = {
741 { &hf_sabp_service_area_identifier, ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_Service_Area_Identifier },
742 { &hf_sabp_cause , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_Cause },
743 { &hf_sabp_iE_Extensions , ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
744 { NULL, 0, 0, NULL }
747 static int
748 dissect_sabp_Failure_List_Item(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
749 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
750 ett_sabp_Failure_List_Item, Failure_List_Item_sequence);
752 return offset;
756 static const per_sequence_t Failure_List_sequence_of[1] = {
757 { &hf_sabp_Failure_List_item, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_Failure_List_Item },
760 static int
761 dissect_sabp_Failure_List(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
762 offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
763 ett_sabp_Failure_List, Failure_List_sequence_of,
764 1, maxnoofSAI, FALSE);
766 return offset;
771 static int
772 dissect_sabp_Message_Identifier(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
773 #line 183 "../../asn1/sabp/sabp.cnf"
774 tvbuff_t *parameter_tvb=NULL;
776 offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index,
777 16, 16, FALSE, &parameter_tvb);
779 if (!parameter_tvb)
780 return offset;
781 dissect_cbs_message_identifier(parameter_tvb, tree, 0);
785 return offset;
790 static int
791 dissect_sabp_Serial_Number(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
792 #line 191 "../../asn1/sabp/sabp.cnf"
793 tvbuff_t *parameter_tvb=NULL;
794 proto_tree *subtree;
796 offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index,
797 16, 16, FALSE, &parameter_tvb);
799 if (!parameter_tvb)
800 return offset;
801 subtree = proto_item_add_subtree(actx->created_item, ett_sabp_cbs_serial_number);
802 dissect_cbs_serial_number(parameter_tvb, subtree, 0);
806 return offset;
811 static int
812 dissect_sabp_New_Serial_Number(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
813 #line 201 "../../asn1/sabp/sabp.cnf"
814 tvbuff_t *parameter_tvb=NULL;
815 proto_tree *subtree;
817 offset = dissect_sabp_Serial_Number(tvb, offset, actx, tree, hf_index);
819 if (!parameter_tvb)
820 return offset;
821 subtree = proto_item_add_subtree(actx->created_item, ett_sabp_cbs_new_serial_number);
822 dissect_cbs_serial_number(parameter_tvb, subtree, 0);
826 return offset;
831 static int
832 dissect_sabp_INTEGER_0_65535(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
833 offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
834 0U, 65535U, NULL, FALSE);
836 return offset;
840 static const value_string sabp_Number_Of_Broadcasts_Completed_Info_vals[] = {
841 { 0, "overflow" },
842 { 1, "unknown" },
843 { 0, NULL }
847 static int
848 dissect_sabp_Number_Of_Broadcasts_Completed_Info(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
849 offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
850 2, NULL, TRUE, 0, NULL);
852 return offset;
856 static const per_sequence_t Number_of_Broadcasts_Completed_List_Item_sequence[] = {
857 { &hf_sabp_service_area_identifier, ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_Service_Area_Identifier },
858 { &hf_sabp_number_of_broadcasts_completed, ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_INTEGER_0_65535 },
859 { &hf_sabp_number_of_broadcasts_completed_info, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_Number_Of_Broadcasts_Completed_Info },
860 { &hf_sabp_iE_Extensions , ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
861 { NULL, 0, 0, NULL }
864 static int
865 dissect_sabp_Number_of_Broadcasts_Completed_List_Item(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
866 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
867 ett_sabp_Number_of_Broadcasts_Completed_List_Item, Number_of_Broadcasts_Completed_List_Item_sequence);
869 return offset;
873 static const per_sequence_t Number_of_Broadcasts_Completed_List_sequence_of[1] = {
874 { &hf_sabp_Number_of_Broadcasts_Completed_List_item, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_Number_of_Broadcasts_Completed_List_Item },
877 static int
878 dissect_sabp_Number_of_Broadcasts_Completed_List(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
879 offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
880 ett_sabp_Number_of_Broadcasts_Completed_List, Number_of_Broadcasts_Completed_List_sequence_of,
881 1, maxnoofSAI, FALSE);
883 return offset;
887 static const value_string sabp_Number_of_Broadcasts_Requested_vals[] = {
888 { 0, "broadcast-indefinitely" },
889 { 0, NULL }
893 static int
894 dissect_sabp_Number_of_Broadcasts_Requested(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
895 offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
896 0U, 65535U, NULL, FALSE);
898 return offset;
903 static int
904 dissect_sabp_Old_Serial_Number(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
905 offset = dissect_sabp_Serial_Number(tvb, offset, actx, tree, hf_index);
907 return offset;
911 static const value_string sabp_Paging_ETWS_Indicator_vals[] = {
912 { 0, "paging" },
913 { 0, NULL }
917 static int
918 dissect_sabp_Paging_ETWS_Indicator(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
919 offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
920 1, NULL, TRUE, 0, NULL);
922 return offset;
926 static const per_sequence_t Radio_Resource_Loading_List_Item_sequence[] = {
927 { &hf_sabp_service_area_identifier, ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_Service_Area_Identifier },
928 { &hf_sabp_available_bandwidth, ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_Available_Bandwidth },
929 { &hf_sabp_iE_Extensions , ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
930 { NULL, 0, 0, NULL }
933 static int
934 dissect_sabp_Radio_Resource_Loading_List_Item(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
935 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
936 ett_sabp_Radio_Resource_Loading_List_Item, Radio_Resource_Loading_List_Item_sequence);
938 return offset;
942 static const per_sequence_t Radio_Resource_Loading_List_sequence_of[1] = {
943 { &hf_sabp_Radio_Resource_Loading_List_item, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_Radio_Resource_Loading_List_Item },
946 static int
947 dissect_sabp_Radio_Resource_Loading_List(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
948 offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
949 ett_sabp_Radio_Resource_Loading_List, Radio_Resource_Loading_List_sequence_of,
950 1, maxnoofSAI, FALSE);
952 return offset;
956 static const value_string sabp_Recovery_Indication_vals[] = {
957 { 0, "data-lost" },
958 { 1, "data-available" },
959 { 0, NULL }
963 static int
964 dissect_sabp_Recovery_Indication(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
965 offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
966 2, NULL, FALSE, 0, NULL);
968 return offset;
973 static int
974 dissect_sabp_Repetition_Period(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
975 offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
976 1U, 4096U, NULL, FALSE);
978 return offset;
982 static const per_sequence_t Service_Areas_List_sequence_of[1] = {
983 { &hf_sabp_Service_Areas_List_item, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_Service_Area_Identifier },
986 static int
987 dissect_sabp_Service_Areas_List(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
988 offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
989 ett_sabp_Service_Areas_List, Service_Areas_List_sequence_of,
990 1, maxnoofSAI, FALSE);
992 return offset;
996 static const value_string sabp_TypeOfError_vals[] = {
997 { 0, "not-understood" },
998 { 1, "missing" },
999 { 0, NULL }
1003 static int
1004 dissect_sabp_TypeOfError(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1005 offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
1006 2, NULL, TRUE, 0, NULL);
1008 return offset;
1013 static int
1014 dissect_sabp_WarningSecurityInfo(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1015 offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
1016 50, 50, FALSE, NULL);
1018 return offset;
1023 static int
1024 dissect_sabp_Warning_Type(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1025 offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
1026 2, 2, FALSE, NULL);
1028 return offset;
1032 static const per_sequence_t Write_Replace_sequence[] = {
1033 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1034 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1035 { NULL, 0, 0, NULL }
1038 static int
1039 dissect_sabp_Write_Replace(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1040 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1041 ett_sabp_Write_Replace, Write_Replace_sequence);
1043 return offset;
1047 static const per_sequence_t Write_Replace_Complete_sequence[] = {
1048 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1049 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1050 { NULL, 0, 0, NULL }
1053 static int
1054 dissect_sabp_Write_Replace_Complete(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1055 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1056 ett_sabp_Write_Replace_Complete, Write_Replace_Complete_sequence);
1058 return offset;
1062 static const per_sequence_t Write_Replace_Failure_sequence[] = {
1063 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1064 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1065 { NULL, 0, 0, NULL }
1068 static int
1069 dissect_sabp_Write_Replace_Failure(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1070 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1071 ett_sabp_Write_Replace_Failure, Write_Replace_Failure_sequence);
1073 return offset;
1077 static const per_sequence_t Kill_sequence[] = {
1078 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1079 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1080 { NULL, 0, 0, NULL }
1083 static int
1084 dissect_sabp_Kill(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1085 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1086 ett_sabp_Kill, Kill_sequence);
1088 return offset;
1092 static const per_sequence_t Kill_Complete_sequence[] = {
1093 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1094 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1095 { NULL, 0, 0, NULL }
1098 static int
1099 dissect_sabp_Kill_Complete(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1100 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1101 ett_sabp_Kill_Complete, Kill_Complete_sequence);
1103 return offset;
1107 static const per_sequence_t Kill_Failure_sequence[] = {
1108 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1109 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1110 { NULL, 0, 0, NULL }
1113 static int
1114 dissect_sabp_Kill_Failure(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1115 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1116 ett_sabp_Kill_Failure, Kill_Failure_sequence);
1118 return offset;
1122 static const per_sequence_t Load_Query_sequence[] = {
1123 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1124 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1125 { NULL, 0, 0, NULL }
1128 static int
1129 dissect_sabp_Load_Query(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1130 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1131 ett_sabp_Load_Query, Load_Query_sequence);
1133 return offset;
1137 static const per_sequence_t Load_Query_Complete_sequence[] = {
1138 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1139 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1140 { NULL, 0, 0, NULL }
1143 static int
1144 dissect_sabp_Load_Query_Complete(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1145 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1146 ett_sabp_Load_Query_Complete, Load_Query_Complete_sequence);
1148 return offset;
1152 static const per_sequence_t Load_Query_Failure_sequence[] = {
1153 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1154 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1155 { NULL, 0, 0, NULL }
1158 static int
1159 dissect_sabp_Load_Query_Failure(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1160 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1161 ett_sabp_Load_Query_Failure, Load_Query_Failure_sequence);
1163 return offset;
1167 static const per_sequence_t Message_Status_Query_sequence[] = {
1168 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1169 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1170 { NULL, 0, 0, NULL }
1173 static int
1174 dissect_sabp_Message_Status_Query(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1175 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1176 ett_sabp_Message_Status_Query, Message_Status_Query_sequence);
1178 return offset;
1182 static const per_sequence_t Message_Status_Query_Complete_sequence[] = {
1183 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1184 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1185 { NULL, 0, 0, NULL }
1188 static int
1189 dissect_sabp_Message_Status_Query_Complete(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1190 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1191 ett_sabp_Message_Status_Query_Complete, Message_Status_Query_Complete_sequence);
1193 return offset;
1197 static const per_sequence_t Message_Status_Query_Failure_sequence[] = {
1198 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1199 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1200 { NULL, 0, 0, NULL }
1203 static int
1204 dissect_sabp_Message_Status_Query_Failure(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1205 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1206 ett_sabp_Message_Status_Query_Failure, Message_Status_Query_Failure_sequence);
1208 return offset;
1212 static const per_sequence_t Reset_sequence[] = {
1213 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1214 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1215 { NULL, 0, 0, NULL }
1218 static int
1219 dissect_sabp_Reset(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1220 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1221 ett_sabp_Reset, Reset_sequence);
1223 return offset;
1227 static const per_sequence_t Reset_Complete_sequence[] = {
1228 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1229 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1230 { NULL, 0, 0, NULL }
1233 static int
1234 dissect_sabp_Reset_Complete(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1235 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1236 ett_sabp_Reset_Complete, Reset_Complete_sequence);
1238 return offset;
1242 static const per_sequence_t Reset_Failure_sequence[] = {
1243 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1244 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1245 { NULL, 0, 0, NULL }
1248 static int
1249 dissect_sabp_Reset_Failure(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1250 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1251 ett_sabp_Reset_Failure, Reset_Failure_sequence);
1253 return offset;
1257 static const per_sequence_t Restart_sequence[] = {
1258 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1259 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1260 { NULL, 0, 0, NULL }
1263 static int
1264 dissect_sabp_Restart(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1265 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1266 ett_sabp_Restart, Restart_sequence);
1268 return offset;
1272 static const per_sequence_t Failure_sequence[] = {
1273 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1274 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1275 { NULL, 0, 0, NULL }
1278 static int
1279 dissect_sabp_Failure(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1280 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1281 ett_sabp_Failure, Failure_sequence);
1283 return offset;
1287 static const per_sequence_t Error_Indication_sequence[] = {
1288 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1289 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1290 { NULL, 0, 0, NULL }
1293 static int
1294 dissect_sabp_Error_Indication(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1295 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1296 ett_sabp_Error_Indication, Error_Indication_sequence);
1298 return offset;
1303 static int
1304 dissect_sabp_InitiatingMessage_value(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1305 offset = dissect_per_open_type_pdu_new(tvb, offset, actx, tree, hf_index, dissect_InitiatingMessageValue);
1307 return offset;
1311 static const per_sequence_t InitiatingMessage_sequence[] = {
1312 { &hf_sabp_procedureCode , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_ProcedureCode },
1313 { &hf_sabp_criticality , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_Criticality },
1314 { &hf_sabp_initiatingMessage_value, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_InitiatingMessage_value },
1315 { NULL, 0, 0, NULL }
1318 static int
1319 dissect_sabp_InitiatingMessage(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1320 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1321 ett_sabp_InitiatingMessage, InitiatingMessage_sequence);
1323 return offset;
1328 static int
1329 dissect_sabp_SuccessfulOutcome_value(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1330 offset = dissect_per_open_type_pdu_new(tvb, offset, actx, tree, hf_index, dissect_SuccessfulOutcomeValue);
1332 return offset;
1336 static const per_sequence_t SuccessfulOutcome_sequence[] = {
1337 { &hf_sabp_procedureCode , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_ProcedureCode },
1338 { &hf_sabp_criticality , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_Criticality },
1339 { &hf_sabp_successfulOutcome_value, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_SuccessfulOutcome_value },
1340 { NULL, 0, 0, NULL }
1343 static int
1344 dissect_sabp_SuccessfulOutcome(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1345 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1346 ett_sabp_SuccessfulOutcome, SuccessfulOutcome_sequence);
1348 return offset;
1353 static int
1354 dissect_sabp_UnsuccessfulOutcome_value(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1355 offset = dissect_per_open_type_pdu_new(tvb, offset, actx, tree, hf_index, dissect_UnsuccessfulOutcomeValue);
1357 return offset;
1361 static const per_sequence_t UnsuccessfulOutcome_sequence[] = {
1362 { &hf_sabp_procedureCode , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_ProcedureCode },
1363 { &hf_sabp_criticality , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_Criticality },
1364 { &hf_sabp_unsuccessfulOutcome_value, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_UnsuccessfulOutcome_value },
1365 { NULL, 0, 0, NULL }
1368 static int
1369 dissect_sabp_UnsuccessfulOutcome(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1370 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1371 ett_sabp_UnsuccessfulOutcome, UnsuccessfulOutcome_sequence);
1373 return offset;
1377 static const value_string sabp_SABP_PDU_vals[] = {
1378 { 0, "initiatingMessage" },
1379 { 1, "successfulOutcome" },
1380 { 2, "unsuccessfulOutcome" },
1381 { 0, NULL }
1384 static const per_choice_t SABP_PDU_choice[] = {
1385 { 0, &hf_sabp_initiatingMessage, ASN1_EXTENSION_ROOT , dissect_sabp_InitiatingMessage },
1386 { 1, &hf_sabp_successfulOutcome, ASN1_EXTENSION_ROOT , dissect_sabp_SuccessfulOutcome },
1387 { 2, &hf_sabp_unsuccessfulOutcome, ASN1_EXTENSION_ROOT , dissect_sabp_UnsuccessfulOutcome },
1388 { 0, NULL, 0, NULL }
1391 static int
1392 dissect_sabp_SABP_PDU(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1393 offset = dissect_per_choice(tvb, offset, actx, tree, hf_index,
1394 ett_sabp_SABP_PDU, SABP_PDU_choice,
1395 NULL);
1397 return offset;
1400 /*--- PDUs ---*/
1402 static int dissect_Broadcast_Message_Content_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1403 int offset = 0;
1404 asn1_ctx_t asn1_ctx;
1405 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1406 offset = dissect_sabp_Broadcast_Message_Content(tvb, offset, &asn1_ctx, tree, hf_sabp_Broadcast_Message_Content_PDU);
1407 offset += 7; offset >>= 3;
1408 return offset;
1410 static int dissect_Broadcast_Message_Content_Validity_Indicator_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1411 int offset = 0;
1412 asn1_ctx_t asn1_ctx;
1413 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1414 offset = dissect_sabp_Broadcast_Message_Content_Validity_Indicator(tvb, offset, &asn1_ctx, tree, hf_sabp_Broadcast_Message_Content_Validity_Indicator_PDU);
1415 offset += 7; offset >>= 3;
1416 return offset;
1418 static int dissect_Category_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1419 int offset = 0;
1420 asn1_ctx_t asn1_ctx;
1421 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1422 offset = dissect_sabp_Category(tvb, offset, &asn1_ctx, tree, hf_sabp_Category_PDU);
1423 offset += 7; offset >>= 3;
1424 return offset;
1426 static int dissect_Cause_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1427 int offset = 0;
1428 asn1_ctx_t asn1_ctx;
1429 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1430 offset = dissect_sabp_Cause(tvb, offset, &asn1_ctx, tree, hf_sabp_Cause_PDU);
1431 offset += 7; offset >>= 3;
1432 return offset;
1434 static int dissect_Criticality_Diagnostics_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1435 int offset = 0;
1436 asn1_ctx_t asn1_ctx;
1437 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1438 offset = dissect_sabp_Criticality_Diagnostics(tvb, offset, &asn1_ctx, tree, hf_sabp_Criticality_Diagnostics_PDU);
1439 offset += 7; offset >>= 3;
1440 return offset;
1442 static int dissect_MessageStructure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1443 int offset = 0;
1444 asn1_ctx_t asn1_ctx;
1445 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1446 offset = dissect_sabp_MessageStructure(tvb, offset, &asn1_ctx, tree, hf_sabp_MessageStructure_PDU);
1447 offset += 7; offset >>= 3;
1448 return offset;
1450 static int dissect_Data_Coding_Scheme_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1451 int offset = 0;
1452 asn1_ctx_t asn1_ctx;
1453 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1454 offset = dissect_sabp_Data_Coding_Scheme(tvb, offset, &asn1_ctx, tree, hf_sabp_Data_Coding_Scheme_PDU);
1455 offset += 7; offset >>= 3;
1456 return offset;
1458 static int dissect_Failure_List_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1459 int offset = 0;
1460 asn1_ctx_t asn1_ctx;
1461 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1462 offset = dissect_sabp_Failure_List(tvb, offset, &asn1_ctx, tree, hf_sabp_Failure_List_PDU);
1463 offset += 7; offset >>= 3;
1464 return offset;
1466 static int dissect_Message_Identifier_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1467 int offset = 0;
1468 asn1_ctx_t asn1_ctx;
1469 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1470 offset = dissect_sabp_Message_Identifier(tvb, offset, &asn1_ctx, tree, hf_sabp_Message_Identifier_PDU);
1471 offset += 7; offset >>= 3;
1472 return offset;
1474 static int dissect_New_Serial_Number_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1475 int offset = 0;
1476 asn1_ctx_t asn1_ctx;
1477 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1478 offset = dissect_sabp_New_Serial_Number(tvb, offset, &asn1_ctx, tree, hf_sabp_New_Serial_Number_PDU);
1479 offset += 7; offset >>= 3;
1480 return offset;
1482 static int dissect_Number_of_Broadcasts_Completed_List_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1483 int offset = 0;
1484 asn1_ctx_t asn1_ctx;
1485 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1486 offset = dissect_sabp_Number_of_Broadcasts_Completed_List(tvb, offset, &asn1_ctx, tree, hf_sabp_Number_of_Broadcasts_Completed_List_PDU);
1487 offset += 7; offset >>= 3;
1488 return offset;
1490 static int dissect_Number_of_Broadcasts_Requested_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1491 int offset = 0;
1492 asn1_ctx_t asn1_ctx;
1493 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1494 offset = dissect_sabp_Number_of_Broadcasts_Requested(tvb, offset, &asn1_ctx, tree, hf_sabp_Number_of_Broadcasts_Requested_PDU);
1495 offset += 7; offset >>= 3;
1496 return offset;
1498 static int dissect_Old_Serial_Number_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1499 int offset = 0;
1500 asn1_ctx_t asn1_ctx;
1501 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1502 offset = dissect_sabp_Old_Serial_Number(tvb, offset, &asn1_ctx, tree, hf_sabp_Old_Serial_Number_PDU);
1503 offset += 7; offset >>= 3;
1504 return offset;
1506 static int dissect_Paging_ETWS_Indicator_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1507 int offset = 0;
1508 asn1_ctx_t asn1_ctx;
1509 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1510 offset = dissect_sabp_Paging_ETWS_Indicator(tvb, offset, &asn1_ctx, tree, hf_sabp_Paging_ETWS_Indicator_PDU);
1511 offset += 7; offset >>= 3;
1512 return offset;
1514 static int dissect_Radio_Resource_Loading_List_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1515 int offset = 0;
1516 asn1_ctx_t asn1_ctx;
1517 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1518 offset = dissect_sabp_Radio_Resource_Loading_List(tvb, offset, &asn1_ctx, tree, hf_sabp_Radio_Resource_Loading_List_PDU);
1519 offset += 7; offset >>= 3;
1520 return offset;
1522 static int dissect_Recovery_Indication_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1523 int offset = 0;
1524 asn1_ctx_t asn1_ctx;
1525 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1526 offset = dissect_sabp_Recovery_Indication(tvb, offset, &asn1_ctx, tree, hf_sabp_Recovery_Indication_PDU);
1527 offset += 7; offset >>= 3;
1528 return offset;
1530 static int dissect_Repetition_Period_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1531 int offset = 0;
1532 asn1_ctx_t asn1_ctx;
1533 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1534 offset = dissect_sabp_Repetition_Period(tvb, offset, &asn1_ctx, tree, hf_sabp_Repetition_Period_PDU);
1535 offset += 7; offset >>= 3;
1536 return offset;
1538 static int dissect_Serial_Number_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1539 int offset = 0;
1540 asn1_ctx_t asn1_ctx;
1541 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1542 offset = dissect_sabp_Serial_Number(tvb, offset, &asn1_ctx, tree, hf_sabp_Serial_Number_PDU);
1543 offset += 7; offset >>= 3;
1544 return offset;
1546 static int dissect_Service_Areas_List_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1547 int offset = 0;
1548 asn1_ctx_t asn1_ctx;
1549 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1550 offset = dissect_sabp_Service_Areas_List(tvb, offset, &asn1_ctx, tree, hf_sabp_Service_Areas_List_PDU);
1551 offset += 7; offset >>= 3;
1552 return offset;
1554 static int dissect_TypeOfError_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1555 int offset = 0;
1556 asn1_ctx_t asn1_ctx;
1557 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1558 offset = dissect_sabp_TypeOfError(tvb, offset, &asn1_ctx, tree, hf_sabp_TypeOfError_PDU);
1559 offset += 7; offset >>= 3;
1560 return offset;
1562 static int dissect_WarningSecurityInfo_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1563 int offset = 0;
1564 asn1_ctx_t asn1_ctx;
1565 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1566 offset = dissect_sabp_WarningSecurityInfo(tvb, offset, &asn1_ctx, tree, hf_sabp_WarningSecurityInfo_PDU);
1567 offset += 7; offset >>= 3;
1568 return offset;
1570 static int dissect_Warning_Type_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1571 int offset = 0;
1572 asn1_ctx_t asn1_ctx;
1573 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1574 offset = dissect_sabp_Warning_Type(tvb, offset, &asn1_ctx, tree, hf_sabp_Warning_Type_PDU);
1575 offset += 7; offset >>= 3;
1576 return offset;
1578 static int dissect_Write_Replace_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1579 int offset = 0;
1580 asn1_ctx_t asn1_ctx;
1581 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1582 offset = dissect_sabp_Write_Replace(tvb, offset, &asn1_ctx, tree, hf_sabp_Write_Replace_PDU);
1583 offset += 7; offset >>= 3;
1584 return offset;
1586 static int dissect_Write_Replace_Complete_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1587 int offset = 0;
1588 asn1_ctx_t asn1_ctx;
1589 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1590 offset = dissect_sabp_Write_Replace_Complete(tvb, offset, &asn1_ctx, tree, hf_sabp_Write_Replace_Complete_PDU);
1591 offset += 7; offset >>= 3;
1592 return offset;
1594 static int dissect_Write_Replace_Failure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1595 int offset = 0;
1596 asn1_ctx_t asn1_ctx;
1597 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1598 offset = dissect_sabp_Write_Replace_Failure(tvb, offset, &asn1_ctx, tree, hf_sabp_Write_Replace_Failure_PDU);
1599 offset += 7; offset >>= 3;
1600 return offset;
1602 static int dissect_Kill_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1603 int offset = 0;
1604 asn1_ctx_t asn1_ctx;
1605 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1606 offset = dissect_sabp_Kill(tvb, offset, &asn1_ctx, tree, hf_sabp_Kill_PDU);
1607 offset += 7; offset >>= 3;
1608 return offset;
1610 static int dissect_Kill_Complete_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1611 int offset = 0;
1612 asn1_ctx_t asn1_ctx;
1613 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1614 offset = dissect_sabp_Kill_Complete(tvb, offset, &asn1_ctx, tree, hf_sabp_Kill_Complete_PDU);
1615 offset += 7; offset >>= 3;
1616 return offset;
1618 static int dissect_Kill_Failure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1619 int offset = 0;
1620 asn1_ctx_t asn1_ctx;
1621 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1622 offset = dissect_sabp_Kill_Failure(tvb, offset, &asn1_ctx, tree, hf_sabp_Kill_Failure_PDU);
1623 offset += 7; offset >>= 3;
1624 return offset;
1626 static int dissect_Load_Query_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1627 int offset = 0;
1628 asn1_ctx_t asn1_ctx;
1629 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1630 offset = dissect_sabp_Load_Query(tvb, offset, &asn1_ctx, tree, hf_sabp_Load_Query_PDU);
1631 offset += 7; offset >>= 3;
1632 return offset;
1634 static int dissect_Load_Query_Complete_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1635 int offset = 0;
1636 asn1_ctx_t asn1_ctx;
1637 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1638 offset = dissect_sabp_Load_Query_Complete(tvb, offset, &asn1_ctx, tree, hf_sabp_Load_Query_Complete_PDU);
1639 offset += 7; offset >>= 3;
1640 return offset;
1642 static int dissect_Load_Query_Failure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1643 int offset = 0;
1644 asn1_ctx_t asn1_ctx;
1645 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1646 offset = dissect_sabp_Load_Query_Failure(tvb, offset, &asn1_ctx, tree, hf_sabp_Load_Query_Failure_PDU);
1647 offset += 7; offset >>= 3;
1648 return offset;
1650 static int dissect_Message_Status_Query_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1651 int offset = 0;
1652 asn1_ctx_t asn1_ctx;
1653 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1654 offset = dissect_sabp_Message_Status_Query(tvb, offset, &asn1_ctx, tree, hf_sabp_Message_Status_Query_PDU);
1655 offset += 7; offset >>= 3;
1656 return offset;
1658 static int dissect_Message_Status_Query_Complete_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1659 int offset = 0;
1660 asn1_ctx_t asn1_ctx;
1661 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1662 offset = dissect_sabp_Message_Status_Query_Complete(tvb, offset, &asn1_ctx, tree, hf_sabp_Message_Status_Query_Complete_PDU);
1663 offset += 7; offset >>= 3;
1664 return offset;
1666 static int dissect_Message_Status_Query_Failure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1667 int offset = 0;
1668 asn1_ctx_t asn1_ctx;
1669 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1670 offset = dissect_sabp_Message_Status_Query_Failure(tvb, offset, &asn1_ctx, tree, hf_sabp_Message_Status_Query_Failure_PDU);
1671 offset += 7; offset >>= 3;
1672 return offset;
1674 static int dissect_Reset_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1675 int offset = 0;
1676 asn1_ctx_t asn1_ctx;
1677 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1678 offset = dissect_sabp_Reset(tvb, offset, &asn1_ctx, tree, hf_sabp_Reset_PDU);
1679 offset += 7; offset >>= 3;
1680 return offset;
1682 static int dissect_Reset_Complete_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1683 int offset = 0;
1684 asn1_ctx_t asn1_ctx;
1685 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1686 offset = dissect_sabp_Reset_Complete(tvb, offset, &asn1_ctx, tree, hf_sabp_Reset_Complete_PDU);
1687 offset += 7; offset >>= 3;
1688 return offset;
1690 static int dissect_Reset_Failure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1691 int offset = 0;
1692 asn1_ctx_t asn1_ctx;
1693 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1694 offset = dissect_sabp_Reset_Failure(tvb, offset, &asn1_ctx, tree, hf_sabp_Reset_Failure_PDU);
1695 offset += 7; offset >>= 3;
1696 return offset;
1698 static int dissect_Restart_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1699 int offset = 0;
1700 asn1_ctx_t asn1_ctx;
1701 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1702 offset = dissect_sabp_Restart(tvb, offset, &asn1_ctx, tree, hf_sabp_Restart_PDU);
1703 offset += 7; offset >>= 3;
1704 return offset;
1706 static int dissect_Failure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1707 int offset = 0;
1708 asn1_ctx_t asn1_ctx;
1709 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1710 offset = dissect_sabp_Failure(tvb, offset, &asn1_ctx, tree, hf_sabp_Failure_PDU);
1711 offset += 7; offset >>= 3;
1712 return offset;
1714 static int dissect_Error_Indication_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1715 int offset = 0;
1716 asn1_ctx_t asn1_ctx;
1717 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1718 offset = dissect_sabp_Error_Indication(tvb, offset, &asn1_ctx, tree, hf_sabp_Error_Indication_PDU);
1719 offset += 7; offset >>= 3;
1720 return offset;
1722 static int dissect_SABP_PDU_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1723 int offset = 0;
1724 asn1_ctx_t asn1_ctx;
1725 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1726 offset = dissect_sabp_SABP_PDU(tvb, offset, &asn1_ctx, tree, hf_sabp_SABP_PDU_PDU);
1727 offset += 7; offset >>= 3;
1728 return offset;
1732 /*--- End of included file: packet-sabp-fn.c ---*/
1733 #line 97 "../../asn1/sabp/packet-sabp-template.c"
1735 static int dissect_ProtocolIEFieldValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
1737 return (dissector_try_uint(sabp_ies_dissector_table, ProtocolIE_ID, tvb, pinfo, tree)) ? tvb_length(tvb) : 0;
1740 static int dissect_ProtocolExtensionFieldExtensionValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
1742 return (dissector_try_uint(sabp_extension_dissector_table, ProtocolExtensionID, tvb, pinfo, tree)) ? tvb_length(tvb) : 0;
1745 static int dissect_InitiatingMessageValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
1747 return (dissector_try_uint(sabp_proc_imsg_dissector_table, ProcedureCode, tvb, pinfo, tree)) ? tvb_length(tvb) : 0;
1750 static int dissect_SuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
1752 return (dissector_try_uint(sabp_proc_sout_dissector_table, ProcedureCode, tvb, pinfo, tree)) ? tvb_length(tvb) : 0;
1755 static int dissect_UnsuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
1757 return (dissector_try_uint(sabp_proc_uout_dissector_table, ProcedureCode, tvb, pinfo, tree)) ? tvb_length(tvb) : 0;
1761 /* 3GPP TS 23.041 version 11.4.0
1762 * 9.4.2.2.5 CB Data
1764 static void
1765 dissect_sabp_cb_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
1767 proto_item *item, *cbs_page_item;
1768 proto_tree *subtree;
1769 tvbuff_t *page_tvb, *unpacked_tvb;
1770 int offset = 0;
1771 int n;
1772 guint8 nr_pages, len, cb_inf_msg_len;
1775 /* Octet 1 Number-of-Pages */
1776 nr_pages = tvb_get_guint8(tvb, offset);
1777 proto_tree_add_item(tree, hf_sabp_no_of_pages, tvb, offset, 1, ENC_BIG_ENDIAN);
1778 offset++;
1780 * NOTE: n equal to or less than 15
1782 if(nr_pages > 15){
1783 /* Error */
1784 return;
1786 for (n = 0; n < nr_pages; n++) {
1787 item = proto_tree_add_text(tree, tvb, offset, 83, "CB page %u data", n+1);
1788 subtree = proto_item_add_subtree(item, ett_sabp_cbs_page);
1789 /* octet 2 - 83 CBS-Message-Information-Page 1 */
1790 cbs_page_item = proto_tree_add_item(subtree, hf_sabp_cb_msg_inf_page, tvb, offset, 82, ENC_BIG_ENDIAN);
1791 cb_inf_msg_len = tvb_get_guint8(tvb,offset+82);
1792 page_tvb = tvb_new_subset(tvb, offset, cb_inf_msg_len, cb_inf_msg_len);
1793 unpacked_tvb = dissect_cbs_data(sms_encoding, page_tvb, subtree, pinfo, 0);
1794 len = tvb_length(unpacked_tvb);
1795 if (unpacked_tvb != NULL){
1796 if (tree != NULL){
1797 proto_tree *cbs_page_subtree = proto_item_add_subtree(cbs_page_item, ett_sabp_cbs_page_content);
1798 proto_tree_add_string(cbs_page_subtree, hf_sabp_cbs_page_content, unpacked_tvb, 0, len, tvb_get_string(wmem_packet_scope(), unpacked_tvb, 0, len));
1802 offset = offset+82;
1803 /* 84 CBS-Message-Information-Length 1 */
1804 proto_tree_add_item(subtree, hf_sabp_cb_inf_len, tvb, offset, 1, ENC_BIG_ENDIAN);
1805 offset++;
1811 static guint
1812 get_sabp_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset)
1814 guint32 type_length;
1815 int bit_offset;
1816 asn1_ctx_t asn1_ctx;
1817 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1819 /* Length should be in the 3:d octet */
1820 offset = offset + 3;
1822 bit_offset = offset<<3;
1823 /* Get the length of the sabp packet. offset in bits */
1824 dissect_per_length_determinant(tvb, bit_offset, &asn1_ctx, NULL, -1, &type_length);
1827 * Return the length of the PDU
1828 * which is 3 + the length of the length, we only care about length up to 16K
1829 * ("n" less than 128) a single octet containing "n" with bit 8 set to zero;
1830 * ("n" less than 16K) two octets containing "n" with bit 8 of the first octet set to 1 and bit 7 set to zero;
1832 if (type_length < 128)
1833 return type_length+4;
1835 return type_length+5;
1839 static int
1840 dissect_sabp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
1842 proto_item *sabp_item = NULL;
1843 proto_tree *sabp_tree = NULL;
1845 /* make entry in the Protocol column on summary display */
1846 col_set_str(pinfo->cinfo, COL_PROTOCOL, PSNAME);
1848 /* create the sbap protocol tree */
1849 sabp_item = proto_tree_add_item(tree, proto_sabp, tvb, 0, -1, ENC_NA);
1850 sabp_tree = proto_item_add_subtree(sabp_item, ett_sabp);
1852 dissect_SABP_PDU_PDU(tvb, pinfo, sabp_tree, NULL);
1853 return tvb_length(tvb);
1856 /* Note a little bit of a hack assumes length max takes two bytes and that the length starts at byte 4 */
1857 static int
1858 dissect_sabp_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
1860 tcp_dissect_pdus(tvb, pinfo, tree, gbl_sabp_desegment, 5,
1861 get_sabp_pdu_len, dissect_sabp, data);
1862 return tvb_length(tvb);
1865 /*--- proto_register_sbap -------------------------------------------*/
1866 void proto_register_sabp(void) {
1868 /* List of fields */
1870 static hf_register_info hf[] = {
1871 { &hf_sabp_no_of_pages,
1872 { "Number-of-Pages", "sabp.no_of_pages",
1873 FT_UINT8, BASE_DEC, NULL, 0,
1874 NULL, HFILL }},
1875 { &hf_sabp_cb_msg_inf_page,
1876 { "CBS-Message-Information-Page", "sabp.cb_msg_inf_page",
1877 FT_BYTES, BASE_NONE, NULL, 0,
1878 NULL, HFILL }},
1879 { &hf_sabp_cbs_page_content,
1880 { "CBS Page Content", "sabp.cb_page_content",
1881 FT_STRING, BASE_NONE, NULL, 0,
1882 NULL, HFILL }},
1883 { &hf_sabp_cb_inf_len,
1884 { "CBS-Message-Information-Length", "sabp.cb_inf_len",
1885 FT_UINT8, BASE_DEC, NULL, 0,
1886 NULL, HFILL }},
1889 /*--- Included file: packet-sabp-hfarr.c ---*/
1890 #line 1 "../../asn1/sabp/packet-sabp-hfarr.c"
1891 { &hf_sabp_Broadcast_Message_Content_PDU,
1892 { "Broadcast-Message-Content", "sabp.Broadcast_Message_Content",
1893 FT_BYTES, BASE_NONE, NULL, 0,
1894 NULL, HFILL }},
1895 { &hf_sabp_Broadcast_Message_Content_Validity_Indicator_PDU,
1896 { "Broadcast-Message-Content-Validity-Indicator", "sabp.Broadcast_Message_Content_Validity_Indicator",
1897 FT_UINT32, BASE_DEC, VALS(sabp_Broadcast_Message_Content_Validity_Indicator_vals), 0,
1898 NULL, HFILL }},
1899 { &hf_sabp_Category_PDU,
1900 { "Category", "sabp.Category",
1901 FT_UINT32, BASE_DEC, VALS(sabp_Category_vals), 0,
1902 NULL, HFILL }},
1903 { &hf_sabp_Cause_PDU,
1904 { "Cause", "sabp.Cause",
1905 FT_UINT32, BASE_DEC|BASE_EXT_STRING, &sabp_Cause_vals_ext, 0,
1906 NULL, HFILL }},
1907 { &hf_sabp_Criticality_Diagnostics_PDU,
1908 { "Criticality-Diagnostics", "sabp.Criticality_Diagnostics_element",
1909 FT_NONE, BASE_NONE, NULL, 0,
1910 NULL, HFILL }},
1911 { &hf_sabp_MessageStructure_PDU,
1912 { "MessageStructure", "sabp.MessageStructure",
1913 FT_UINT32, BASE_DEC, NULL, 0,
1914 NULL, HFILL }},
1915 { &hf_sabp_Data_Coding_Scheme_PDU,
1916 { "Data-Coding-Scheme", "sabp.Data_Coding_Scheme",
1917 FT_BYTES, BASE_NONE, NULL, 0,
1918 NULL, HFILL }},
1919 { &hf_sabp_Failure_List_PDU,
1920 { "Failure-List", "sabp.Failure_List",
1921 FT_UINT32, BASE_DEC, NULL, 0,
1922 NULL, HFILL }},
1923 { &hf_sabp_Message_Identifier_PDU,
1924 { "Message-Identifier", "sabp.Message_Identifier",
1925 FT_BYTES, BASE_NONE, NULL, 0,
1926 NULL, HFILL }},
1927 { &hf_sabp_New_Serial_Number_PDU,
1928 { "New-Serial-Number", "sabp.New_Serial_Number",
1929 FT_BYTES, BASE_NONE, NULL, 0,
1930 NULL, HFILL }},
1931 { &hf_sabp_Number_of_Broadcasts_Completed_List_PDU,
1932 { "Number-of-Broadcasts-Completed-List", "sabp.Number_of_Broadcasts_Completed_List",
1933 FT_UINT32, BASE_DEC, NULL, 0,
1934 NULL, HFILL }},
1935 { &hf_sabp_Number_of_Broadcasts_Requested_PDU,
1936 { "Number-of-Broadcasts-Requested", "sabp.Number_of_Broadcasts_Requested",
1937 FT_UINT32, BASE_DEC, VALS(sabp_Number_of_Broadcasts_Requested_vals), 0,
1938 NULL, HFILL }},
1939 { &hf_sabp_Old_Serial_Number_PDU,
1940 { "Old-Serial-Number", "sabp.Old_Serial_Number",
1941 FT_BYTES, BASE_NONE, NULL, 0,
1942 NULL, HFILL }},
1943 { &hf_sabp_Paging_ETWS_Indicator_PDU,
1944 { "Paging-ETWS-Indicator", "sabp.Paging_ETWS_Indicator",
1945 FT_UINT32, BASE_DEC, VALS(sabp_Paging_ETWS_Indicator_vals), 0,
1946 NULL, HFILL }},
1947 { &hf_sabp_Radio_Resource_Loading_List_PDU,
1948 { "Radio-Resource-Loading-List", "sabp.Radio_Resource_Loading_List",
1949 FT_UINT32, BASE_DEC, NULL, 0,
1950 NULL, HFILL }},
1951 { &hf_sabp_Recovery_Indication_PDU,
1952 { "Recovery-Indication", "sabp.Recovery_Indication",
1953 FT_UINT32, BASE_DEC, VALS(sabp_Recovery_Indication_vals), 0,
1954 NULL, HFILL }},
1955 { &hf_sabp_Repetition_Period_PDU,
1956 { "Repetition-Period", "sabp.Repetition_Period",
1957 FT_UINT32, BASE_DEC, NULL, 0,
1958 NULL, HFILL }},
1959 { &hf_sabp_Serial_Number_PDU,
1960 { "Serial-Number", "sabp.Serial_Number",
1961 FT_BYTES, BASE_NONE, NULL, 0,
1962 NULL, HFILL }},
1963 { &hf_sabp_Service_Areas_List_PDU,
1964 { "Service-Areas-List", "sabp.Service_Areas_List",
1965 FT_UINT32, BASE_DEC, NULL, 0,
1966 NULL, HFILL }},
1967 { &hf_sabp_TypeOfError_PDU,
1968 { "TypeOfError", "sabp.TypeOfError",
1969 FT_UINT32, BASE_DEC, VALS(sabp_TypeOfError_vals), 0,
1970 NULL, HFILL }},
1971 { &hf_sabp_WarningSecurityInfo_PDU,
1972 { "WarningSecurityInfo", "sabp.WarningSecurityInfo",
1973 FT_BYTES, BASE_NONE, NULL, 0,
1974 NULL, HFILL }},
1975 { &hf_sabp_Warning_Type_PDU,
1976 { "Warning-Type", "sabp.Warning_Type",
1977 FT_BYTES, BASE_NONE, NULL, 0,
1978 NULL, HFILL }},
1979 { &hf_sabp_Write_Replace_PDU,
1980 { "Write-Replace", "sabp.Write_Replace_element",
1981 FT_NONE, BASE_NONE, NULL, 0,
1982 NULL, HFILL }},
1983 { &hf_sabp_Write_Replace_Complete_PDU,
1984 { "Write-Replace-Complete", "sabp.Write_Replace_Complete_element",
1985 FT_NONE, BASE_NONE, NULL, 0,
1986 NULL, HFILL }},
1987 { &hf_sabp_Write_Replace_Failure_PDU,
1988 { "Write-Replace-Failure", "sabp.Write_Replace_Failure_element",
1989 FT_NONE, BASE_NONE, NULL, 0,
1990 NULL, HFILL }},
1991 { &hf_sabp_Kill_PDU,
1992 { "Kill", "sabp.Kill_element",
1993 FT_NONE, BASE_NONE, NULL, 0,
1994 NULL, HFILL }},
1995 { &hf_sabp_Kill_Complete_PDU,
1996 { "Kill-Complete", "sabp.Kill_Complete_element",
1997 FT_NONE, BASE_NONE, NULL, 0,
1998 NULL, HFILL }},
1999 { &hf_sabp_Kill_Failure_PDU,
2000 { "Kill-Failure", "sabp.Kill_Failure_element",
2001 FT_NONE, BASE_NONE, NULL, 0,
2002 NULL, HFILL }},
2003 { &hf_sabp_Load_Query_PDU,
2004 { "Load-Query", "sabp.Load_Query_element",
2005 FT_NONE, BASE_NONE, NULL, 0,
2006 NULL, HFILL }},
2007 { &hf_sabp_Load_Query_Complete_PDU,
2008 { "Load-Query-Complete", "sabp.Load_Query_Complete_element",
2009 FT_NONE, BASE_NONE, NULL, 0,
2010 NULL, HFILL }},
2011 { &hf_sabp_Load_Query_Failure_PDU,
2012 { "Load-Query-Failure", "sabp.Load_Query_Failure_element",
2013 FT_NONE, BASE_NONE, NULL, 0,
2014 NULL, HFILL }},
2015 { &hf_sabp_Message_Status_Query_PDU,
2016 { "Message-Status-Query", "sabp.Message_Status_Query_element",
2017 FT_NONE, BASE_NONE, NULL, 0,
2018 NULL, HFILL }},
2019 { &hf_sabp_Message_Status_Query_Complete_PDU,
2020 { "Message-Status-Query-Complete", "sabp.Message_Status_Query_Complete_element",
2021 FT_NONE, BASE_NONE, NULL, 0,
2022 NULL, HFILL }},
2023 { &hf_sabp_Message_Status_Query_Failure_PDU,
2024 { "Message-Status-Query-Failure", "sabp.Message_Status_Query_Failure_element",
2025 FT_NONE, BASE_NONE, NULL, 0,
2026 NULL, HFILL }},
2027 { &hf_sabp_Reset_PDU,
2028 { "Reset", "sabp.Reset_element",
2029 FT_NONE, BASE_NONE, NULL, 0,
2030 NULL, HFILL }},
2031 { &hf_sabp_Reset_Complete_PDU,
2032 { "Reset-Complete", "sabp.Reset_Complete_element",
2033 FT_NONE, BASE_NONE, NULL, 0,
2034 NULL, HFILL }},
2035 { &hf_sabp_Reset_Failure_PDU,
2036 { "Reset-Failure", "sabp.Reset_Failure_element",
2037 FT_NONE, BASE_NONE, NULL, 0,
2038 NULL, HFILL }},
2039 { &hf_sabp_Restart_PDU,
2040 { "Restart", "sabp.Restart_element",
2041 FT_NONE, BASE_NONE, NULL, 0,
2042 NULL, HFILL }},
2043 { &hf_sabp_Failure_PDU,
2044 { "Failure", "sabp.Failure_element",
2045 FT_NONE, BASE_NONE, NULL, 0,
2046 NULL, HFILL }},
2047 { &hf_sabp_Error_Indication_PDU,
2048 { "Error-Indication", "sabp.Error_Indication_element",
2049 FT_NONE, BASE_NONE, NULL, 0,
2050 NULL, HFILL }},
2051 { &hf_sabp_SABP_PDU_PDU,
2052 { "SABP-PDU", "sabp.SABP_PDU",
2053 FT_UINT32, BASE_DEC, VALS(sabp_SABP_PDU_vals), 0,
2054 NULL, HFILL }},
2055 { &hf_sabp_ProtocolIE_Container_item,
2056 { "ProtocolIE-Field", "sabp.ProtocolIE_Field_element",
2057 FT_NONE, BASE_NONE, NULL, 0,
2058 NULL, HFILL }},
2059 { &hf_sabp_id,
2060 { "id", "sabp.id",
2061 FT_UINT32, BASE_DEC|BASE_EXT_STRING, &sabp_ProtocolIE_ID_vals_ext, 0,
2062 "ProtocolIE_ID", HFILL }},
2063 { &hf_sabp_criticality,
2064 { "criticality", "sabp.criticality",
2065 FT_UINT32, BASE_DEC, VALS(sabp_Criticality_vals), 0,
2066 NULL, HFILL }},
2067 { &hf_sabp_protocolIE_Field_value,
2068 { "value", "sabp.value_element",
2069 FT_NONE, BASE_NONE, NULL, 0,
2070 "ProtocolIE_Field_value", HFILL }},
2071 { &hf_sabp_ProtocolExtensionContainer_item,
2072 { "ProtocolExtensionField", "sabp.ProtocolExtensionField_element",
2073 FT_NONE, BASE_NONE, NULL, 0,
2074 NULL, HFILL }},
2075 { &hf_sabp_ext_id,
2076 { "id", "sabp.id",
2077 FT_UINT32, BASE_DEC, NULL, 0,
2078 "ProtocolExtensionID", HFILL }},
2079 { &hf_sabp_extensionValue,
2080 { "extensionValue", "sabp.extensionValue_element",
2081 FT_NONE, BASE_NONE, NULL, 0,
2082 NULL, HFILL }},
2083 { &hf_sabp_procedureCode,
2084 { "procedureCode", "sabp.procedureCode",
2085 FT_UINT32, BASE_DEC|BASE_EXT_STRING, &sabp_ProcedureCode_vals_ext, 0,
2086 NULL, HFILL }},
2087 { &hf_sabp_triggeringMessage,
2088 { "triggeringMessage", "sabp.triggeringMessage",
2089 FT_UINT32, BASE_DEC, VALS(sabp_TriggeringMessage_vals), 0,
2090 NULL, HFILL }},
2091 { &hf_sabp_procedureCriticality,
2092 { "procedureCriticality", "sabp.procedureCriticality",
2093 FT_UINT32, BASE_DEC, VALS(sabp_Criticality_vals), 0,
2094 "Criticality", HFILL }},
2095 { &hf_sabp_iEsCriticalityDiagnostics,
2096 { "iEsCriticalityDiagnostics", "sabp.iEsCriticalityDiagnostics",
2097 FT_UINT32, BASE_DEC, NULL, 0,
2098 "CriticalityDiagnostics_IE_List", HFILL }},
2099 { &hf_sabp_iE_Extensions,
2100 { "iE-Extensions", "sabp.iE_Extensions",
2101 FT_UINT32, BASE_DEC, NULL, 0,
2102 "ProtocolExtensionContainer", HFILL }},
2103 { &hf_sabp_CriticalityDiagnostics_IE_List_item,
2104 { "CriticalityDiagnostics-IE-List item", "sabp.CriticalityDiagnostics_IE_List_item_element",
2105 FT_NONE, BASE_NONE, NULL, 0,
2106 NULL, HFILL }},
2107 { &hf_sabp_iECriticality,
2108 { "iECriticality", "sabp.iECriticality",
2109 FT_UINT32, BASE_DEC, VALS(sabp_Criticality_vals), 0,
2110 "Criticality", HFILL }},
2111 { &hf_sabp_iE_ID,
2112 { "iE-ID", "sabp.iE_ID",
2113 FT_UINT32, BASE_DEC|BASE_EXT_STRING, &sabp_ProtocolIE_ID_vals_ext, 0,
2114 "ProtocolIE_ID", HFILL }},
2115 { &hf_sabp_repetitionNumber,
2116 { "repetitionNumber", "sabp.repetitionNumber",
2117 FT_UINT32, BASE_DEC, NULL, 0,
2118 "RepetitionNumber0", HFILL }},
2119 { &hf_sabp_MessageStructure_item,
2120 { "MessageStructure item", "sabp.MessageStructure_item_element",
2121 FT_NONE, BASE_NONE, NULL, 0,
2122 NULL, HFILL }},
2123 { &hf_sabp_repetitionNumber1,
2124 { "repetitionNumber", "sabp.repetitionNumber",
2125 FT_UINT32, BASE_DEC, NULL, 0,
2126 "RepetitionNumber1", HFILL }},
2127 { &hf_sabp_Failure_List_item,
2128 { "Failure-List-Item", "sabp.Failure_List_Item_element",
2129 FT_NONE, BASE_NONE, NULL, 0,
2130 NULL, HFILL }},
2131 { &hf_sabp_service_area_identifier,
2132 { "service-area-identifier", "sabp.service_area_identifier_element",
2133 FT_NONE, BASE_NONE, NULL, 0,
2134 NULL, HFILL }},
2135 { &hf_sabp_cause,
2136 { "cause", "sabp.cause",
2137 FT_UINT32, BASE_DEC|BASE_EXT_STRING, &sabp_Cause_vals_ext, 0,
2138 NULL, HFILL }},
2139 { &hf_sabp_Number_of_Broadcasts_Completed_List_item,
2140 { "Number-of-Broadcasts-Completed-List-Item", "sabp.Number_of_Broadcasts_Completed_List_Item_element",
2141 FT_NONE, BASE_NONE, NULL, 0,
2142 NULL, HFILL }},
2143 { &hf_sabp_number_of_broadcasts_completed,
2144 { "number-of-broadcasts-completed", "sabp.number_of_broadcasts_completed",
2145 FT_UINT32, BASE_DEC, NULL, 0,
2146 "INTEGER_0_65535", HFILL }},
2147 { &hf_sabp_number_of_broadcasts_completed_info,
2148 { "number-of-broadcasts-completed-info", "sabp.number_of_broadcasts_completed_info",
2149 FT_UINT32, BASE_DEC, VALS(sabp_Number_Of_Broadcasts_Completed_Info_vals), 0,
2150 NULL, HFILL }},
2151 { &hf_sabp_Radio_Resource_Loading_List_item,
2152 { "Radio-Resource-Loading-List-Item", "sabp.Radio_Resource_Loading_List_Item_element",
2153 FT_NONE, BASE_NONE, NULL, 0,
2154 NULL, HFILL }},
2155 { &hf_sabp_available_bandwidth,
2156 { "available-bandwidth", "sabp.available_bandwidth",
2157 FT_UINT32, BASE_DEC, NULL, 0,
2158 NULL, HFILL }},
2159 { &hf_sabp_pLMNidentity,
2160 { "pLMNidentity", "sabp.pLMNidentity",
2161 FT_BYTES, BASE_NONE, NULL, 0,
2162 NULL, HFILL }},
2163 { &hf_sabp_lac,
2164 { "lac", "sabp.lac",
2165 FT_BYTES, BASE_NONE, NULL, 0,
2166 "OCTET_STRING_SIZE_2", HFILL }},
2167 { &hf_sabp_sac,
2168 { "sac", "sabp.sac",
2169 FT_BYTES, BASE_NONE, NULL, 0,
2170 "OCTET_STRING_SIZE_2", HFILL }},
2171 { &hf_sabp_Service_Areas_List_item,
2172 { "Service-Area-Identifier", "sabp.Service_Area_Identifier_element",
2173 FT_NONE, BASE_NONE, NULL, 0,
2174 NULL, HFILL }},
2175 { &hf_sabp_protocolIEs,
2176 { "protocolIEs", "sabp.protocolIEs",
2177 FT_UINT32, BASE_DEC, NULL, 0,
2178 "ProtocolIE_Container", HFILL }},
2179 { &hf_sabp_protocolExtensions,
2180 { "protocolExtensions", "sabp.protocolExtensions",
2181 FT_UINT32, BASE_DEC, NULL, 0,
2182 "ProtocolExtensionContainer", HFILL }},
2183 { &hf_sabp_initiatingMessage,
2184 { "initiatingMessage", "sabp.initiatingMessage_element",
2185 FT_NONE, BASE_NONE, NULL, 0,
2186 NULL, HFILL }},
2187 { &hf_sabp_successfulOutcome,
2188 { "successfulOutcome", "sabp.successfulOutcome_element",
2189 FT_NONE, BASE_NONE, NULL, 0,
2190 NULL, HFILL }},
2191 { &hf_sabp_unsuccessfulOutcome,
2192 { "unsuccessfulOutcome", "sabp.unsuccessfulOutcome_element",
2193 FT_NONE, BASE_NONE, NULL, 0,
2194 NULL, HFILL }},
2195 { &hf_sabp_initiatingMessage_value,
2196 { "value", "sabp.value_element",
2197 FT_NONE, BASE_NONE, NULL, 0,
2198 "InitiatingMessage_value", HFILL }},
2199 { &hf_sabp_successfulOutcome_value,
2200 { "value", "sabp.value_element",
2201 FT_NONE, BASE_NONE, NULL, 0,
2202 "SuccessfulOutcome_value", HFILL }},
2203 { &hf_sabp_unsuccessfulOutcome_value,
2204 { "value", "sabp.value_element",
2205 FT_NONE, BASE_NONE, NULL, 0,
2206 "UnsuccessfulOutcome_value", HFILL }},
2208 /*--- End of included file: packet-sabp-hfarr.c ---*/
2209 #line 252 "../../asn1/sabp/packet-sabp-template.c"
2212 /* List of subtrees */
2213 static gint *ett[] = {
2214 &ett_sabp,
2215 &ett_sabp_e212,
2216 &ett_sabp_cbs_data_coding,
2217 &ett_sabp_bcast_msg,
2218 &ett_sabp_cbs_serial_number,
2219 &ett_sabp_cbs_new_serial_number,
2220 &ett_sabp_cbs_page,
2221 &ett_sabp_cbs_page_content,
2223 /*--- Included file: packet-sabp-ettarr.c ---*/
2224 #line 1 "../../asn1/sabp/packet-sabp-ettarr.c"
2225 &ett_sabp_ProtocolIE_Container,
2226 &ett_sabp_ProtocolIE_Field,
2227 &ett_sabp_ProtocolExtensionContainer,
2228 &ett_sabp_ProtocolExtensionField,
2229 &ett_sabp_Criticality_Diagnostics,
2230 &ett_sabp_CriticalityDiagnostics_IE_List,
2231 &ett_sabp_CriticalityDiagnostics_IE_List_item,
2232 &ett_sabp_MessageStructure,
2233 &ett_sabp_MessageStructure_item,
2234 &ett_sabp_Failure_List,
2235 &ett_sabp_Failure_List_Item,
2236 &ett_sabp_Number_of_Broadcasts_Completed_List,
2237 &ett_sabp_Number_of_Broadcasts_Completed_List_Item,
2238 &ett_sabp_Radio_Resource_Loading_List,
2239 &ett_sabp_Radio_Resource_Loading_List_Item,
2240 &ett_sabp_Service_Area_Identifier,
2241 &ett_sabp_Service_Areas_List,
2242 &ett_sabp_Write_Replace,
2243 &ett_sabp_Write_Replace_Complete,
2244 &ett_sabp_Write_Replace_Failure,
2245 &ett_sabp_Kill,
2246 &ett_sabp_Kill_Complete,
2247 &ett_sabp_Kill_Failure,
2248 &ett_sabp_Load_Query,
2249 &ett_sabp_Load_Query_Complete,
2250 &ett_sabp_Load_Query_Failure,
2251 &ett_sabp_Message_Status_Query,
2252 &ett_sabp_Message_Status_Query_Complete,
2253 &ett_sabp_Message_Status_Query_Failure,
2254 &ett_sabp_Reset,
2255 &ett_sabp_Reset_Complete,
2256 &ett_sabp_Reset_Failure,
2257 &ett_sabp_Restart,
2258 &ett_sabp_Failure,
2259 &ett_sabp_Error_Indication,
2260 &ett_sabp_SABP_PDU,
2261 &ett_sabp_InitiatingMessage,
2262 &ett_sabp_SuccessfulOutcome,
2263 &ett_sabp_UnsuccessfulOutcome,
2265 /*--- End of included file: packet-sabp-ettarr.c ---*/
2266 #line 265 "../../asn1/sabp/packet-sabp-template.c"
2270 /* Register protocol */
2271 proto_sabp = proto_register_protocol(PNAME, PSNAME, PFNAME);
2272 /* Register fields and subtrees */
2273 proto_register_field_array(proto_sabp, hf, array_length(hf));
2274 proto_register_subtree_array(ett, array_length(ett));
2276 /* Register dissector */
2277 new_register_dissector("sabp", dissect_sabp, proto_sabp);
2278 new_register_dissector("sabp.tcp", dissect_sabp_tcp, proto_sabp);
2280 /* Register dissector tables */
2281 sabp_ies_dissector_table = register_dissector_table("sabp.ies", "SABP-PROTOCOL-IES", FT_UINT32, BASE_DEC);
2282 sabp_extension_dissector_table = register_dissector_table("sabp.extension", "SABP-PROTOCOL-EXTENSION", FT_UINT32, BASE_DEC);
2283 sabp_proc_imsg_dissector_table = register_dissector_table("sabp.proc.imsg", "SABP-ELEMENTARY-PROCEDURE InitiatingMessage", FT_UINT32, BASE_DEC);
2284 sabp_proc_sout_dissector_table = register_dissector_table("sabp.proc.sout", "SABP-ELEMENTARY-PROCEDURE SuccessfulOutcome", FT_UINT32, BASE_DEC);
2285 sabp_proc_uout_dissector_table = register_dissector_table("sabp.proc.uout", "SABP-ELEMENTARY-PROCEDURE UnsuccessfulOutcome", FT_UINT32, BASE_DEC);
2290 /*--- proto_reg_handoff_sbap ---------------------------------------*/
2291 void
2292 proto_reg_handoff_sabp(void)
2294 dissector_handle_t sabp_handle;
2295 dissector_handle_t sabp_tcp_handle;
2297 sabp_handle = find_dissector("sabp");
2298 sabp_tcp_handle = find_dissector("sabp.tcp");
2299 dissector_add_uint("udp.port", 3452, sabp_handle);
2300 dissector_add_uint("tcp.port", 3452, sabp_tcp_handle);
2301 dissector_add_uint("sctp.ppi", SABP_PAYLOAD_PROTOCOL_ID, sabp_handle);
2304 /*--- Included file: packet-sabp-dis-tab.c ---*/
2305 #line 1 "../../asn1/sabp/packet-sabp-dis-tab.c"
2306 dissector_add_uint("sabp.ies", id_Message_Identifier, new_create_dissector_handle(dissect_Message_Identifier_PDU, proto_sabp));
2307 dissector_add_uint("sabp.ies", id_New_Serial_Number, new_create_dissector_handle(dissect_New_Serial_Number_PDU, proto_sabp));
2308 dissector_add_uint("sabp.ies", id_Old_Serial_Number, new_create_dissector_handle(dissect_Old_Serial_Number_PDU, proto_sabp));
2309 dissector_add_uint("sabp.ies", id_Service_Areas_List, new_create_dissector_handle(dissect_Service_Areas_List_PDU, proto_sabp));
2310 dissector_add_uint("sabp.ies", id_Category, new_create_dissector_handle(dissect_Category_PDU, proto_sabp));
2311 dissector_add_uint("sabp.ies", id_Repetition_Period, new_create_dissector_handle(dissect_Repetition_Period_PDU, proto_sabp));
2312 dissector_add_uint("sabp.ies", id_Number_of_Broadcasts_Requested, new_create_dissector_handle(dissect_Number_of_Broadcasts_Requested_PDU, proto_sabp));
2313 dissector_add_uint("sabp.ies", id_Data_Coding_Scheme, new_create_dissector_handle(dissect_Data_Coding_Scheme_PDU, proto_sabp));
2314 dissector_add_uint("sabp.ies", id_Broadcast_Message_Content, new_create_dissector_handle(dissect_Broadcast_Message_Content_PDU, proto_sabp));
2315 dissector_add_uint("sabp.ies", id_Number_of_Broadcasts_Completed_List, new_create_dissector_handle(dissect_Number_of_Broadcasts_Completed_List_PDU, proto_sabp));
2316 dissector_add_uint("sabp.ies", id_Criticality_Diagnostics, new_create_dissector_handle(dissect_Criticality_Diagnostics_PDU, proto_sabp));
2317 dissector_add_uint("sabp.ies", id_Failure_List, new_create_dissector_handle(dissect_Failure_List_PDU, proto_sabp));
2318 dissector_add_uint("sabp.ies", id_Radio_Resource_Loading_List, new_create_dissector_handle(dissect_Radio_Resource_Loading_List_PDU, proto_sabp));
2319 dissector_add_uint("sabp.ies", id_Recovery_Indication, new_create_dissector_handle(dissect_Recovery_Indication_PDU, proto_sabp));
2320 dissector_add_uint("sabp.ies", id_Serial_Number, new_create_dissector_handle(dissect_Serial_Number_PDU, proto_sabp));
2321 dissector_add_uint("sabp.ies", id_Cause, new_create_dissector_handle(dissect_Cause_PDU, proto_sabp));
2322 dissector_add_uint("sabp.extension", id_MessageStructure, new_create_dissector_handle(dissect_MessageStructure_PDU, proto_sabp));
2323 dissector_add_uint("sabp.extension", id_TypeOfError, new_create_dissector_handle(dissect_TypeOfError_PDU, proto_sabp));
2324 dissector_add_uint("sabp.extension", id_Paging_ETWS_Indicator, new_create_dissector_handle(dissect_Paging_ETWS_Indicator_PDU, proto_sabp));
2325 dissector_add_uint("sabp.extension", id_Warning_Type, new_create_dissector_handle(dissect_Warning_Type_PDU, proto_sabp));
2326 dissector_add_uint("sabp.extension", id_WarningSecurityInfo, new_create_dissector_handle(dissect_WarningSecurityInfo_PDU, proto_sabp));
2327 dissector_add_uint("sabp.extension", id_Broadcast_Message_Content_Validity_Indicator, new_create_dissector_handle(dissect_Broadcast_Message_Content_Validity_Indicator_PDU, proto_sabp));
2328 dissector_add_uint("sabp.proc.imsg", id_Write_Replace, new_create_dissector_handle(dissect_Write_Replace_PDU, proto_sabp));
2329 dissector_add_uint("sabp.proc.sout", id_Write_Replace, new_create_dissector_handle(dissect_Write_Replace_Complete_PDU, proto_sabp));
2330 dissector_add_uint("sabp.proc.uout", id_Write_Replace, new_create_dissector_handle(dissect_Write_Replace_Failure_PDU, proto_sabp));
2331 dissector_add_uint("sabp.proc.imsg", id_Kill, new_create_dissector_handle(dissect_Kill_PDU, proto_sabp));
2332 dissector_add_uint("sabp.proc.sout", id_Kill, new_create_dissector_handle(dissect_Kill_Complete_PDU, proto_sabp));
2333 dissector_add_uint("sabp.proc.uout", id_Kill, new_create_dissector_handle(dissect_Kill_Failure_PDU, proto_sabp));
2334 dissector_add_uint("sabp.proc.imsg", id_Load_Status_Enquiry, new_create_dissector_handle(dissect_Load_Query_PDU, proto_sabp));
2335 dissector_add_uint("sabp.proc.sout", id_Load_Status_Enquiry, new_create_dissector_handle(dissect_Load_Query_Complete_PDU, proto_sabp));
2336 dissector_add_uint("sabp.proc.uout", id_Load_Status_Enquiry, new_create_dissector_handle(dissect_Load_Query_Failure_PDU, proto_sabp));
2337 dissector_add_uint("sabp.proc.imsg", id_Message_Status_Query, new_create_dissector_handle(dissect_Message_Status_Query_PDU, proto_sabp));
2338 dissector_add_uint("sabp.proc.sout", id_Message_Status_Query, new_create_dissector_handle(dissect_Message_Status_Query_Complete_PDU, proto_sabp));
2339 dissector_add_uint("sabp.proc.uout", id_Message_Status_Query, new_create_dissector_handle(dissect_Message_Status_Query_Failure_PDU, proto_sabp));
2340 dissector_add_uint("sabp.proc.imsg", id_Reset, new_create_dissector_handle(dissect_Reset_PDU, proto_sabp));
2341 dissector_add_uint("sabp.proc.sout", id_Reset, new_create_dissector_handle(dissect_Reset_Complete_PDU, proto_sabp));
2342 dissector_add_uint("sabp.proc.uout", id_Reset, new_create_dissector_handle(dissect_Reset_Failure_PDU, proto_sabp));
2343 dissector_add_uint("sabp.proc.imsg", id_Restart_Indication, new_create_dissector_handle(dissect_Restart_PDU, proto_sabp));
2344 dissector_add_uint("sabp.proc.imsg", id_Failure_Indication, new_create_dissector_handle(dissect_Failure_PDU, proto_sabp));
2345 dissector_add_uint("sabp.proc.imsg", id_Error_Indication, new_create_dissector_handle(dissect_Error_Indication_PDU, proto_sabp));
2348 /*--- End of included file: packet-sabp-dis-tab.c ---*/
2349 #line 302 "../../asn1/sabp/packet-sabp-template.c"