1 /* Do not modify this file. */
2 /* It is created automatically by the ASN.1 to Wireshark dissector compiler */
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"
10 * Routines for UTRAN Iu-BC Interface: Service Area Broadcast Protocol (SBAP) packet dissection
11 * Copyright 2007, Tomas Kukosa <tomas.kukosa@siemens.com>
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)
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"
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 {
67 id_Load_Status_Enquiry = 2,
68 id_Message_Status_Query = 3,
69 id_Restart_Indication = 4,
71 id_Failure_Indication = 6,
72 id_Error_Indication = 7
75 typedef enum _ProtocolIE_ID_enum {
76 id_Broadcast_Message_Content = 0,
79 id_Criticality_Diagnostics = 3,
80 id_Data_Coding_Scheme = 4,
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,
94 id_Paging_ETWS_Indicator = 18,
96 id_WarningSecurityInfo = 20,
97 id_Broadcast_Message_Content_Validity_Indicator = 21
100 /*--- End of included file: packet-sabp-val.h ---*/
101 #line 50 "../../asn1/sabp/packet-sabp-template.c"
103 /* Initialize the protocol and registered fields */
104 static int proto_sabp = -1;
106 static int hf_sabp_no_of_pages = -1;
108 /*--- Included file: packet-sabp-hf.c ---*/
109 #line 1 "../../asn1/sabp/packet-sabp-hf.c"
110 static int hf_sabp_Broadcast_Message_Content_PDU = -1; /* Broadcast_Message_Content */
111 static int hf_sabp_Broadcast_Message_Content_Validity_Indicator_PDU = -1; /* Broadcast_Message_Content_Validity_Indicator */
112 static int hf_sabp_Category_PDU = -1; /* Category */
113 static int hf_sabp_Cause_PDU = -1; /* Cause */
114 static int hf_sabp_Criticality_Diagnostics_PDU = -1; /* Criticality_Diagnostics */
115 static int hf_sabp_MessageStructure_PDU = -1; /* MessageStructure */
116 static int hf_sabp_Data_Coding_Scheme_PDU = -1; /* Data_Coding_Scheme */
117 static int hf_sabp_Failure_List_PDU = -1; /* Failure_List */
118 static int hf_sabp_Message_Identifier_PDU = -1; /* Message_Identifier */
119 static int hf_sabp_New_Serial_Number_PDU = -1; /* New_Serial_Number */
120 static int hf_sabp_Number_of_Broadcasts_Completed_List_PDU = -1; /* Number_of_Broadcasts_Completed_List */
121 static int hf_sabp_Number_of_Broadcasts_Requested_PDU = -1; /* Number_of_Broadcasts_Requested */
122 static int hf_sabp_Old_Serial_Number_PDU = -1; /* Old_Serial_Number */
123 static int hf_sabp_Paging_ETWS_Indicator_PDU = -1; /* Paging_ETWS_Indicator */
124 static int hf_sabp_Radio_Resource_Loading_List_PDU = -1; /* Radio_Resource_Loading_List */
125 static int hf_sabp_Recovery_Indication_PDU = -1; /* Recovery_Indication */
126 static int hf_sabp_Repetition_Period_PDU = -1; /* Repetition_Period */
127 static int hf_sabp_Serial_Number_PDU = -1; /* Serial_Number */
128 static int hf_sabp_Service_Areas_List_PDU = -1; /* Service_Areas_List */
129 static int hf_sabp_TypeOfError_PDU = -1; /* TypeOfError */
130 static int hf_sabp_WarningSecurityInfo_PDU = -1; /* WarningSecurityInfo */
131 static int hf_sabp_Warning_Type_PDU = -1; /* Warning_Type */
132 static int hf_sabp_Write_Replace_PDU = -1; /* Write_Replace */
133 static int hf_sabp_Write_Replace_Complete_PDU = -1; /* Write_Replace_Complete */
134 static int hf_sabp_Write_Replace_Failure_PDU = -1; /* Write_Replace_Failure */
135 static int hf_sabp_Kill_PDU = -1; /* Kill */
136 static int hf_sabp_Kill_Complete_PDU = -1; /* Kill_Complete */
137 static int hf_sabp_Kill_Failure_PDU = -1; /* Kill_Failure */
138 static int hf_sabp_Load_Query_PDU = -1; /* Load_Query */
139 static int hf_sabp_Load_Query_Complete_PDU = -1; /* Load_Query_Complete */
140 static int hf_sabp_Load_Query_Failure_PDU = -1; /* Load_Query_Failure */
141 static int hf_sabp_Message_Status_Query_PDU = -1; /* Message_Status_Query */
142 static int hf_sabp_Message_Status_Query_Complete_PDU = -1; /* Message_Status_Query_Complete */
143 static int hf_sabp_Message_Status_Query_Failure_PDU = -1; /* Message_Status_Query_Failure */
144 static int hf_sabp_Reset_PDU = -1; /* Reset */
145 static int hf_sabp_Reset_Complete_PDU = -1; /* Reset_Complete */
146 static int hf_sabp_Reset_Failure_PDU = -1; /* Reset_Failure */
147 static int hf_sabp_Restart_PDU = -1; /* Restart */
148 static int hf_sabp_Failure_PDU = -1; /* Failure */
149 static int hf_sabp_Error_Indication_PDU = -1; /* Error_Indication */
150 static int hf_sabp_SABP_PDU_PDU = -1; /* SABP_PDU */
151 static int hf_sabp_ProtocolIE_Container_item = -1; /* ProtocolIE_Field */
152 static int hf_sabp_id = -1; /* ProtocolIE_ID */
153 static int hf_sabp_criticality = -1; /* Criticality */
154 static int hf_sabp_protocolIE_Field_value = -1; /* ProtocolIE_Field_value */
155 static int hf_sabp_ProtocolExtensionContainer_item = -1; /* ProtocolExtensionField */
156 static int hf_sabp_ext_id = -1; /* ProtocolExtensionID */
157 static int hf_sabp_extensionValue = -1; /* T_extensionValue */
158 static int hf_sabp_procedureCode = -1; /* ProcedureCode */
159 static int hf_sabp_triggeringMessage = -1; /* TriggeringMessage */
160 static int hf_sabp_procedureCriticality = -1; /* Criticality */
161 static int hf_sabp_iEsCriticalityDiagnostics = -1; /* CriticalityDiagnostics_IE_List */
162 static int hf_sabp_iE_Extensions = -1; /* ProtocolExtensionContainer */
163 static int hf_sabp_CriticalityDiagnostics_IE_List_item = -1; /* CriticalityDiagnostics_IE_List_item */
164 static int hf_sabp_iECriticality = -1; /* Criticality */
165 static int hf_sabp_iE_ID = -1; /* ProtocolIE_ID */
166 static int hf_sabp_repetitionNumber = -1; /* RepetitionNumber0 */
167 static int hf_sabp_MessageStructure_item = -1; /* MessageStructure_item */
168 static int hf_sabp_repetitionNumber1 = -1; /* RepetitionNumber1 */
169 static int hf_sabp_Failure_List_item = -1; /* Failure_List_Item */
170 static int hf_sabp_service_area_identifier = -1; /* Service_Area_Identifier */
171 static int hf_sabp_cause = -1; /* Cause */
172 static int hf_sabp_Number_of_Broadcasts_Completed_List_item = -1; /* Number_of_Broadcasts_Completed_List_Item */
173 static int hf_sabp_number_of_broadcasts_completed = -1; /* INTEGER_0_65535 */
174 static int hf_sabp_number_of_broadcasts_completed_info = -1; /* Number_Of_Broadcasts_Completed_Info */
175 static int hf_sabp_Radio_Resource_Loading_List_item = -1; /* Radio_Resource_Loading_List_Item */
176 static int hf_sabp_available_bandwidth = -1; /* Available_Bandwidth */
177 static int hf_sabp_pLMNidentity = -1; /* T_pLMNidentity */
178 static int hf_sabp_lac = -1; /* OCTET_STRING_SIZE_2 */
179 static int hf_sabp_sac = -1; /* OCTET_STRING_SIZE_2 */
180 static int hf_sabp_Service_Areas_List_item = -1; /* Service_Area_Identifier */
181 static int hf_sabp_protocolIEs = -1; /* ProtocolIE_Container */
182 static int hf_sabp_protocolExtensions = -1; /* ProtocolExtensionContainer */
183 static int hf_sabp_initiatingMessage = -1; /* InitiatingMessage */
184 static int hf_sabp_successfulOutcome = -1; /* SuccessfulOutcome */
185 static int hf_sabp_unsuccessfulOutcome = -1; /* UnsuccessfulOutcome */
186 static int hf_sabp_initiatingMessage_value = -1; /* InitiatingMessage_value */
187 static int hf_sabp_successfulOutcome_value = -1; /* SuccessfulOutcome_value */
188 static int hf_sabp_unsuccessfulOutcome_value = -1; /* UnsuccessfulOutcome_value */
190 /*--- End of included file: packet-sabp-hf.c ---*/
191 #line 56 "../../asn1/sabp/packet-sabp-template.c"
193 /* Initialize the subtree pointers */
194 static int ett_sabp = -1;
195 static int ett_sabp_e212 = -1;
196 static int ett_sabp_cbs_data_coding = -1;
197 static int ett_sabp_bcast_msg = -1;
198 static int ett_sabp_cbs_serial_number = -1;
199 static int ett_sabp_cbs_new_serial_number = -1;
202 /*--- Included file: packet-sabp-ett.c ---*/
203 #line 1 "../../asn1/sabp/packet-sabp-ett.c"
204 static gint ett_sabp_ProtocolIE_Container = -1;
205 static gint ett_sabp_ProtocolIE_Field = -1;
206 static gint ett_sabp_ProtocolExtensionContainer = -1;
207 static gint ett_sabp_ProtocolExtensionField = -1;
208 static gint ett_sabp_Criticality_Diagnostics = -1;
209 static gint ett_sabp_CriticalityDiagnostics_IE_List = -1;
210 static gint ett_sabp_CriticalityDiagnostics_IE_List_item = -1;
211 static gint ett_sabp_MessageStructure = -1;
212 static gint ett_sabp_MessageStructure_item = -1;
213 static gint ett_sabp_Failure_List = -1;
214 static gint ett_sabp_Failure_List_Item = -1;
215 static gint ett_sabp_Number_of_Broadcasts_Completed_List = -1;
216 static gint ett_sabp_Number_of_Broadcasts_Completed_List_Item = -1;
217 static gint ett_sabp_Radio_Resource_Loading_List = -1;
218 static gint ett_sabp_Radio_Resource_Loading_List_Item = -1;
219 static gint ett_sabp_Service_Area_Identifier = -1;
220 static gint ett_sabp_Service_Areas_List = -1;
221 static gint ett_sabp_Write_Replace = -1;
222 static gint ett_sabp_Write_Replace_Complete = -1;
223 static gint ett_sabp_Write_Replace_Failure = -1;
224 static gint ett_sabp_Kill = -1;
225 static gint ett_sabp_Kill_Complete = -1;
226 static gint ett_sabp_Kill_Failure = -1;
227 static gint ett_sabp_Load_Query = -1;
228 static gint ett_sabp_Load_Query_Complete = -1;
229 static gint ett_sabp_Load_Query_Failure = -1;
230 static gint ett_sabp_Message_Status_Query = -1;
231 static gint ett_sabp_Message_Status_Query_Complete = -1;
232 static gint ett_sabp_Message_Status_Query_Failure = -1;
233 static gint ett_sabp_Reset = -1;
234 static gint ett_sabp_Reset_Complete = -1;
235 static gint ett_sabp_Reset_Failure = -1;
236 static gint ett_sabp_Restart = -1;
237 static gint ett_sabp_Failure = -1;
238 static gint ett_sabp_Error_Indication = -1;
239 static gint ett_sabp_SABP_PDU = -1;
240 static gint ett_sabp_InitiatingMessage = -1;
241 static gint ett_sabp_SuccessfulOutcome = -1;
242 static gint ett_sabp_UnsuccessfulOutcome = -1;
244 /*--- End of included file: packet-sabp-ett.c ---*/
245 #line 66 "../../asn1/sabp/packet-sabp-template.c"
247 /* Global variables */
248 static guint32 ProcedureCode;
249 static guint32 ProtocolIE_ID;
250 static guint32 ProtocolExtensionID;
251 static guint8 sms_encoding;
253 /* desegmentation of sabp over TCP */
254 static gboolean gbl_sabp_desegment = TRUE;
256 /* Dissector tables */
257 static dissector_table_t sabp_ies_dissector_table;
258 static dissector_table_t sabp_extension_dissector_table;
259 static dissector_table_t sabp_proc_imsg_dissector_table;
260 static dissector_table_t sabp_proc_sout_dissector_table;
261 static dissector_table_t sabp_proc_uout_dissector_table;
263 static int dissect_ProtocolIEFieldValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *);
264 static int dissect_ProtocolExtensionFieldExtensionValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *);
265 static int dissect_InitiatingMessageValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *);
266 static int dissect_SuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *);
267 static int dissect_UnsuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *);
270 /*--- Included file: packet-sabp-fn.c ---*/
271 #line 1 "../../asn1/sabp/packet-sabp-fn.c"
273 static const value_string sabp_Criticality_vals[] = {
282 dissect_sabp_Criticality(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
283 offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
284 3, NULL, FALSE, 0, NULL);
290 static const value_string sabp_ProcedureCode_vals[] = {
291 { id_Write_Replace, "id-Write-Replace" },
292 { id_Kill, "id-Kill" },
293 { id_Load_Status_Enquiry, "id-Load-Status-Enquiry" },
294 { id_Message_Status_Query, "id-Message-Status-Query" },
295 { id_Restart_Indication, "id-Restart-Indication" },
296 { id_Reset, "id-Reset" },
297 { id_Failure_Indication, "id-Failure-Indication" },
298 { id_Error_Indication, "id-Error-Indication" },
302 static value_string_ext sabp_ProcedureCode_vals_ext = VALUE_STRING_EXT_INIT(sabp_ProcedureCode_vals);
306 dissect_sabp_ProcedureCode(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
307 offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
308 0U, 255U, &ProcedureCode, FALSE);
310 #line 59 "../../asn1/sabp/sabp.cnf"
311 col_add_fstr(actx->pinfo->cinfo, COL_INFO, "%s ",
312 val_to_str_ext(ProcedureCode, &sabp_ProcedureCode_vals_ext,
321 dissect_sabp_ProtocolExtensionID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
322 offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
323 0U, 65535U, &ProtocolExtensionID, FALSE);
329 static const value_string sabp_ProtocolIE_ID_vals[] = {
330 { id_Broadcast_Message_Content, "id-Broadcast-Message-Content" },
331 { id_Category, "id-Category" },
332 { id_Cause, "id-Cause" },
333 { id_Criticality_Diagnostics, "id-Criticality-Diagnostics" },
334 { id_Data_Coding_Scheme, "id-Data-Coding-Scheme" },
335 { id_Failure_List, "id-Failure-List" },
336 { id_Message_Identifier, "id-Message-Identifier" },
337 { id_New_Serial_Number, "id-New-Serial-Number" },
338 { id_Number_of_Broadcasts_Completed_List, "id-Number-of-Broadcasts-Completed-List" },
339 { id_Number_of_Broadcasts_Requested, "id-Number-of-Broadcasts-Requested" },
340 { id_Old_Serial_Number, "id-Old-Serial-Number" },
341 { id_Radio_Resource_Loading_List, "id-Radio-Resource-Loading-List" },
342 { id_Recovery_Indication, "id-Recovery-Indication" },
343 { id_Repetition_Period, "id-Repetition-Period" },
344 { id_Serial_Number, "id-Serial-Number" },
345 { id_Service_Areas_List, "id-Service-Areas-List" },
346 { id_MessageStructure, "id-MessageStructure" },
347 { id_TypeOfError, "id-TypeOfError" },
348 { id_Paging_ETWS_Indicator, "id-Paging-ETWS-Indicator" },
349 { id_Warning_Type, "id-Warning-Type" },
350 { id_WarningSecurityInfo, "id-WarningSecurityInfo" },
351 { id_Broadcast_Message_Content_Validity_Indicator, "id-Broadcast-Message-Content-Validity-Indicator" },
355 static value_string_ext sabp_ProtocolIE_ID_vals_ext = VALUE_STRING_EXT_INIT(sabp_ProtocolIE_ID_vals);
359 dissect_sabp_ProtocolIE_ID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
360 offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
361 0U, 65535U, &ProtocolIE_ID, FALSE);
363 #line 46 "../../asn1/sabp/sabp.cnf"
365 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)"));
372 static const value_string sabp_TriggeringMessage_vals[] = {
373 { 0, "initiating-message" },
374 { 1, "successful-outcome" },
375 { 2, "unsuccessful-outcome" },
382 dissect_sabp_TriggeringMessage(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
383 offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
384 4, NULL, FALSE, 0, NULL);
392 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_) {
393 offset = dissect_per_open_type_pdu_new(tvb, offset, actx, tree, hf_index, dissect_ProtocolIEFieldValue);
399 static const per_sequence_t ProtocolIE_Field_sequence[] = {
400 { &hf_sabp_id , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_ID },
401 { &hf_sabp_criticality , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_Criticality },
402 { &hf_sabp_protocolIE_Field_value, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Field_value },
407 dissect_sabp_ProtocolIE_Field(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
408 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
409 ett_sabp_ProtocolIE_Field, ProtocolIE_Field_sequence);
415 static const per_sequence_t ProtocolIE_Container_sequence_of[1] = {
416 { &hf_sabp_ProtocolIE_Container_item, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Field },
420 dissect_sabp_ProtocolIE_Container(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
421 offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
422 ett_sabp_ProtocolIE_Container, ProtocolIE_Container_sequence_of,
423 0, maxProtocolIEs, FALSE);
431 dissect_sabp_T_extensionValue(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
432 offset = dissect_per_open_type_pdu_new(tvb, offset, actx, tree, hf_index, dissect_ProtocolExtensionFieldExtensionValue);
438 static const per_sequence_t ProtocolExtensionField_sequence[] = {
439 { &hf_sabp_ext_id , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolExtensionID },
440 { &hf_sabp_criticality , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_Criticality },
441 { &hf_sabp_extensionValue , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_T_extensionValue },
446 dissect_sabp_ProtocolExtensionField(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
447 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
448 ett_sabp_ProtocolExtensionField, ProtocolExtensionField_sequence);
454 static const per_sequence_t ProtocolExtensionContainer_sequence_of[1] = {
455 { &hf_sabp_ProtocolExtensionContainer_item, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolExtensionField },
459 dissect_sabp_ProtocolExtensionContainer(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
460 offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
461 ett_sabp_ProtocolExtensionContainer, ProtocolExtensionContainer_sequence_of,
462 1, maxProtocolExtensions, FALSE);
470 dissect_sabp_Available_Bandwidth(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
471 offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
472 0U, 20480U, NULL, FALSE);
480 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_) {
481 #line 212 "../../asn1/sabp/sabp.cnf"
482 tvbuff_t *parameter_tvb=NULL;
484 offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index,
485 1, 9968, FALSE, ¶meter_tvb);
489 dissect_umts_cell_broadcast_message(parameter_tvb, actx->pinfo, proto_tree_get_root(tree));
496 static const value_string sabp_Broadcast_Message_Content_Validity_Indicator_vals[] = {
497 { 0, "broadcast-Message-Content-not-valid" },
503 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_) {
504 offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
505 1, NULL, TRUE, 0, NULL);
511 static const value_string sabp_Category_vals[] = {
512 { 0, "high-priority" },
513 { 1, "background-priority" },
514 { 2, "normal-priority" },
515 { 3, "default-priority" },
521 dissect_sabp_Category(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
522 offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
523 4, NULL, TRUE, 0, NULL);
529 static const value_string sabp_Cause_vals[] = {
530 { 0, "parameter-not-recognised" },
531 { 1, "parameter-value-invalid" },
532 { 2, "valid-CN-message-not-identified" },
533 { 3, "service-area-identity-not-valid" },
534 { 4, "unrecognised-message" },
535 { 5, "missing-mandatory-element" },
536 { 6, "rNC-capacity-exceeded" },
537 { 7, "rNC-memory-exceeded" },
538 { 8, "service-area-broadcast-not-supported" },
539 { 9, "service-area-broadcast-not-operational" },
540 { 10, "message-reference-already-used" },
541 { 11, "unspecifed-error" },
542 { 12, "transfer-syntax-error" },
543 { 13, "semantic-error" },
544 { 14, "message-not-compatible-with-receiver-state" },
545 { 15, "abstract-syntax-error-reject" },
546 { 16, "abstract-syntax-error-ignore-and-notify" },
547 { 17, "abstract-syntax-error-falsely-constructed-message" },
551 static value_string_ext sabp_Cause_vals_ext = VALUE_STRING_EXT_INIT(sabp_Cause_vals);
555 dissect_sabp_Cause(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
556 offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
557 0U, 255U, NULL, FALSE);
565 dissect_sabp_RepetitionNumber0(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
566 offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
567 0U, 255U, NULL, FALSE);
573 static const per_sequence_t CriticalityDiagnostics_IE_List_item_sequence[] = {
574 { &hf_sabp_iECriticality , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_Criticality },
575 { &hf_sabp_iE_ID , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_ID },
576 { &hf_sabp_repetitionNumber, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_RepetitionNumber0 },
577 { &hf_sabp_iE_Extensions , ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
582 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_) {
583 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
584 ett_sabp_CriticalityDiagnostics_IE_List_item, CriticalityDiagnostics_IE_List_item_sequence);
590 static const per_sequence_t CriticalityDiagnostics_IE_List_sequence_of[1] = {
591 { &hf_sabp_CriticalityDiagnostics_IE_List_item, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_CriticalityDiagnostics_IE_List_item },
595 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_) {
596 offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
597 ett_sabp_CriticalityDiagnostics_IE_List, CriticalityDiagnostics_IE_List_sequence_of,
598 1, maxNrOfErrors, FALSE);
604 static const per_sequence_t Criticality_Diagnostics_sequence[] = {
605 { &hf_sabp_procedureCode , ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProcedureCode },
606 { &hf_sabp_triggeringMessage, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_TriggeringMessage },
607 { &hf_sabp_procedureCriticality, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_Criticality },
608 { &hf_sabp_iEsCriticalityDiagnostics, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_CriticalityDiagnostics_IE_List },
609 { &hf_sabp_iE_Extensions , ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
614 dissect_sabp_Criticality_Diagnostics(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
615 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
616 ett_sabp_Criticality_Diagnostics, Criticality_Diagnostics_sequence);
624 dissect_sabp_RepetitionNumber1(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
625 offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
626 1U, 256U, NULL, FALSE);
632 static const per_sequence_t MessageStructure_item_sequence[] = {
633 { &hf_sabp_iE_ID , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_ID },
634 { &hf_sabp_repetitionNumber1, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_RepetitionNumber1 },
635 { &hf_sabp_iE_Extensions , ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
640 dissect_sabp_MessageStructure_item(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
641 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
642 ett_sabp_MessageStructure_item, MessageStructure_item_sequence);
648 static const per_sequence_t MessageStructure_sequence_of[1] = {
649 { &hf_sabp_MessageStructure_item, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_MessageStructure_item },
653 dissect_sabp_MessageStructure(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
654 offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
655 ett_sabp_MessageStructure, MessageStructure_sequence_of,
656 1, maxNrOfLevels, FALSE);
664 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_) {
665 #line 173 "../../asn1/sabp/sabp.cnf"
666 tvbuff_t *parameter_tvb=NULL;
669 offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index,
670 8, 8, FALSE, ¶meter_tvb);
675 subtree = proto_item_add_subtree(actx->created_item, ett_sabp_cbs_data_coding);
676 sms_encoding = dissect_cbs_data_coding_scheme(parameter_tvb, actx->pinfo, subtree, 0);
686 dissect_sabp_T_pLMNidentity(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
687 #line 161 "../../asn1/sabp/sabp.cnf"
688 tvbuff_t *parameter_tvb=NULL;
691 offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
692 3, 3, FALSE, ¶meter_tvb);
696 subtree = proto_item_add_subtree(actx->created_item, ett_sabp_e212);
697 dissect_e212_mcc_mnc(parameter_tvb, actx->pinfo, subtree, 0, FALSE);
707 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_) {
708 offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
715 static const per_sequence_t Service_Area_Identifier_sequence[] = {
716 { &hf_sabp_pLMNidentity , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_T_pLMNidentity },
717 { &hf_sabp_lac , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_OCTET_STRING_SIZE_2 },
718 { &hf_sabp_sac , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_OCTET_STRING_SIZE_2 },
723 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_) {
724 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
725 ett_sabp_Service_Area_Identifier, Service_Area_Identifier_sequence);
731 static const per_sequence_t Failure_List_Item_sequence[] = {
732 { &hf_sabp_service_area_identifier, ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_Service_Area_Identifier },
733 { &hf_sabp_cause , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_Cause },
734 { &hf_sabp_iE_Extensions , ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
739 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_) {
740 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
741 ett_sabp_Failure_List_Item, Failure_List_Item_sequence);
747 static const per_sequence_t Failure_List_sequence_of[1] = {
748 { &hf_sabp_Failure_List_item, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_Failure_List_Item },
752 dissect_sabp_Failure_List(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
753 offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
754 ett_sabp_Failure_List, Failure_List_sequence_of,
755 1, maxnoofSAI, FALSE);
763 dissect_sabp_Message_Identifier(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
764 #line 184 "../../asn1/sabp/sabp.cnf"
765 tvbuff_t *parameter_tvb=NULL;
767 offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index,
768 16, 16, FALSE, ¶meter_tvb);
772 dissect_cbs_message_identifier(parameter_tvb, tree, 0);
782 dissect_sabp_Serial_Number(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
783 #line 192 "../../asn1/sabp/sabp.cnf"
784 tvbuff_t *parameter_tvb=NULL;
787 offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index,
788 16, 16, FALSE, ¶meter_tvb);
792 subtree = proto_item_add_subtree(actx->created_item, ett_sabp_cbs_serial_number);
793 dissect_cbs_serial_number(parameter_tvb, subtree, 0);
803 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_) {
804 #line 202 "../../asn1/sabp/sabp.cnf"
805 tvbuff_t *parameter_tvb=NULL;
808 offset = dissect_sabp_Serial_Number(tvb, offset, actx, tree, hf_index);
812 subtree = proto_item_add_subtree(actx->created_item, ett_sabp_cbs_new_serial_number);
813 dissect_cbs_serial_number(parameter_tvb, subtree, 0);
823 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_) {
824 offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
825 0U, 65535U, NULL, FALSE);
831 static const value_string sabp_Number_Of_Broadcasts_Completed_Info_vals[] = {
839 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_) {
840 offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
841 2, NULL, TRUE, 0, NULL);
847 static const per_sequence_t Number_of_Broadcasts_Completed_List_Item_sequence[] = {
848 { &hf_sabp_service_area_identifier, ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_Service_Area_Identifier },
849 { &hf_sabp_number_of_broadcasts_completed, ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_INTEGER_0_65535 },
850 { &hf_sabp_number_of_broadcasts_completed_info, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_Number_Of_Broadcasts_Completed_Info },
851 { &hf_sabp_iE_Extensions , ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
856 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_) {
857 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
858 ett_sabp_Number_of_Broadcasts_Completed_List_Item, Number_of_Broadcasts_Completed_List_Item_sequence);
864 static const per_sequence_t Number_of_Broadcasts_Completed_List_sequence_of[1] = {
865 { &hf_sabp_Number_of_Broadcasts_Completed_List_item, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_Number_of_Broadcasts_Completed_List_Item },
869 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_) {
870 offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
871 ett_sabp_Number_of_Broadcasts_Completed_List, Number_of_Broadcasts_Completed_List_sequence_of,
872 1, maxnoofSAI, FALSE);
878 static const value_string sabp_Number_of_Broadcasts_Requested_vals[] = {
879 { 0, "broadcast-indefinitely" },
885 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_) {
886 offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
887 0U, 65535U, NULL, FALSE);
895 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_) {
896 offset = dissect_sabp_Serial_Number(tvb, offset, actx, tree, hf_index);
902 static const value_string sabp_Paging_ETWS_Indicator_vals[] = {
909 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_) {
910 offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
911 1, NULL, TRUE, 0, NULL);
917 static const per_sequence_t Radio_Resource_Loading_List_Item_sequence[] = {
918 { &hf_sabp_service_area_identifier, ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_Service_Area_Identifier },
919 { &hf_sabp_available_bandwidth, ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_Available_Bandwidth },
920 { &hf_sabp_iE_Extensions , ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
925 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_) {
926 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
927 ett_sabp_Radio_Resource_Loading_List_Item, Radio_Resource_Loading_List_Item_sequence);
933 static const per_sequence_t Radio_Resource_Loading_List_sequence_of[1] = {
934 { &hf_sabp_Radio_Resource_Loading_List_item, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_Radio_Resource_Loading_List_Item },
938 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_) {
939 offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
940 ett_sabp_Radio_Resource_Loading_List, Radio_Resource_Loading_List_sequence_of,
941 1, maxnoofSAI, FALSE);
947 static const value_string sabp_Recovery_Indication_vals[] = {
949 { 1, "data-available" },
955 dissect_sabp_Recovery_Indication(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
956 offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
957 2, NULL, FALSE, 0, NULL);
965 dissect_sabp_Repetition_Period(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
966 offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
967 1U, 4096U, NULL, FALSE);
973 static const per_sequence_t Service_Areas_List_sequence_of[1] = {
974 { &hf_sabp_Service_Areas_List_item, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_Service_Area_Identifier },
978 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_) {
979 offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
980 ett_sabp_Service_Areas_List, Service_Areas_List_sequence_of,
981 1, maxnoofSAI, FALSE);
987 static const value_string sabp_TypeOfError_vals[] = {
988 { 0, "not-understood" },
995 dissect_sabp_TypeOfError(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
996 offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
997 2, NULL, TRUE, 0, NULL);
1005 dissect_sabp_WarningSecurityInfo(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1006 offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
1007 50, 50, FALSE, NULL);
1015 dissect_sabp_Warning_Type(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1016 offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
1023 static const per_sequence_t Write_Replace_sequence[] = {
1024 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1025 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1026 { NULL, 0, 0, NULL }
1030 dissect_sabp_Write_Replace(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1031 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1032 ett_sabp_Write_Replace, Write_Replace_sequence);
1038 static const per_sequence_t Write_Replace_Complete_sequence[] = {
1039 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1040 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1041 { NULL, 0, 0, NULL }
1045 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_) {
1046 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1047 ett_sabp_Write_Replace_Complete, Write_Replace_Complete_sequence);
1053 static const per_sequence_t Write_Replace_Failure_sequence[] = {
1054 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1055 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1056 { NULL, 0, 0, NULL }
1060 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_) {
1061 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1062 ett_sabp_Write_Replace_Failure, Write_Replace_Failure_sequence);
1068 static const per_sequence_t Kill_sequence[] = {
1069 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1070 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1071 { NULL, 0, 0, NULL }
1075 dissect_sabp_Kill(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1076 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1077 ett_sabp_Kill, Kill_sequence);
1083 static const per_sequence_t Kill_Complete_sequence[] = {
1084 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1085 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1086 { NULL, 0, 0, NULL }
1090 dissect_sabp_Kill_Complete(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1091 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1092 ett_sabp_Kill_Complete, Kill_Complete_sequence);
1098 static const per_sequence_t Kill_Failure_sequence[] = {
1099 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1100 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1101 { NULL, 0, 0, NULL }
1105 dissect_sabp_Kill_Failure(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1106 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1107 ett_sabp_Kill_Failure, Kill_Failure_sequence);
1113 static const per_sequence_t Load_Query_sequence[] = {
1114 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1115 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1116 { NULL, 0, 0, NULL }
1120 dissect_sabp_Load_Query(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1121 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1122 ett_sabp_Load_Query, Load_Query_sequence);
1128 static const per_sequence_t Load_Query_Complete_sequence[] = {
1129 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1130 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1131 { NULL, 0, 0, NULL }
1135 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_) {
1136 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1137 ett_sabp_Load_Query_Complete, Load_Query_Complete_sequence);
1143 static const per_sequence_t Load_Query_Failure_sequence[] = {
1144 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1145 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1146 { NULL, 0, 0, NULL }
1150 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_) {
1151 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1152 ett_sabp_Load_Query_Failure, Load_Query_Failure_sequence);
1158 static const per_sequence_t Message_Status_Query_sequence[] = {
1159 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1160 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1161 { NULL, 0, 0, NULL }
1165 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_) {
1166 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1167 ett_sabp_Message_Status_Query, Message_Status_Query_sequence);
1173 static const per_sequence_t Message_Status_Query_Complete_sequence[] = {
1174 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1175 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1176 { NULL, 0, 0, NULL }
1180 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_) {
1181 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1182 ett_sabp_Message_Status_Query_Complete, Message_Status_Query_Complete_sequence);
1188 static const per_sequence_t Message_Status_Query_Failure_sequence[] = {
1189 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1190 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1191 { NULL, 0, 0, NULL }
1195 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_) {
1196 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1197 ett_sabp_Message_Status_Query_Failure, Message_Status_Query_Failure_sequence);
1203 static const per_sequence_t Reset_sequence[] = {
1204 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1205 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1206 { NULL, 0, 0, NULL }
1210 dissect_sabp_Reset(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1211 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1212 ett_sabp_Reset, Reset_sequence);
1218 static const per_sequence_t Reset_Complete_sequence[] = {
1219 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1220 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1221 { NULL, 0, 0, NULL }
1225 dissect_sabp_Reset_Complete(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1226 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1227 ett_sabp_Reset_Complete, Reset_Complete_sequence);
1233 static const per_sequence_t Reset_Failure_sequence[] = {
1234 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1235 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1236 { NULL, 0, 0, NULL }
1240 dissect_sabp_Reset_Failure(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1241 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1242 ett_sabp_Reset_Failure, Reset_Failure_sequence);
1248 static const per_sequence_t Restart_sequence[] = {
1249 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1250 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1251 { NULL, 0, 0, NULL }
1255 dissect_sabp_Restart(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1256 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1257 ett_sabp_Restart, Restart_sequence);
1263 static const per_sequence_t Failure_sequence[] = {
1264 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1265 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1266 { NULL, 0, 0, NULL }
1270 dissect_sabp_Failure(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1271 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1272 ett_sabp_Failure, Failure_sequence);
1278 static const per_sequence_t Error_Indication_sequence[] = {
1279 { &hf_sabp_protocolIEs , ASN1_EXTENSION_ROOT , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolIE_Container },
1280 { &hf_sabp_protocolExtensions, ASN1_EXTENSION_ROOT , ASN1_OPTIONAL , dissect_sabp_ProtocolExtensionContainer },
1281 { NULL, 0, 0, NULL }
1285 dissect_sabp_Error_Indication(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1286 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1287 ett_sabp_Error_Indication, Error_Indication_sequence);
1295 dissect_sabp_InitiatingMessage_value(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1296 offset = dissect_per_open_type_pdu_new(tvb, offset, actx, tree, hf_index, dissect_InitiatingMessageValue);
1302 static const per_sequence_t InitiatingMessage_sequence[] = {
1303 { &hf_sabp_procedureCode , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_ProcedureCode },
1304 { &hf_sabp_criticality , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_Criticality },
1305 { &hf_sabp_initiatingMessage_value, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_InitiatingMessage_value },
1306 { NULL, 0, 0, NULL }
1310 dissect_sabp_InitiatingMessage(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1311 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1312 ett_sabp_InitiatingMessage, InitiatingMessage_sequence);
1320 dissect_sabp_SuccessfulOutcome_value(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1321 offset = dissect_per_open_type_pdu_new(tvb, offset, actx, tree, hf_index, dissect_SuccessfulOutcomeValue);
1327 static const per_sequence_t SuccessfulOutcome_sequence[] = {
1328 { &hf_sabp_procedureCode , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_ProcedureCode },
1329 { &hf_sabp_criticality , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_Criticality },
1330 { &hf_sabp_successfulOutcome_value, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_SuccessfulOutcome_value },
1331 { NULL, 0, 0, NULL }
1335 dissect_sabp_SuccessfulOutcome(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1336 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1337 ett_sabp_SuccessfulOutcome, SuccessfulOutcome_sequence);
1345 dissect_sabp_UnsuccessfulOutcome_value(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1346 offset = dissect_per_open_type_pdu_new(tvb, offset, actx, tree, hf_index, dissect_UnsuccessfulOutcomeValue);
1352 static const per_sequence_t UnsuccessfulOutcome_sequence[] = {
1353 { &hf_sabp_procedureCode , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_ProcedureCode },
1354 { &hf_sabp_criticality , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_Criticality },
1355 { &hf_sabp_unsuccessfulOutcome_value, ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_sabp_UnsuccessfulOutcome_value },
1356 { NULL, 0, 0, NULL }
1360 dissect_sabp_UnsuccessfulOutcome(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1361 offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
1362 ett_sabp_UnsuccessfulOutcome, UnsuccessfulOutcome_sequence);
1368 static const value_string sabp_SABP_PDU_vals[] = {
1369 { 0, "initiatingMessage" },
1370 { 1, "successfulOutcome" },
1371 { 2, "unsuccessfulOutcome" },
1375 static const per_choice_t SABP_PDU_choice[] = {
1376 { 0, &hf_sabp_initiatingMessage, ASN1_EXTENSION_ROOT , dissect_sabp_InitiatingMessage },
1377 { 1, &hf_sabp_successfulOutcome, ASN1_EXTENSION_ROOT , dissect_sabp_SuccessfulOutcome },
1378 { 2, &hf_sabp_unsuccessfulOutcome, ASN1_EXTENSION_ROOT , dissect_sabp_UnsuccessfulOutcome },
1379 { 0, NULL, 0, NULL }
1383 dissect_sabp_SABP_PDU(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
1384 offset = dissect_per_choice(tvb, offset, actx, tree, hf_index,
1385 ett_sabp_SABP_PDU, SABP_PDU_choice,
1393 static int dissect_Broadcast_Message_Content_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1395 asn1_ctx_t asn1_ctx;
1396 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1397 offset = dissect_sabp_Broadcast_Message_Content(tvb, offset, &asn1_ctx, tree, hf_sabp_Broadcast_Message_Content_PDU);
1398 offset += 7; offset >>= 3;
1401 static int dissect_Broadcast_Message_Content_Validity_Indicator_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1403 asn1_ctx_t asn1_ctx;
1404 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1405 offset = dissect_sabp_Broadcast_Message_Content_Validity_Indicator(tvb, offset, &asn1_ctx, tree, hf_sabp_Broadcast_Message_Content_Validity_Indicator_PDU);
1406 offset += 7; offset >>= 3;
1409 static int dissect_Category_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1411 asn1_ctx_t asn1_ctx;
1412 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1413 offset = dissect_sabp_Category(tvb, offset, &asn1_ctx, tree, hf_sabp_Category_PDU);
1414 offset += 7; offset >>= 3;
1417 static int dissect_Cause_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1419 asn1_ctx_t asn1_ctx;
1420 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1421 offset = dissect_sabp_Cause(tvb, offset, &asn1_ctx, tree, hf_sabp_Cause_PDU);
1422 offset += 7; offset >>= 3;
1425 static int dissect_Criticality_Diagnostics_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1427 asn1_ctx_t asn1_ctx;
1428 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1429 offset = dissect_sabp_Criticality_Diagnostics(tvb, offset, &asn1_ctx, tree, hf_sabp_Criticality_Diagnostics_PDU);
1430 offset += 7; offset >>= 3;
1433 static int dissect_MessageStructure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1435 asn1_ctx_t asn1_ctx;
1436 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1437 offset = dissect_sabp_MessageStructure(tvb, offset, &asn1_ctx, tree, hf_sabp_MessageStructure_PDU);
1438 offset += 7; offset >>= 3;
1441 static int dissect_Data_Coding_Scheme_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1443 asn1_ctx_t asn1_ctx;
1444 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1445 offset = dissect_sabp_Data_Coding_Scheme(tvb, offset, &asn1_ctx, tree, hf_sabp_Data_Coding_Scheme_PDU);
1446 offset += 7; offset >>= 3;
1449 static int dissect_Failure_List_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1451 asn1_ctx_t asn1_ctx;
1452 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1453 offset = dissect_sabp_Failure_List(tvb, offset, &asn1_ctx, tree, hf_sabp_Failure_List_PDU);
1454 offset += 7; offset >>= 3;
1457 static int dissect_Message_Identifier_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1459 asn1_ctx_t asn1_ctx;
1460 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1461 offset = dissect_sabp_Message_Identifier(tvb, offset, &asn1_ctx, tree, hf_sabp_Message_Identifier_PDU);
1462 offset += 7; offset >>= 3;
1465 static int dissect_New_Serial_Number_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1467 asn1_ctx_t asn1_ctx;
1468 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1469 offset = dissect_sabp_New_Serial_Number(tvb, offset, &asn1_ctx, tree, hf_sabp_New_Serial_Number_PDU);
1470 offset += 7; offset >>= 3;
1473 static int dissect_Number_of_Broadcasts_Completed_List_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1475 asn1_ctx_t asn1_ctx;
1476 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1477 offset = dissect_sabp_Number_of_Broadcasts_Completed_List(tvb, offset, &asn1_ctx, tree, hf_sabp_Number_of_Broadcasts_Completed_List_PDU);
1478 offset += 7; offset >>= 3;
1481 static int dissect_Number_of_Broadcasts_Requested_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1483 asn1_ctx_t asn1_ctx;
1484 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1485 offset = dissect_sabp_Number_of_Broadcasts_Requested(tvb, offset, &asn1_ctx, tree, hf_sabp_Number_of_Broadcasts_Requested_PDU);
1486 offset += 7; offset >>= 3;
1489 static int dissect_Old_Serial_Number_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1491 asn1_ctx_t asn1_ctx;
1492 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1493 offset = dissect_sabp_Old_Serial_Number(tvb, offset, &asn1_ctx, tree, hf_sabp_Old_Serial_Number_PDU);
1494 offset += 7; offset >>= 3;
1497 static int dissect_Paging_ETWS_Indicator_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1499 asn1_ctx_t asn1_ctx;
1500 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1501 offset = dissect_sabp_Paging_ETWS_Indicator(tvb, offset, &asn1_ctx, tree, hf_sabp_Paging_ETWS_Indicator_PDU);
1502 offset += 7; offset >>= 3;
1505 static int dissect_Radio_Resource_Loading_List_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1507 asn1_ctx_t asn1_ctx;
1508 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1509 offset = dissect_sabp_Radio_Resource_Loading_List(tvb, offset, &asn1_ctx, tree, hf_sabp_Radio_Resource_Loading_List_PDU);
1510 offset += 7; offset >>= 3;
1513 static int dissect_Recovery_Indication_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1515 asn1_ctx_t asn1_ctx;
1516 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1517 offset = dissect_sabp_Recovery_Indication(tvb, offset, &asn1_ctx, tree, hf_sabp_Recovery_Indication_PDU);
1518 offset += 7; offset >>= 3;
1521 static int dissect_Repetition_Period_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1523 asn1_ctx_t asn1_ctx;
1524 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1525 offset = dissect_sabp_Repetition_Period(tvb, offset, &asn1_ctx, tree, hf_sabp_Repetition_Period_PDU);
1526 offset += 7; offset >>= 3;
1529 static int dissect_Serial_Number_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1531 asn1_ctx_t asn1_ctx;
1532 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1533 offset = dissect_sabp_Serial_Number(tvb, offset, &asn1_ctx, tree, hf_sabp_Serial_Number_PDU);
1534 offset += 7; offset >>= 3;
1537 static int dissect_Service_Areas_List_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1539 asn1_ctx_t asn1_ctx;
1540 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1541 offset = dissect_sabp_Service_Areas_List(tvb, offset, &asn1_ctx, tree, hf_sabp_Service_Areas_List_PDU);
1542 offset += 7; offset >>= 3;
1545 static int dissect_TypeOfError_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1547 asn1_ctx_t asn1_ctx;
1548 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1549 offset = dissect_sabp_TypeOfError(tvb, offset, &asn1_ctx, tree, hf_sabp_TypeOfError_PDU);
1550 offset += 7; offset >>= 3;
1553 static int dissect_WarningSecurityInfo_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1555 asn1_ctx_t asn1_ctx;
1556 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1557 offset = dissect_sabp_WarningSecurityInfo(tvb, offset, &asn1_ctx, tree, hf_sabp_WarningSecurityInfo_PDU);
1558 offset += 7; offset >>= 3;
1561 static int dissect_Warning_Type_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1563 asn1_ctx_t asn1_ctx;
1564 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1565 offset = dissect_sabp_Warning_Type(tvb, offset, &asn1_ctx, tree, hf_sabp_Warning_Type_PDU);
1566 offset += 7; offset >>= 3;
1569 static int dissect_Write_Replace_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1571 asn1_ctx_t asn1_ctx;
1572 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1573 offset = dissect_sabp_Write_Replace(tvb, offset, &asn1_ctx, tree, hf_sabp_Write_Replace_PDU);
1574 offset += 7; offset >>= 3;
1577 static int dissect_Write_Replace_Complete_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1579 asn1_ctx_t asn1_ctx;
1580 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1581 offset = dissect_sabp_Write_Replace_Complete(tvb, offset, &asn1_ctx, tree, hf_sabp_Write_Replace_Complete_PDU);
1582 offset += 7; offset >>= 3;
1585 static int dissect_Write_Replace_Failure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1587 asn1_ctx_t asn1_ctx;
1588 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1589 offset = dissect_sabp_Write_Replace_Failure(tvb, offset, &asn1_ctx, tree, hf_sabp_Write_Replace_Failure_PDU);
1590 offset += 7; offset >>= 3;
1593 static int dissect_Kill_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1595 asn1_ctx_t asn1_ctx;
1596 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1597 offset = dissect_sabp_Kill(tvb, offset, &asn1_ctx, tree, hf_sabp_Kill_PDU);
1598 offset += 7; offset >>= 3;
1601 static int dissect_Kill_Complete_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1603 asn1_ctx_t asn1_ctx;
1604 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1605 offset = dissect_sabp_Kill_Complete(tvb, offset, &asn1_ctx, tree, hf_sabp_Kill_Complete_PDU);
1606 offset += 7; offset >>= 3;
1609 static int dissect_Kill_Failure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1611 asn1_ctx_t asn1_ctx;
1612 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1613 offset = dissect_sabp_Kill_Failure(tvb, offset, &asn1_ctx, tree, hf_sabp_Kill_Failure_PDU);
1614 offset += 7; offset >>= 3;
1617 static int dissect_Load_Query_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1619 asn1_ctx_t asn1_ctx;
1620 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1621 offset = dissect_sabp_Load_Query(tvb, offset, &asn1_ctx, tree, hf_sabp_Load_Query_PDU);
1622 offset += 7; offset >>= 3;
1625 static int dissect_Load_Query_Complete_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1627 asn1_ctx_t asn1_ctx;
1628 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1629 offset = dissect_sabp_Load_Query_Complete(tvb, offset, &asn1_ctx, tree, hf_sabp_Load_Query_Complete_PDU);
1630 offset += 7; offset >>= 3;
1633 static int dissect_Load_Query_Failure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1635 asn1_ctx_t asn1_ctx;
1636 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1637 offset = dissect_sabp_Load_Query_Failure(tvb, offset, &asn1_ctx, tree, hf_sabp_Load_Query_Failure_PDU);
1638 offset += 7; offset >>= 3;
1641 static int dissect_Message_Status_Query_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1643 asn1_ctx_t asn1_ctx;
1644 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1645 offset = dissect_sabp_Message_Status_Query(tvb, offset, &asn1_ctx, tree, hf_sabp_Message_Status_Query_PDU);
1646 offset += 7; offset >>= 3;
1649 static int dissect_Message_Status_Query_Complete_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1651 asn1_ctx_t asn1_ctx;
1652 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1653 offset = dissect_sabp_Message_Status_Query_Complete(tvb, offset, &asn1_ctx, tree, hf_sabp_Message_Status_Query_Complete_PDU);
1654 offset += 7; offset >>= 3;
1657 static int dissect_Message_Status_Query_Failure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1659 asn1_ctx_t asn1_ctx;
1660 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1661 offset = dissect_sabp_Message_Status_Query_Failure(tvb, offset, &asn1_ctx, tree, hf_sabp_Message_Status_Query_Failure_PDU);
1662 offset += 7; offset >>= 3;
1665 static int dissect_Reset_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1667 asn1_ctx_t asn1_ctx;
1668 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1669 offset = dissect_sabp_Reset(tvb, offset, &asn1_ctx, tree, hf_sabp_Reset_PDU);
1670 offset += 7; offset >>= 3;
1673 static int dissect_Reset_Complete_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1675 asn1_ctx_t asn1_ctx;
1676 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1677 offset = dissect_sabp_Reset_Complete(tvb, offset, &asn1_ctx, tree, hf_sabp_Reset_Complete_PDU);
1678 offset += 7; offset >>= 3;
1681 static int dissect_Reset_Failure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1683 asn1_ctx_t asn1_ctx;
1684 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1685 offset = dissect_sabp_Reset_Failure(tvb, offset, &asn1_ctx, tree, hf_sabp_Reset_Failure_PDU);
1686 offset += 7; offset >>= 3;
1689 static int dissect_Restart_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1691 asn1_ctx_t asn1_ctx;
1692 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1693 offset = dissect_sabp_Restart(tvb, offset, &asn1_ctx, tree, hf_sabp_Restart_PDU);
1694 offset += 7; offset >>= 3;
1697 static int dissect_Failure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1699 asn1_ctx_t asn1_ctx;
1700 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1701 offset = dissect_sabp_Failure(tvb, offset, &asn1_ctx, tree, hf_sabp_Failure_PDU);
1702 offset += 7; offset >>= 3;
1705 static int dissect_Error_Indication_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1707 asn1_ctx_t asn1_ctx;
1708 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1709 offset = dissect_sabp_Error_Indication(tvb, offset, &asn1_ctx, tree, hf_sabp_Error_Indication_PDU);
1710 offset += 7; offset >>= 3;
1713 static int dissect_SABP_PDU_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1715 asn1_ctx_t asn1_ctx;
1716 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1717 offset = dissect_sabp_SABP_PDU(tvb, offset, &asn1_ctx, tree, hf_sabp_SABP_PDU_PDU);
1718 offset += 7; offset >>= 3;
1723 /*--- End of included file: packet-sabp-fn.c ---*/
1724 #line 90 "../../asn1/sabp/packet-sabp-template.c"
1726 static int dissect_ProtocolIEFieldValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
1728 return (dissector_try_uint(sabp_ies_dissector_table, ProtocolIE_ID, tvb, pinfo, tree)) ? tvb_length(tvb) : 0;
1731 static int dissect_ProtocolExtensionFieldExtensionValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
1733 return (dissector_try_uint(sabp_extension_dissector_table, ProtocolExtensionID, tvb, pinfo, tree)) ? tvb_length(tvb) : 0;
1736 static int dissect_InitiatingMessageValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
1738 return (dissector_try_uint(sabp_proc_imsg_dissector_table, ProcedureCode, tvb, pinfo, tree)) ? tvb_length(tvb) : 0;
1741 static int dissect_SuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
1743 return (dissector_try_uint(sabp_proc_sout_dissector_table, ProcedureCode, tvb, pinfo, tree)) ? tvb_length(tvb) : 0;
1746 static int dissect_UnsuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
1748 return (dissector_try_uint(sabp_proc_uout_dissector_table, ProcedureCode, tvb, pinfo, tree)) ? tvb_length(tvb) : 0;
1752 get_sabp_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset)
1754 guint32 type_length;
1756 asn1_ctx_t asn1_ctx;
1757 asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1759 /* Length should be in the 3:d octet */
1760 offset = offset + 3;
1762 bit_offset = offset<<3;
1763 /* Get the length of the sabp packet. offset in bits */
1764 dissect_per_length_determinant(tvb, bit_offset, &asn1_ctx, NULL, -1, &type_length);
1767 * Return the length of the PDU
1768 * which is 3 + the length of the length, we only care about length up to 16K
1769 * ("n" less than 128) a single octet containing "n" with bit 8 set to zero;
1770 * ("n" less than 16K) two octets containing "n" with bit 8 of the first octet set to 1 and bit 7 set to zero;
1772 if (type_length < 128)
1773 return type_length+4;
1775 return type_length+5;
1780 dissect_sabp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
1782 proto_item *sabp_item = NULL;
1783 proto_tree *sabp_tree = NULL;
1785 /* make entry in the Protocol column on summary display */
1786 col_set_str(pinfo->cinfo, COL_PROTOCOL, PSNAME);
1788 /* create the sbap protocol tree */
1789 sabp_item = proto_tree_add_item(tree, proto_sabp, tvb, 0, -1, ENC_NA);
1790 sabp_tree = proto_item_add_subtree(sabp_item, ett_sabp);
1792 dissect_SABP_PDU_PDU(tvb, pinfo, sabp_tree, NULL);
1795 /* Note a little bit of a hack assumes length max takes two bytes and that the length starts at byte 4 */
1797 dissect_sabp_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
1799 tcp_dissect_pdus(tvb, pinfo, tree, gbl_sabp_desegment, 5,
1800 get_sabp_pdu_len, dissect_sabp);
1803 /*--- proto_register_sbap -------------------------------------------*/
1804 void proto_register_sabp(void) {
1806 /* List of fields */
1808 static hf_register_info hf[] = {
1809 { &hf_sabp_no_of_pages,
1810 { "Number-of-Pages", "sabp.no_of_pages",
1811 FT_UINT8, BASE_DEC, NULL, 0,
1815 /*--- Included file: packet-sabp-hfarr.c ---*/
1816 #line 1 "../../asn1/sabp/packet-sabp-hfarr.c"
1817 { &hf_sabp_Broadcast_Message_Content_PDU,
1818 { "Broadcast-Message-Content", "sabp.Broadcast_Message_Content",
1819 FT_BYTES, BASE_NONE, NULL, 0,
1821 { &hf_sabp_Broadcast_Message_Content_Validity_Indicator_PDU,
1822 { "Broadcast-Message-Content-Validity-Indicator", "sabp.Broadcast_Message_Content_Validity_Indicator",
1823 FT_UINT32, BASE_DEC, VALS(sabp_Broadcast_Message_Content_Validity_Indicator_vals), 0,
1825 { &hf_sabp_Category_PDU,
1826 { "Category", "sabp.Category",
1827 FT_UINT32, BASE_DEC, VALS(sabp_Category_vals), 0,
1829 { &hf_sabp_Cause_PDU,
1830 { "Cause", "sabp.Cause",
1831 FT_UINT32, BASE_DEC|BASE_EXT_STRING, &sabp_Cause_vals_ext, 0,
1833 { &hf_sabp_Criticality_Diagnostics_PDU,
1834 { "Criticality-Diagnostics", "sabp.Criticality_Diagnostics",
1835 FT_NONE, BASE_NONE, NULL, 0,
1837 { &hf_sabp_MessageStructure_PDU,
1838 { "MessageStructure", "sabp.MessageStructure",
1839 FT_UINT32, BASE_DEC, NULL, 0,
1841 { &hf_sabp_Data_Coding_Scheme_PDU,
1842 { "Data-Coding-Scheme", "sabp.Data_Coding_Scheme",
1843 FT_BYTES, BASE_NONE, NULL, 0,
1845 { &hf_sabp_Failure_List_PDU,
1846 { "Failure-List", "sabp.Failure_List",
1847 FT_UINT32, BASE_DEC, NULL, 0,
1849 { &hf_sabp_Message_Identifier_PDU,
1850 { "Message-Identifier", "sabp.Message_Identifier",
1851 FT_BYTES, BASE_NONE, NULL, 0,
1853 { &hf_sabp_New_Serial_Number_PDU,
1854 { "New-Serial-Number", "sabp.New_Serial_Number",
1855 FT_BYTES, BASE_NONE, NULL, 0,
1857 { &hf_sabp_Number_of_Broadcasts_Completed_List_PDU,
1858 { "Number-of-Broadcasts-Completed-List", "sabp.Number_of_Broadcasts_Completed_List",
1859 FT_UINT32, BASE_DEC, NULL, 0,
1861 { &hf_sabp_Number_of_Broadcasts_Requested_PDU,
1862 { "Number-of-Broadcasts-Requested", "sabp.Number_of_Broadcasts_Requested",
1863 FT_UINT32, BASE_DEC, VALS(sabp_Number_of_Broadcasts_Requested_vals), 0,
1865 { &hf_sabp_Old_Serial_Number_PDU,
1866 { "Old-Serial-Number", "sabp.Old_Serial_Number",
1867 FT_BYTES, BASE_NONE, NULL, 0,
1869 { &hf_sabp_Paging_ETWS_Indicator_PDU,
1870 { "Paging-ETWS-Indicator", "sabp.Paging_ETWS_Indicator",
1871 FT_UINT32, BASE_DEC, VALS(sabp_Paging_ETWS_Indicator_vals), 0,
1873 { &hf_sabp_Radio_Resource_Loading_List_PDU,
1874 { "Radio-Resource-Loading-List", "sabp.Radio_Resource_Loading_List",
1875 FT_UINT32, BASE_DEC, NULL, 0,
1877 { &hf_sabp_Recovery_Indication_PDU,
1878 { "Recovery-Indication", "sabp.Recovery_Indication",
1879 FT_UINT32, BASE_DEC, VALS(sabp_Recovery_Indication_vals), 0,
1881 { &hf_sabp_Repetition_Period_PDU,
1882 { "Repetition-Period", "sabp.Repetition_Period",
1883 FT_UINT32, BASE_DEC, NULL, 0,
1885 { &hf_sabp_Serial_Number_PDU,
1886 { "Serial-Number", "sabp.Serial_Number",
1887 FT_BYTES, BASE_NONE, NULL, 0,
1889 { &hf_sabp_Service_Areas_List_PDU,
1890 { "Service-Areas-List", "sabp.Service_Areas_List",
1891 FT_UINT32, BASE_DEC, NULL, 0,
1893 { &hf_sabp_TypeOfError_PDU,
1894 { "TypeOfError", "sabp.TypeOfError",
1895 FT_UINT32, BASE_DEC, VALS(sabp_TypeOfError_vals), 0,
1897 { &hf_sabp_WarningSecurityInfo_PDU,
1898 { "WarningSecurityInfo", "sabp.WarningSecurityInfo",
1899 FT_BYTES, BASE_NONE, NULL, 0,
1901 { &hf_sabp_Warning_Type_PDU,
1902 { "Warning-Type", "sabp.Warning_Type",
1903 FT_BYTES, BASE_NONE, NULL, 0,
1905 { &hf_sabp_Write_Replace_PDU,
1906 { "Write-Replace", "sabp.Write_Replace",
1907 FT_NONE, BASE_NONE, NULL, 0,
1909 { &hf_sabp_Write_Replace_Complete_PDU,
1910 { "Write-Replace-Complete", "sabp.Write_Replace_Complete",
1911 FT_NONE, BASE_NONE, NULL, 0,
1913 { &hf_sabp_Write_Replace_Failure_PDU,
1914 { "Write-Replace-Failure", "sabp.Write_Replace_Failure",
1915 FT_NONE, BASE_NONE, NULL, 0,
1917 { &hf_sabp_Kill_PDU,
1918 { "Kill", "sabp.Kill",
1919 FT_NONE, BASE_NONE, NULL, 0,
1921 { &hf_sabp_Kill_Complete_PDU,
1922 { "Kill-Complete", "sabp.Kill_Complete",
1923 FT_NONE, BASE_NONE, NULL, 0,
1925 { &hf_sabp_Kill_Failure_PDU,
1926 { "Kill-Failure", "sabp.Kill_Failure",
1927 FT_NONE, BASE_NONE, NULL, 0,
1929 { &hf_sabp_Load_Query_PDU,
1930 { "Load-Query", "sabp.Load_Query",
1931 FT_NONE, BASE_NONE, NULL, 0,
1933 { &hf_sabp_Load_Query_Complete_PDU,
1934 { "Load-Query-Complete", "sabp.Load_Query_Complete",
1935 FT_NONE, BASE_NONE, NULL, 0,
1937 { &hf_sabp_Load_Query_Failure_PDU,
1938 { "Load-Query-Failure", "sabp.Load_Query_Failure",
1939 FT_NONE, BASE_NONE, NULL, 0,
1941 { &hf_sabp_Message_Status_Query_PDU,
1942 { "Message-Status-Query", "sabp.Message_Status_Query",
1943 FT_NONE, BASE_NONE, NULL, 0,
1945 { &hf_sabp_Message_Status_Query_Complete_PDU,
1946 { "Message-Status-Query-Complete", "sabp.Message_Status_Query_Complete",
1947 FT_NONE, BASE_NONE, NULL, 0,
1949 { &hf_sabp_Message_Status_Query_Failure_PDU,
1950 { "Message-Status-Query-Failure", "sabp.Message_Status_Query_Failure",
1951 FT_NONE, BASE_NONE, NULL, 0,
1953 { &hf_sabp_Reset_PDU,
1954 { "Reset", "sabp.Reset",
1955 FT_NONE, BASE_NONE, NULL, 0,
1957 { &hf_sabp_Reset_Complete_PDU,
1958 { "Reset-Complete", "sabp.Reset_Complete",
1959 FT_NONE, BASE_NONE, NULL, 0,
1961 { &hf_sabp_Reset_Failure_PDU,
1962 { "Reset-Failure", "sabp.Reset_Failure",
1963 FT_NONE, BASE_NONE, NULL, 0,
1965 { &hf_sabp_Restart_PDU,
1966 { "Restart", "sabp.Restart",
1967 FT_NONE, BASE_NONE, NULL, 0,
1969 { &hf_sabp_Failure_PDU,
1970 { "Failure", "sabp.Failure",
1971 FT_NONE, BASE_NONE, NULL, 0,
1973 { &hf_sabp_Error_Indication_PDU,
1974 { "Error-Indication", "sabp.Error_Indication",
1975 FT_NONE, BASE_NONE, NULL, 0,
1977 { &hf_sabp_SABP_PDU_PDU,
1978 { "SABP-PDU", "sabp.SABP_PDU",
1979 FT_UINT32, BASE_DEC, VALS(sabp_SABP_PDU_vals), 0,
1981 { &hf_sabp_ProtocolIE_Container_item,
1982 { "ProtocolIE-Field", "sabp.ProtocolIE_Field",
1983 FT_NONE, BASE_NONE, NULL, 0,
1987 FT_UINT32, BASE_DEC|BASE_EXT_STRING, &sabp_ProtocolIE_ID_vals_ext, 0,
1988 "ProtocolIE_ID", HFILL }},
1989 { &hf_sabp_criticality,
1990 { "criticality", "sabp.criticality",
1991 FT_UINT32, BASE_DEC, VALS(sabp_Criticality_vals), 0,
1993 { &hf_sabp_protocolIE_Field_value,
1994 { "value", "sabp.value",
1995 FT_NONE, BASE_NONE, NULL, 0,
1996 "ProtocolIE_Field_value", HFILL }},
1997 { &hf_sabp_ProtocolExtensionContainer_item,
1998 { "ProtocolExtensionField", "sabp.ProtocolExtensionField",
1999 FT_NONE, BASE_NONE, NULL, 0,
2003 FT_UINT32, BASE_DEC, NULL, 0,
2004 "ProtocolExtensionID", HFILL }},
2005 { &hf_sabp_extensionValue,
2006 { "extensionValue", "sabp.extensionValue",
2007 FT_NONE, BASE_NONE, NULL, 0,
2009 { &hf_sabp_procedureCode,
2010 { "procedureCode", "sabp.procedureCode",
2011 FT_UINT32, BASE_DEC|BASE_EXT_STRING, &sabp_ProcedureCode_vals_ext, 0,
2013 { &hf_sabp_triggeringMessage,
2014 { "triggeringMessage", "sabp.triggeringMessage",
2015 FT_UINT32, BASE_DEC, VALS(sabp_TriggeringMessage_vals), 0,
2017 { &hf_sabp_procedureCriticality,
2018 { "procedureCriticality", "sabp.procedureCriticality",
2019 FT_UINT32, BASE_DEC, VALS(sabp_Criticality_vals), 0,
2020 "Criticality", HFILL }},
2021 { &hf_sabp_iEsCriticalityDiagnostics,
2022 { "iEsCriticalityDiagnostics", "sabp.iEsCriticalityDiagnostics",
2023 FT_UINT32, BASE_DEC, NULL, 0,
2024 "CriticalityDiagnostics_IE_List", HFILL }},
2025 { &hf_sabp_iE_Extensions,
2026 { "iE-Extensions", "sabp.iE_Extensions",
2027 FT_UINT32, BASE_DEC, NULL, 0,
2028 "ProtocolExtensionContainer", HFILL }},
2029 { &hf_sabp_CriticalityDiagnostics_IE_List_item,
2030 { "CriticalityDiagnostics-IE-List item", "sabp.CriticalityDiagnostics_IE_List_item",
2031 FT_NONE, BASE_NONE, NULL, 0,
2033 { &hf_sabp_iECriticality,
2034 { "iECriticality", "sabp.iECriticality",
2035 FT_UINT32, BASE_DEC, VALS(sabp_Criticality_vals), 0,
2036 "Criticality", HFILL }},
2038 { "iE-ID", "sabp.iE_ID",
2039 FT_UINT32, BASE_DEC|BASE_EXT_STRING, &sabp_ProtocolIE_ID_vals_ext, 0,
2040 "ProtocolIE_ID", HFILL }},
2041 { &hf_sabp_repetitionNumber,
2042 { "repetitionNumber", "sabp.repetitionNumber",
2043 FT_UINT32, BASE_DEC, NULL, 0,
2044 "RepetitionNumber0", HFILL }},
2045 { &hf_sabp_MessageStructure_item,
2046 { "MessageStructure item", "sabp.MessageStructure_item",
2047 FT_NONE, BASE_NONE, NULL, 0,
2049 { &hf_sabp_repetitionNumber1,
2050 { "repetitionNumber", "sabp.repetitionNumber",
2051 FT_UINT32, BASE_DEC, NULL, 0,
2052 "RepetitionNumber1", HFILL }},
2053 { &hf_sabp_Failure_List_item,
2054 { "Failure-List-Item", "sabp.Failure_List_Item",
2055 FT_NONE, BASE_NONE, NULL, 0,
2057 { &hf_sabp_service_area_identifier,
2058 { "service-area-identifier", "sabp.service_area_identifier",
2059 FT_NONE, BASE_NONE, NULL, 0,
2062 { "cause", "sabp.cause",
2063 FT_UINT32, BASE_DEC|BASE_EXT_STRING, &sabp_Cause_vals_ext, 0,
2065 { &hf_sabp_Number_of_Broadcasts_Completed_List_item,
2066 { "Number-of-Broadcasts-Completed-List-Item", "sabp.Number_of_Broadcasts_Completed_List_Item",
2067 FT_NONE, BASE_NONE, NULL, 0,
2069 { &hf_sabp_number_of_broadcasts_completed,
2070 { "number-of-broadcasts-completed", "sabp.number_of_broadcasts_completed",
2071 FT_UINT32, BASE_DEC, NULL, 0,
2072 "INTEGER_0_65535", HFILL }},
2073 { &hf_sabp_number_of_broadcasts_completed_info,
2074 { "number-of-broadcasts-completed-info", "sabp.number_of_broadcasts_completed_info",
2075 FT_UINT32, BASE_DEC, VALS(sabp_Number_Of_Broadcasts_Completed_Info_vals), 0,
2077 { &hf_sabp_Radio_Resource_Loading_List_item,
2078 { "Radio-Resource-Loading-List-Item", "sabp.Radio_Resource_Loading_List_Item",
2079 FT_NONE, BASE_NONE, NULL, 0,
2081 { &hf_sabp_available_bandwidth,
2082 { "available-bandwidth", "sabp.available_bandwidth",
2083 FT_UINT32, BASE_DEC, NULL, 0,
2085 { &hf_sabp_pLMNidentity,
2086 { "pLMNidentity", "sabp.pLMNidentity",
2087 FT_BYTES, BASE_NONE, NULL, 0,
2090 { "lac", "sabp.lac",
2091 FT_BYTES, BASE_NONE, NULL, 0,
2092 "OCTET_STRING_SIZE_2", HFILL }},
2094 { "sac", "sabp.sac",
2095 FT_BYTES, BASE_NONE, NULL, 0,
2096 "OCTET_STRING_SIZE_2", HFILL }},
2097 { &hf_sabp_Service_Areas_List_item,
2098 { "Service-Area-Identifier", "sabp.Service_Area_Identifier",
2099 FT_NONE, BASE_NONE, NULL, 0,
2101 { &hf_sabp_protocolIEs,
2102 { "protocolIEs", "sabp.protocolIEs",
2103 FT_UINT32, BASE_DEC, NULL, 0,
2104 "ProtocolIE_Container", HFILL }},
2105 { &hf_sabp_protocolExtensions,
2106 { "protocolExtensions", "sabp.protocolExtensions",
2107 FT_UINT32, BASE_DEC, NULL, 0,
2108 "ProtocolExtensionContainer", HFILL }},
2109 { &hf_sabp_initiatingMessage,
2110 { "initiatingMessage", "sabp.initiatingMessage",
2111 FT_NONE, BASE_NONE, NULL, 0,
2113 { &hf_sabp_successfulOutcome,
2114 { "successfulOutcome", "sabp.successfulOutcome",
2115 FT_NONE, BASE_NONE, NULL, 0,
2117 { &hf_sabp_unsuccessfulOutcome,
2118 { "unsuccessfulOutcome", "sabp.unsuccessfulOutcome",
2119 FT_NONE, BASE_NONE, NULL, 0,
2121 { &hf_sabp_initiatingMessage_value,
2122 { "value", "sabp.value",
2123 FT_NONE, BASE_NONE, NULL, 0,
2124 "InitiatingMessage_value", HFILL }},
2125 { &hf_sabp_successfulOutcome_value,
2126 { "value", "sabp.value",
2127 FT_NONE, BASE_NONE, NULL, 0,
2128 "SuccessfulOutcome_value", HFILL }},
2129 { &hf_sabp_unsuccessfulOutcome_value,
2130 { "value", "sabp.value",
2131 FT_NONE, BASE_NONE, NULL, 0,
2132 "UnsuccessfulOutcome_value", HFILL }},
2134 /*--- End of included file: packet-sabp-hfarr.c ---*/
2135 #line 180 "../../asn1/sabp/packet-sabp-template.c"
2138 /* List of subtrees */
2139 static gint *ett[] = {
2142 &ett_sabp_cbs_data_coding,
2143 &ett_sabp_bcast_msg,
2144 &ett_sabp_cbs_serial_number,
2145 &ett_sabp_cbs_new_serial_number,
2147 /*--- Included file: packet-sabp-ettarr.c ---*/
2148 #line 1 "../../asn1/sabp/packet-sabp-ettarr.c"
2149 &ett_sabp_ProtocolIE_Container,
2150 &ett_sabp_ProtocolIE_Field,
2151 &ett_sabp_ProtocolExtensionContainer,
2152 &ett_sabp_ProtocolExtensionField,
2153 &ett_sabp_Criticality_Diagnostics,
2154 &ett_sabp_CriticalityDiagnostics_IE_List,
2155 &ett_sabp_CriticalityDiagnostics_IE_List_item,
2156 &ett_sabp_MessageStructure,
2157 &ett_sabp_MessageStructure_item,
2158 &ett_sabp_Failure_List,
2159 &ett_sabp_Failure_List_Item,
2160 &ett_sabp_Number_of_Broadcasts_Completed_List,
2161 &ett_sabp_Number_of_Broadcasts_Completed_List_Item,
2162 &ett_sabp_Radio_Resource_Loading_List,
2163 &ett_sabp_Radio_Resource_Loading_List_Item,
2164 &ett_sabp_Service_Area_Identifier,
2165 &ett_sabp_Service_Areas_List,
2166 &ett_sabp_Write_Replace,
2167 &ett_sabp_Write_Replace_Complete,
2168 &ett_sabp_Write_Replace_Failure,
2170 &ett_sabp_Kill_Complete,
2171 &ett_sabp_Kill_Failure,
2172 &ett_sabp_Load_Query,
2173 &ett_sabp_Load_Query_Complete,
2174 &ett_sabp_Load_Query_Failure,
2175 &ett_sabp_Message_Status_Query,
2176 &ett_sabp_Message_Status_Query_Complete,
2177 &ett_sabp_Message_Status_Query_Failure,
2179 &ett_sabp_Reset_Complete,
2180 &ett_sabp_Reset_Failure,
2183 &ett_sabp_Error_Indication,
2185 &ett_sabp_InitiatingMessage,
2186 &ett_sabp_SuccessfulOutcome,
2187 &ett_sabp_UnsuccessfulOutcome,
2189 /*--- End of included file: packet-sabp-ettarr.c ---*/
2190 #line 191 "../../asn1/sabp/packet-sabp-template.c"
2194 /* Register protocol */
2195 proto_sabp = proto_register_protocol(PNAME, PSNAME, PFNAME);
2196 /* Register fields and subtrees */
2197 proto_register_field_array(proto_sabp, hf, array_length(hf));
2198 proto_register_subtree_array(ett, array_length(ett));
2200 /* Register dissector */
2201 register_dissector("sabp", dissect_sabp, proto_sabp);
2202 register_dissector("sabp.tcp", dissect_sabp_tcp, proto_sabp);
2204 /* Register dissector tables */
2205 sabp_ies_dissector_table = register_dissector_table("sabp.ies", "SABP-PROTOCOL-IES", FT_UINT32, BASE_DEC);
2206 sabp_extension_dissector_table = register_dissector_table("sabp.extension", "SABP-PROTOCOL-EXTENSION", FT_UINT32, BASE_DEC);
2207 sabp_proc_imsg_dissector_table = register_dissector_table("sabp.proc.imsg", "SABP-ELEMENTARY-PROCEDURE InitiatingMessage", FT_UINT32, BASE_DEC);
2208 sabp_proc_sout_dissector_table = register_dissector_table("sabp.proc.sout", "SABP-ELEMENTARY-PROCEDURE SuccessfulOutcome", FT_UINT32, BASE_DEC);
2209 sabp_proc_uout_dissector_table = register_dissector_table("sabp.proc.uout", "SABP-ELEMENTARY-PROCEDURE UnsuccessfulOutcome", FT_UINT32, BASE_DEC);
2214 /*--- proto_reg_handoff_sbap ---------------------------------------*/
2216 proto_reg_handoff_sabp(void)
2218 dissector_handle_t sabp_handle;
2219 dissector_handle_t sabp_tcp_handle;
2221 sabp_handle = find_dissector("sabp");
2222 sabp_tcp_handle = find_dissector("sabp.tcp");
2223 dissector_add_uint("udp.port", 3452, sabp_handle);
2224 dissector_add_uint("tcp.port", 3452, sabp_tcp_handle);
2225 dissector_add_uint("sctp.ppi", SABP_PAYLOAD_PROTOCOL_ID, sabp_handle);
2228 /*--- Included file: packet-sabp-dis-tab.c ---*/
2229 #line 1 "../../asn1/sabp/packet-sabp-dis-tab.c"
2230 dissector_add_uint("sabp.ies", id_Message_Identifier, new_create_dissector_handle(dissect_Message_Identifier_PDU, proto_sabp));
2231 dissector_add_uint("sabp.ies", id_New_Serial_Number, new_create_dissector_handle(dissect_New_Serial_Number_PDU, proto_sabp));
2232 dissector_add_uint("sabp.ies", id_Old_Serial_Number, new_create_dissector_handle(dissect_Old_Serial_Number_PDU, proto_sabp));
2233 dissector_add_uint("sabp.ies", id_Service_Areas_List, new_create_dissector_handle(dissect_Service_Areas_List_PDU, proto_sabp));
2234 dissector_add_uint("sabp.ies", id_Category, new_create_dissector_handle(dissect_Category_PDU, proto_sabp));
2235 dissector_add_uint("sabp.ies", id_Repetition_Period, new_create_dissector_handle(dissect_Repetition_Period_PDU, proto_sabp));
2236 dissector_add_uint("sabp.ies", id_Number_of_Broadcasts_Requested, new_create_dissector_handle(dissect_Number_of_Broadcasts_Requested_PDU, proto_sabp));
2237 dissector_add_uint("sabp.ies", id_Data_Coding_Scheme, new_create_dissector_handle(dissect_Data_Coding_Scheme_PDU, proto_sabp));
2238 dissector_add_uint("sabp.ies", id_Broadcast_Message_Content, new_create_dissector_handle(dissect_Broadcast_Message_Content_PDU, proto_sabp));
2239 dissector_add_uint("sabp.ies", id_Number_of_Broadcasts_Completed_List, new_create_dissector_handle(dissect_Number_of_Broadcasts_Completed_List_PDU, proto_sabp));
2240 dissector_add_uint("sabp.ies", id_Criticality_Diagnostics, new_create_dissector_handle(dissect_Criticality_Diagnostics_PDU, proto_sabp));
2241 dissector_add_uint("sabp.ies", id_Failure_List, new_create_dissector_handle(dissect_Failure_List_PDU, proto_sabp));
2242 dissector_add_uint("sabp.ies", id_Radio_Resource_Loading_List, new_create_dissector_handle(dissect_Radio_Resource_Loading_List_PDU, proto_sabp));
2243 dissector_add_uint("sabp.ies", id_Recovery_Indication, new_create_dissector_handle(dissect_Recovery_Indication_PDU, proto_sabp));
2244 dissector_add_uint("sabp.ies", id_Serial_Number, new_create_dissector_handle(dissect_Serial_Number_PDU, proto_sabp));
2245 dissector_add_uint("sabp.ies", id_Cause, new_create_dissector_handle(dissect_Cause_PDU, proto_sabp));
2246 dissector_add_uint("sabp.extension", id_MessageStructure, new_create_dissector_handle(dissect_MessageStructure_PDU, proto_sabp));
2247 dissector_add_uint("sabp.extension", id_TypeOfError, new_create_dissector_handle(dissect_TypeOfError_PDU, proto_sabp));
2248 dissector_add_uint("sabp.extension", id_Paging_ETWS_Indicator, new_create_dissector_handle(dissect_Paging_ETWS_Indicator_PDU, proto_sabp));
2249 dissector_add_uint("sabp.extension", id_Warning_Type, new_create_dissector_handle(dissect_Warning_Type_PDU, proto_sabp));
2250 dissector_add_uint("sabp.extension", id_WarningSecurityInfo, new_create_dissector_handle(dissect_WarningSecurityInfo_PDU, proto_sabp));
2251 dissector_add_uint("sabp.extension", id_Broadcast_Message_Content_Validity_Indicator, new_create_dissector_handle(dissect_Broadcast_Message_Content_Validity_Indicator_PDU, proto_sabp));
2252 dissector_add_uint("sabp.proc.imsg", id_Write_Replace, new_create_dissector_handle(dissect_Write_Replace_PDU, proto_sabp));
2253 dissector_add_uint("sabp.proc.sout", id_Write_Replace, new_create_dissector_handle(dissect_Write_Replace_Complete_PDU, proto_sabp));
2254 dissector_add_uint("sabp.proc.uout", id_Write_Replace, new_create_dissector_handle(dissect_Write_Replace_Failure_PDU, proto_sabp));
2255 dissector_add_uint("sabp.proc.imsg", id_Kill, new_create_dissector_handle(dissect_Kill_PDU, proto_sabp));
2256 dissector_add_uint("sabp.proc.sout", id_Kill, new_create_dissector_handle(dissect_Kill_Complete_PDU, proto_sabp));
2257 dissector_add_uint("sabp.proc.uout", id_Kill, new_create_dissector_handle(dissect_Kill_Failure_PDU, proto_sabp));
2258 dissector_add_uint("sabp.proc.imsg", id_Load_Status_Enquiry, new_create_dissector_handle(dissect_Load_Query_PDU, proto_sabp));
2259 dissector_add_uint("sabp.proc.sout", id_Load_Status_Enquiry, new_create_dissector_handle(dissect_Load_Query_Complete_PDU, proto_sabp));
2260 dissector_add_uint("sabp.proc.uout", id_Load_Status_Enquiry, new_create_dissector_handle(dissect_Load_Query_Failure_PDU, proto_sabp));
2261 dissector_add_uint("sabp.proc.imsg", id_Message_Status_Query, new_create_dissector_handle(dissect_Message_Status_Query_PDU, proto_sabp));
2262 dissector_add_uint("sabp.proc.sout", id_Message_Status_Query, new_create_dissector_handle(dissect_Message_Status_Query_Complete_PDU, proto_sabp));
2263 dissector_add_uint("sabp.proc.uout", id_Message_Status_Query, new_create_dissector_handle(dissect_Message_Status_Query_Failure_PDU, proto_sabp));
2264 dissector_add_uint("sabp.proc.imsg", id_Reset, new_create_dissector_handle(dissect_Reset_PDU, proto_sabp));
2265 dissector_add_uint("sabp.proc.sout", id_Reset, new_create_dissector_handle(dissect_Reset_Complete_PDU, proto_sabp));
2266 dissector_add_uint("sabp.proc.uout", id_Reset, new_create_dissector_handle(dissect_Reset_Failure_PDU, proto_sabp));
2267 dissector_add_uint("sabp.proc.imsg", id_Restart_Indication, new_create_dissector_handle(dissect_Restart_PDU, proto_sabp));
2268 dissector_add_uint("sabp.proc.imsg", id_Failure_Indication, new_create_dissector_handle(dissect_Failure_PDU, proto_sabp));
2269 dissector_add_uint("sabp.proc.imsg", id_Error_Indication, new_create_dissector_handle(dissect_Error_Indication_PDU, proto_sabp));
2272 /*--- End of included file: packet-sabp-dis-tab.c ---*/
2273 #line 228 "../../asn1/sabp/packet-sabp-template.c"