224ec23a05cdcc83a988c33825e2489bd363ed50
[metze/wireshark/wip.git] / epan / dissectors / packet-sabp.c
1 /* Do not modify this file.                                                   */
2 /* It is created 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 */
5
6 /* Input file: packet-sabp-template.c */
7
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>
12  *
13  * $Id$
14  *
15  * Wireshark - Network traffic analyzer
16  * By Gerald Combs <gerald@wireshark.org>
17  * Copyright 1998 Gerald Combs
18  *
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.
23  *
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.
28  *
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.
32  *
33  * Ref: 3GPP TS 25.419 version  V9.0.0 (2009-12)
34  */
35
36 #include "config.h"
37
38 #include <glib.h>
39 #include <epan/packet.h>
40
41 #include <epan/asn1.h>
42
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"
50
51 #define PNAME  "UTRAN IuBC interface SABP signaling"
52 #define PSNAME "SABP"
53 #define PFNAME "sabp"
54
55
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
63
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;
74
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;
99
100 /*--- End of included file: packet-sabp-val.h ---*/
101 #line 50 "../../asn1/sabp/packet-sabp-template.c"
102
103 /* Initialize the protocol and registered fields */
104 static int proto_sabp = -1;
105
106 static int hf_sabp_no_of_pages = -1;
107
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 */
189
190 /*--- End of included file: packet-sabp-hf.c ---*/
191 #line 56 "../../asn1/sabp/packet-sabp-template.c"
192
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;
200
201
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;
243
244 /*--- End of included file: packet-sabp-ett.c ---*/
245 #line 66 "../../asn1/sabp/packet-sabp-template.c"
246
247 /* Global variables */
248 static guint32 ProcedureCode;
249 static guint32 ProtocolIE_ID;
250 static guint32 ProtocolExtensionID;
251 static guint8 sms_encoding;
252
253 /* desegmentation of sabp over TCP */
254 static gboolean gbl_sabp_desegment = TRUE;
255
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;
262
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 *);
268
269
270 /*--- Included file: packet-sabp-fn.c ---*/
271 #line 1 "../../asn1/sabp/packet-sabp-fn.c"
272
273 static const value_string sabp_Criticality_vals[] = {
274   {   0, "reject" },
275   {   1, "ignore" },
276   {   2, "notify" },
277   { 0, NULL }
278 };
279
280
281 static int
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);
285
286   return offset;
287 }
288
289
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" },
299   { 0, NULL }
300 };
301
302 static value_string_ext sabp_ProcedureCode_vals_ext = VALUE_STRING_EXT_INIT(sabp_ProcedureCode_vals);
303
304
305 static int
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);
309
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,
313                               "unknown message"));
314
315   return offset;
316 }
317
318
319
320 static int
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);
324
325   return offset;
326 }
327
328
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" },
352   { 0, NULL }
353 };
354
355 static value_string_ext sabp_ProtocolIE_ID_vals_ext = VALUE_STRING_EXT_INIT(sabp_ProtocolIE_ID_vals);
356
357
358 static int
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);
362
363 #line 46 "../../asn1/sabp/sabp.cnf"
364   if (tree) {
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)"));
366   }
367
368   return offset;
369 }
370
371
372 static const value_string sabp_TriggeringMessage_vals[] = {
373   {   0, "initiating-message" },
374   {   1, "successful-outcome" },
375   {   2, "unsuccessful-outcome" },
376   {   3, "outcome" },
377   { 0, NULL }
378 };
379
380
381 static int
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);
385
386   return offset;
387 }
388
389
390
391 static int
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);
394
395   return offset;
396 }
397
398
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 },
403   { NULL, 0, 0, NULL }
404 };
405
406 static int
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);
410
411   return offset;
412 }
413
414
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 },
417 };
418
419 static int
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);
424
425   return offset;
426 }
427
428
429
430 static int
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);
433
434   return offset;
435 }
436
437
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 },
442   { NULL, 0, 0, NULL }
443 };
444
445 static int
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);
449
450   return offset;
451 }
452
453
454 static const per_sequence_t ProtocolExtensionContainer_sequence_of[1] = {
455   { &hf_sabp_ProtocolExtensionContainer_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_sabp_ProtocolExtensionField },
456 };
457
458 static int
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);
463
464   return offset;
465 }
466
467
468
469 static int
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);
473
474   return offset;
475 }
476
477
478
479 static int
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;
483
484   offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index,
485                                      1, 9968, FALSE, &parameter_tvb);
486
487         if (!parameter_tvb)
488                 return offset;
489         dissect_umts_cell_broadcast_message(parameter_tvb, actx->pinfo, proto_tree_get_root(tree));
490
491
492   return offset;
493 }
494
495
496 static const value_string sabp_Broadcast_Message_Content_Validity_Indicator_vals[] = {
497   {   0, "broadcast-Message-Content-not-valid" },
498   { 0, NULL }
499 };
500
501
502 static int
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);
506
507   return offset;
508 }
509
510
511 static const value_string sabp_Category_vals[] = {
512   {   0, "high-priority" },
513   {   1, "background-priority" },
514   {   2, "normal-priority" },
515   {   3, "default-priority" },
516   { 0, NULL }
517 };
518
519
520 static int
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);
524
525   return offset;
526 }
527
528
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" },
548   { 0, NULL }
549 };
550
551 static value_string_ext sabp_Cause_vals_ext = VALUE_STRING_EXT_INIT(sabp_Cause_vals);
552
553
554 static int
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);
558
559   return offset;
560 }
561
562
563
564 static int
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);
568
569   return offset;
570 }
571
572
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 },
578   { NULL, 0, 0, NULL }
579 };
580
581 static int
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);
585
586   return offset;
587 }
588
589
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 },
592 };
593
594 static int
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);
599
600   return offset;
601 }
602
603
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 },
610   { NULL, 0, 0, NULL }
611 };
612
613 static int
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);
617
618   return offset;
619 }
620
621
622
623 static int
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);
627
628   return offset;
629 }
630
631
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 },
636   { NULL, 0, 0, NULL }
637 };
638
639 static int
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);
643
644   return offset;
645 }
646
647
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 },
650 };
651
652 static int
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);
657
658   return offset;
659 }
660
661
662
663 static int
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;
667  proto_tree *subtree;
668
669   offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index,
670                                      8, 8, FALSE, &parameter_tvb);
671
672
673         if (!parameter_tvb)
674                 return offset;
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);
677
678
679
680   return offset;
681 }
682
683
684
685 static int
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;
689  proto_tree *subtree;
690
691   offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
692                                        3, 3, FALSE, &parameter_tvb);
693
694          if (!parameter_tvb)
695                 return offset;
696         subtree = proto_item_add_subtree(actx->created_item, ett_sabp_e212);
697         dissect_e212_mcc_mnc(parameter_tvb, actx->pinfo, subtree, 0, FALSE);
698
699
700
701   return offset;
702 }
703
704
705
706 static int
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,
709                                        2, 2, FALSE, NULL);
710
711   return offset;
712 }
713
714
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 },
719   { NULL, 0, 0, NULL }
720 };
721
722 static int
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);
726
727   return offset;
728 }
729
730
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 },
735   { NULL, 0, 0, NULL }
736 };
737
738 static int
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);
742
743   return offset;
744 }
745
746
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 },
749 };
750
751 static int
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);
756
757   return offset;
758 }
759
760
761
762 static int
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;
766
767   offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index,
768                                      16, 16, FALSE, &parameter_tvb);
769
770         if (!parameter_tvb)
771                 return offset;
772         dissect_cbs_message_identifier(parameter_tvb, tree, 0);
773
774
775
776   return offset;
777 }
778
779
780
781 static int
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;
785  proto_tree *subtree;
786
787   offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index,
788                                      16, 16, FALSE, &parameter_tvb);
789
790         if (!parameter_tvb)
791                 return offset;
792         subtree = proto_item_add_subtree(actx->created_item, ett_sabp_cbs_serial_number);
793         dissect_cbs_serial_number(parameter_tvb, subtree, 0);
794
795
796
797   return offset;
798 }
799
800
801
802 static int
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;
806  proto_tree *subtree;
807
808   offset = dissect_sabp_Serial_Number(tvb, offset, actx, tree, hf_index);
809
810         if (!parameter_tvb)
811                 return offset;
812         subtree = proto_item_add_subtree(actx->created_item, ett_sabp_cbs_new_serial_number);
813         dissect_cbs_serial_number(parameter_tvb, subtree, 0);
814
815
816
817   return offset;
818 }
819
820
821
822 static int
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);
826
827   return offset;
828 }
829
830
831 static const value_string sabp_Number_Of_Broadcasts_Completed_Info_vals[] = {
832   {   0, "overflow" },
833   {   1, "unknown" },
834   { 0, NULL }
835 };
836
837
838 static int
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);
842
843   return offset;
844 }
845
846
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 },
852   { NULL, 0, 0, NULL }
853 };
854
855 static int
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);
859
860   return offset;
861 }
862
863
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 },
866 };
867
868 static int
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);
873
874   return offset;
875 }
876
877
878 static const value_string sabp_Number_of_Broadcasts_Requested_vals[] = {
879   {   0, "broadcast-indefinitely" },
880   { 0, NULL }
881 };
882
883
884 static int
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);
888
889   return offset;
890 }
891
892
893
894 static int
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);
897
898   return offset;
899 }
900
901
902 static const value_string sabp_Paging_ETWS_Indicator_vals[] = {
903   {   0, "paging" },
904   { 0, NULL }
905 };
906
907
908 static int
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);
912
913   return offset;
914 }
915
916
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 },
921   { NULL, 0, 0, NULL }
922 };
923
924 static int
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);
928
929   return offset;
930 }
931
932
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 },
935 };
936
937 static int
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);
942
943   return offset;
944 }
945
946
947 static const value_string sabp_Recovery_Indication_vals[] = {
948   {   0, "data-lost" },
949   {   1, "data-available" },
950   { 0, NULL }
951 };
952
953
954 static int
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);
958
959   return offset;
960 }
961
962
963
964 static int
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);
968
969   return offset;
970 }
971
972
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 },
975 };
976
977 static int
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);
982
983   return offset;
984 }
985
986
987 static const value_string sabp_TypeOfError_vals[] = {
988   {   0, "not-understood" },
989   {   1, "missing" },
990   { 0, NULL }
991 };
992
993
994 static int
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);
998
999   return offset;
1000 }
1001
1002
1003
1004 static int
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);
1008
1009   return offset;
1010 }
1011
1012
1013
1014 static int
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,
1017                                        2, 2, FALSE, NULL);
1018
1019   return offset;
1020 }
1021
1022
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 }
1027 };
1028
1029 static int
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);
1033
1034   return offset;
1035 }
1036
1037
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 }
1042 };
1043
1044 static int
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);
1048
1049   return offset;
1050 }
1051
1052
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 }
1057 };
1058
1059 static int
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);
1063
1064   return offset;
1065 }
1066
1067
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 }
1072 };
1073
1074 static int
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);
1078
1079   return offset;
1080 }
1081
1082
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 }
1087 };
1088
1089 static int
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);
1093
1094   return offset;
1095 }
1096
1097
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 }
1102 };
1103
1104 static int
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);
1108
1109   return offset;
1110 }
1111
1112
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 }
1117 };
1118
1119 static int
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);
1123
1124   return offset;
1125 }
1126
1127
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 }
1132 };
1133
1134 static int
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);
1138
1139   return offset;
1140 }
1141
1142
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 }
1147 };
1148
1149 static int
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);
1153
1154   return offset;
1155 }
1156
1157
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 }
1162 };
1163
1164 static int
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);
1168
1169   return offset;
1170 }
1171
1172
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 }
1177 };
1178
1179 static int
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);
1183
1184   return offset;
1185 }
1186
1187
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 }
1192 };
1193
1194 static int
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);
1198
1199   return offset;
1200 }
1201
1202
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 }
1207 };
1208
1209 static int
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);
1213
1214   return offset;
1215 }
1216
1217
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 }
1222 };
1223
1224 static int
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);
1228
1229   return offset;
1230 }
1231
1232
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 }
1237 };
1238
1239 static int
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);
1243
1244   return offset;
1245 }
1246
1247
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 }
1252 };
1253
1254 static int
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);
1258
1259   return offset;
1260 }
1261
1262
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 }
1267 };
1268
1269 static int
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);
1273
1274   return offset;
1275 }
1276
1277
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 }
1282 };
1283
1284 static int
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);
1288
1289   return offset;
1290 }
1291
1292
1293
1294 static int
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);
1297
1298   return offset;
1299 }
1300
1301
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 }
1307 };
1308
1309 static int
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);
1313
1314   return offset;
1315 }
1316
1317
1318
1319 static int
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);
1322
1323   return offset;
1324 }
1325
1326
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 }
1332 };
1333
1334 static int
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);
1338
1339   return offset;
1340 }
1341
1342
1343
1344 static int
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);
1347
1348   return offset;
1349 }
1350
1351
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 }
1357 };
1358
1359 static int
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);
1363
1364   return offset;
1365 }
1366
1367
1368 static const value_string sabp_SABP_PDU_vals[] = {
1369   {   0, "initiatingMessage" },
1370   {   1, "successfulOutcome" },
1371   {   2, "unsuccessfulOutcome" },
1372   { 0, NULL }
1373 };
1374
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 }
1380 };
1381
1382 static int
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,
1386                                  NULL);
1387
1388   return offset;
1389 }
1390
1391 /*--- PDUs ---*/
1392
1393 static int dissect_Broadcast_Message_Content_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1394   int offset = 0;
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;
1399   return offset;
1400 }
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_) {
1402   int offset = 0;
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;
1407   return offset;
1408 }
1409 static int dissect_Category_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1410   int offset = 0;
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;
1415   return offset;
1416 }
1417 static int dissect_Cause_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1418   int offset = 0;
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;
1423   return offset;
1424 }
1425 static int dissect_Criticality_Diagnostics_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1426   int offset = 0;
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;
1431   return offset;
1432 }
1433 static int dissect_MessageStructure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1434   int offset = 0;
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;
1439   return offset;
1440 }
1441 static int dissect_Data_Coding_Scheme_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1442   int offset = 0;
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;
1447   return offset;
1448 }
1449 static int dissect_Failure_List_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1450   int offset = 0;
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;
1455   return offset;
1456 }
1457 static int dissect_Message_Identifier_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1458   int offset = 0;
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;
1463   return offset;
1464 }
1465 static int dissect_New_Serial_Number_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1466   int offset = 0;
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;
1471   return offset;
1472 }
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_) {
1474   int offset = 0;
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;
1479   return offset;
1480 }
1481 static int dissect_Number_of_Broadcasts_Requested_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1482   int offset = 0;
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;
1487   return offset;
1488 }
1489 static int dissect_Old_Serial_Number_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1490   int offset = 0;
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;
1495   return offset;
1496 }
1497 static int dissect_Paging_ETWS_Indicator_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1498   int offset = 0;
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;
1503   return offset;
1504 }
1505 static int dissect_Radio_Resource_Loading_List_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1506   int offset = 0;
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;
1511   return offset;
1512 }
1513 static int dissect_Recovery_Indication_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1514   int offset = 0;
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;
1519   return offset;
1520 }
1521 static int dissect_Repetition_Period_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1522   int offset = 0;
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;
1527   return offset;
1528 }
1529 static int dissect_Serial_Number_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1530   int offset = 0;
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;
1535   return offset;
1536 }
1537 static int dissect_Service_Areas_List_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1538   int offset = 0;
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;
1543   return offset;
1544 }
1545 static int dissect_TypeOfError_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1546   int offset = 0;
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;
1551   return offset;
1552 }
1553 static int dissect_WarningSecurityInfo_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1554   int offset = 0;
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;
1559   return offset;
1560 }
1561 static int dissect_Warning_Type_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1562   int offset = 0;
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;
1567   return offset;
1568 }
1569 static int dissect_Write_Replace_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1570   int offset = 0;
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;
1575   return offset;
1576 }
1577 static int dissect_Write_Replace_Complete_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1578   int offset = 0;
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;
1583   return offset;
1584 }
1585 static int dissect_Write_Replace_Failure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1586   int offset = 0;
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;
1591   return offset;
1592 }
1593 static int dissect_Kill_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1594   int offset = 0;
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;
1599   return offset;
1600 }
1601 static int dissect_Kill_Complete_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1602   int offset = 0;
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;
1607   return offset;
1608 }
1609 static int dissect_Kill_Failure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1610   int offset = 0;
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;
1615   return offset;
1616 }
1617 static int dissect_Load_Query_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1618   int offset = 0;
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;
1623   return offset;
1624 }
1625 static int dissect_Load_Query_Complete_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1626   int offset = 0;
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;
1631   return offset;
1632 }
1633 static int dissect_Load_Query_Failure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1634   int offset = 0;
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;
1639   return offset;
1640 }
1641 static int dissect_Message_Status_Query_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1642   int offset = 0;
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;
1647   return offset;
1648 }
1649 static int dissect_Message_Status_Query_Complete_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1650   int offset = 0;
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;
1655   return offset;
1656 }
1657 static int dissect_Message_Status_Query_Failure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1658   int offset = 0;
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;
1663   return offset;
1664 }
1665 static int dissect_Reset_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1666   int offset = 0;
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;
1671   return offset;
1672 }
1673 static int dissect_Reset_Complete_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1674   int offset = 0;
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;
1679   return offset;
1680 }
1681 static int dissect_Reset_Failure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1682   int offset = 0;
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;
1687   return offset;
1688 }
1689 static int dissect_Restart_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1690   int offset = 0;
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;
1695   return offset;
1696 }
1697 static int dissect_Failure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1698   int offset = 0;
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;
1703   return offset;
1704 }
1705 static int dissect_Error_Indication_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1706   int offset = 0;
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;
1711   return offset;
1712 }
1713 static int dissect_SABP_PDU_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
1714   int offset = 0;
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;
1719   return offset;
1720 }
1721
1722
1723 /*--- End of included file: packet-sabp-fn.c ---*/
1724 #line 90 "../../asn1/sabp/packet-sabp-template.c"
1725
1726 static int dissect_ProtocolIEFieldValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
1727 {
1728   return (dissector_try_uint(sabp_ies_dissector_table, ProtocolIE_ID, tvb, pinfo, tree)) ? tvb_length(tvb) : 0;
1729 }
1730
1731 static int dissect_ProtocolExtensionFieldExtensionValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
1732 {
1733   return (dissector_try_uint(sabp_extension_dissector_table, ProtocolExtensionID, tvb, pinfo, tree)) ? tvb_length(tvb) : 0;
1734 }
1735
1736 static int dissect_InitiatingMessageValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
1737 {
1738   return (dissector_try_uint(sabp_proc_imsg_dissector_table, ProcedureCode, tvb, pinfo, tree)) ? tvb_length(tvb) : 0;
1739 }
1740
1741 static int dissect_SuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
1742 {
1743   return (dissector_try_uint(sabp_proc_sout_dissector_table, ProcedureCode, tvb, pinfo, tree)) ? tvb_length(tvb) : 0;
1744 }
1745
1746 static int dissect_UnsuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
1747 {
1748   return (dissector_try_uint(sabp_proc_uout_dissector_table, ProcedureCode, tvb, pinfo, tree)) ? tvb_length(tvb) : 0;
1749 }
1750
1751 static guint
1752 get_sabp_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset)
1753 {
1754         guint32 type_length;
1755         int bit_offset;
1756         asn1_ctx_t asn1_ctx;
1757         asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
1758
1759         /* Length should be in the 3:d octet */
1760         offset = offset + 3;
1761
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);
1765
1766         /*
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;
1771          */
1772         if (type_length < 128)
1773                 return type_length+4;
1774
1775         return type_length+5;
1776 }
1777
1778
1779 static void
1780 dissect_sabp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
1781 {
1782         proto_item      *sabp_item = NULL;
1783         proto_tree      *sabp_tree = NULL;
1784
1785         /* make entry in the Protocol column on summary display */
1786         col_set_str(pinfo->cinfo, COL_PROTOCOL, PSNAME);
1787
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);
1791
1792         dissect_SABP_PDU_PDU(tvb, pinfo, sabp_tree, NULL);
1793 }
1794
1795 /* Note a little bit of a hack assumes length max takes two bytes and that the length starts at byte 4 */
1796 static void
1797 dissect_sabp_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
1798 {
1799         tcp_dissect_pdus(tvb, pinfo, tree, gbl_sabp_desegment, 5,
1800                                          get_sabp_pdu_len, dissect_sabp);
1801 }
1802
1803 /*--- proto_register_sbap -------------------------------------------*/
1804 void proto_register_sabp(void) {
1805
1806   /* List of fields */
1807
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,
1812         NULL, HFILL }},
1813
1814
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,
1820         NULL, HFILL }},
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,
1824         NULL, HFILL }},
1825     { &hf_sabp_Category_PDU,
1826       { "Category", "sabp.Category",
1827         FT_UINT32, BASE_DEC, VALS(sabp_Category_vals), 0,
1828         NULL, HFILL }},
1829     { &hf_sabp_Cause_PDU,
1830       { "Cause", "sabp.Cause",
1831         FT_UINT32, BASE_DEC|BASE_EXT_STRING, &sabp_Cause_vals_ext, 0,
1832         NULL, HFILL }},
1833     { &hf_sabp_Criticality_Diagnostics_PDU,
1834       { "Criticality-Diagnostics", "sabp.Criticality_Diagnostics",
1835         FT_NONE, BASE_NONE, NULL, 0,
1836         NULL, HFILL }},
1837     { &hf_sabp_MessageStructure_PDU,
1838       { "MessageStructure", "sabp.MessageStructure",
1839         FT_UINT32, BASE_DEC, NULL, 0,
1840         NULL, HFILL }},
1841     { &hf_sabp_Data_Coding_Scheme_PDU,
1842       { "Data-Coding-Scheme", "sabp.Data_Coding_Scheme",
1843         FT_BYTES, BASE_NONE, NULL, 0,
1844         NULL, HFILL }},
1845     { &hf_sabp_Failure_List_PDU,
1846       { "Failure-List", "sabp.Failure_List",
1847         FT_UINT32, BASE_DEC, NULL, 0,
1848         NULL, HFILL }},
1849     { &hf_sabp_Message_Identifier_PDU,
1850       { "Message-Identifier", "sabp.Message_Identifier",
1851         FT_BYTES, BASE_NONE, NULL, 0,
1852         NULL, HFILL }},
1853     { &hf_sabp_New_Serial_Number_PDU,
1854       { "New-Serial-Number", "sabp.New_Serial_Number",
1855         FT_BYTES, BASE_NONE, NULL, 0,
1856         NULL, HFILL }},
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,
1860         NULL, HFILL }},
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,
1864         NULL, HFILL }},
1865     { &hf_sabp_Old_Serial_Number_PDU,
1866       { "Old-Serial-Number", "sabp.Old_Serial_Number",
1867         FT_BYTES, BASE_NONE, NULL, 0,
1868         NULL, HFILL }},
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,
1872         NULL, HFILL }},
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,
1876         NULL, HFILL }},
1877     { &hf_sabp_Recovery_Indication_PDU,
1878       { "Recovery-Indication", "sabp.Recovery_Indication",
1879         FT_UINT32, BASE_DEC, VALS(sabp_Recovery_Indication_vals), 0,
1880         NULL, HFILL }},
1881     { &hf_sabp_Repetition_Period_PDU,
1882       { "Repetition-Period", "sabp.Repetition_Period",
1883         FT_UINT32, BASE_DEC, NULL, 0,
1884         NULL, HFILL }},
1885     { &hf_sabp_Serial_Number_PDU,
1886       { "Serial-Number", "sabp.Serial_Number",
1887         FT_BYTES, BASE_NONE, NULL, 0,
1888         NULL, HFILL }},
1889     { &hf_sabp_Service_Areas_List_PDU,
1890       { "Service-Areas-List", "sabp.Service_Areas_List",
1891         FT_UINT32, BASE_DEC, NULL, 0,
1892         NULL, HFILL }},
1893     { &hf_sabp_TypeOfError_PDU,
1894       { "TypeOfError", "sabp.TypeOfError",
1895         FT_UINT32, BASE_DEC, VALS(sabp_TypeOfError_vals), 0,
1896         NULL, HFILL }},
1897     { &hf_sabp_WarningSecurityInfo_PDU,
1898       { "WarningSecurityInfo", "sabp.WarningSecurityInfo",
1899         FT_BYTES, BASE_NONE, NULL, 0,
1900         NULL, HFILL }},
1901     { &hf_sabp_Warning_Type_PDU,
1902       { "Warning-Type", "sabp.Warning_Type",
1903         FT_BYTES, BASE_NONE, NULL, 0,
1904         NULL, HFILL }},
1905     { &hf_sabp_Write_Replace_PDU,
1906       { "Write-Replace", "sabp.Write_Replace",
1907         FT_NONE, BASE_NONE, NULL, 0,
1908         NULL, HFILL }},
1909     { &hf_sabp_Write_Replace_Complete_PDU,
1910       { "Write-Replace-Complete", "sabp.Write_Replace_Complete",
1911         FT_NONE, BASE_NONE, NULL, 0,
1912         NULL, HFILL }},
1913     { &hf_sabp_Write_Replace_Failure_PDU,
1914       { "Write-Replace-Failure", "sabp.Write_Replace_Failure",
1915         FT_NONE, BASE_NONE, NULL, 0,
1916         NULL, HFILL }},
1917     { &hf_sabp_Kill_PDU,
1918       { "Kill", "sabp.Kill",
1919         FT_NONE, BASE_NONE, NULL, 0,
1920         NULL, HFILL }},
1921     { &hf_sabp_Kill_Complete_PDU,
1922       { "Kill-Complete", "sabp.Kill_Complete",
1923         FT_NONE, BASE_NONE, NULL, 0,
1924         NULL, HFILL }},
1925     { &hf_sabp_Kill_Failure_PDU,
1926       { "Kill-Failure", "sabp.Kill_Failure",
1927         FT_NONE, BASE_NONE, NULL, 0,
1928         NULL, HFILL }},
1929     { &hf_sabp_Load_Query_PDU,
1930       { "Load-Query", "sabp.Load_Query",
1931         FT_NONE, BASE_NONE, NULL, 0,
1932         NULL, HFILL }},
1933     { &hf_sabp_Load_Query_Complete_PDU,
1934       { "Load-Query-Complete", "sabp.Load_Query_Complete",
1935         FT_NONE, BASE_NONE, NULL, 0,
1936         NULL, HFILL }},
1937     { &hf_sabp_Load_Query_Failure_PDU,
1938       { "Load-Query-Failure", "sabp.Load_Query_Failure",
1939         FT_NONE, BASE_NONE, NULL, 0,
1940         NULL, HFILL }},
1941     { &hf_sabp_Message_Status_Query_PDU,
1942       { "Message-Status-Query", "sabp.Message_Status_Query",
1943         FT_NONE, BASE_NONE, NULL, 0,
1944         NULL, HFILL }},
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,
1948         NULL, HFILL }},
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,
1952         NULL, HFILL }},
1953     { &hf_sabp_Reset_PDU,
1954       { "Reset", "sabp.Reset",
1955         FT_NONE, BASE_NONE, NULL, 0,
1956         NULL, HFILL }},
1957     { &hf_sabp_Reset_Complete_PDU,
1958       { "Reset-Complete", "sabp.Reset_Complete",
1959         FT_NONE, BASE_NONE, NULL, 0,
1960         NULL, HFILL }},
1961     { &hf_sabp_Reset_Failure_PDU,
1962       { "Reset-Failure", "sabp.Reset_Failure",
1963         FT_NONE, BASE_NONE, NULL, 0,
1964         NULL, HFILL }},
1965     { &hf_sabp_Restart_PDU,
1966       { "Restart", "sabp.Restart",
1967         FT_NONE, BASE_NONE, NULL, 0,
1968         NULL, HFILL }},
1969     { &hf_sabp_Failure_PDU,
1970       { "Failure", "sabp.Failure",
1971         FT_NONE, BASE_NONE, NULL, 0,
1972         NULL, HFILL }},
1973     { &hf_sabp_Error_Indication_PDU,
1974       { "Error-Indication", "sabp.Error_Indication",
1975         FT_NONE, BASE_NONE, NULL, 0,
1976         NULL, HFILL }},
1977     { &hf_sabp_SABP_PDU_PDU,
1978       { "SABP-PDU", "sabp.SABP_PDU",
1979         FT_UINT32, BASE_DEC, VALS(sabp_SABP_PDU_vals), 0,
1980         NULL, HFILL }},
1981     { &hf_sabp_ProtocolIE_Container_item,
1982       { "ProtocolIE-Field", "sabp.ProtocolIE_Field",
1983         FT_NONE, BASE_NONE, NULL, 0,
1984         NULL, HFILL }},
1985     { &hf_sabp_id,
1986       { "id", "sabp.id",
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,
1992         NULL, HFILL }},
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,
2000         NULL, HFILL }},
2001     { &hf_sabp_ext_id,
2002       { "id", "sabp.id",
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,
2008         NULL, HFILL }},
2009     { &hf_sabp_procedureCode,
2010       { "procedureCode", "sabp.procedureCode",
2011         FT_UINT32, BASE_DEC|BASE_EXT_STRING, &sabp_ProcedureCode_vals_ext, 0,
2012         NULL, HFILL }},
2013     { &hf_sabp_triggeringMessage,
2014       { "triggeringMessage", "sabp.triggeringMessage",
2015         FT_UINT32, BASE_DEC, VALS(sabp_TriggeringMessage_vals), 0,
2016         NULL, HFILL }},
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,
2032         NULL, HFILL }},
2033     { &hf_sabp_iECriticality,
2034       { "iECriticality", "sabp.iECriticality",
2035         FT_UINT32, BASE_DEC, VALS(sabp_Criticality_vals), 0,
2036         "Criticality", HFILL }},
2037     { &hf_sabp_iE_ID,
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,
2048         NULL, HFILL }},
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,
2056         NULL, HFILL }},
2057     { &hf_sabp_service_area_identifier,
2058       { "service-area-identifier", "sabp.service_area_identifier",
2059         FT_NONE, BASE_NONE, NULL, 0,
2060         NULL, HFILL }},
2061     { &hf_sabp_cause,
2062       { "cause", "sabp.cause",
2063         FT_UINT32, BASE_DEC|BASE_EXT_STRING, &sabp_Cause_vals_ext, 0,
2064         NULL, HFILL }},
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,
2068         NULL, HFILL }},
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,
2076         NULL, HFILL }},
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,
2080         NULL, HFILL }},
2081     { &hf_sabp_available_bandwidth,
2082       { "available-bandwidth", "sabp.available_bandwidth",
2083         FT_UINT32, BASE_DEC, NULL, 0,
2084         NULL, HFILL }},
2085     { &hf_sabp_pLMNidentity,
2086       { "pLMNidentity", "sabp.pLMNidentity",
2087         FT_BYTES, BASE_NONE, NULL, 0,
2088         NULL, HFILL }},
2089     { &hf_sabp_lac,
2090       { "lac", "sabp.lac",
2091         FT_BYTES, BASE_NONE, NULL, 0,
2092         "OCTET_STRING_SIZE_2", HFILL }},
2093     { &hf_sabp_sac,
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,
2100         NULL, HFILL }},
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,
2112         NULL, HFILL }},
2113     { &hf_sabp_successfulOutcome,
2114       { "successfulOutcome", "sabp.successfulOutcome",
2115         FT_NONE, BASE_NONE, NULL, 0,
2116         NULL, HFILL }},
2117     { &hf_sabp_unsuccessfulOutcome,
2118       { "unsuccessfulOutcome", "sabp.unsuccessfulOutcome",
2119         FT_NONE, BASE_NONE, NULL, 0,
2120         NULL, HFILL }},
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 }},
2133
2134 /*--- End of included file: packet-sabp-hfarr.c ---*/
2135 #line 180 "../../asn1/sabp/packet-sabp-template.c"
2136   };
2137
2138   /* List of subtrees */
2139   static gint *ett[] = {
2140                   &ett_sabp,
2141                   &ett_sabp_e212,
2142                   &ett_sabp_cbs_data_coding,
2143                   &ett_sabp_bcast_msg,
2144           &ett_sabp_cbs_serial_number,
2145           &ett_sabp_cbs_new_serial_number,
2146
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,
2169     &ett_sabp_Kill,
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,
2178     &ett_sabp_Reset,
2179     &ett_sabp_Reset_Complete,
2180     &ett_sabp_Reset_Failure,
2181     &ett_sabp_Restart,
2182     &ett_sabp_Failure,
2183     &ett_sabp_Error_Indication,
2184     &ett_sabp_SABP_PDU,
2185     &ett_sabp_InitiatingMessage,
2186     &ett_sabp_SuccessfulOutcome,
2187     &ett_sabp_UnsuccessfulOutcome,
2188
2189 /*--- End of included file: packet-sabp-ettarr.c ---*/
2190 #line 191 "../../asn1/sabp/packet-sabp-template.c"
2191   };
2192
2193
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));
2199
2200   /* Register dissector */
2201   register_dissector("sabp", dissect_sabp, proto_sabp);
2202   register_dissector("sabp.tcp", dissect_sabp_tcp, proto_sabp);
2203
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);
2210
2211 }
2212
2213
2214 /*--- proto_reg_handoff_sbap ---------------------------------------*/
2215 void
2216 proto_reg_handoff_sabp(void)
2217 {
2218   dissector_handle_t sabp_handle;
2219   dissector_handle_t sabp_tcp_handle;
2220
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);
2226
2227
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));
2270
2271
2272 /*--- End of included file: packet-sabp-dis-tab.c ---*/
2273 #line 228 "../../asn1/sabp/packet-sabp-template.c"
2274
2275 }
2276
2277