Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / asn1 / sbc-ap / sbc-ap.cnf
blob1500da7bb6d394c752b90c0f34a8412b8d2eebfb
1 # sbc-ap.cnf
2 # sbc-ap conformation file
4 #.OPT
5 PER
6 ALIGNED
7 #.END
9 #.EXPORTS
11 #.PDU
12 SBC-AP-PDU
14 #.MAKE_ENUM
15 ProcedureCode
16 ProtocolIE-ID
18 #.NO_EMIT
19 TBCD-STRING
20 #.END
22 #.OMIT_ASSIGNMENT
23 # Get rid of unused code warnings
24 ProtocolIE-ContainerList
25 Presence
26 Unknown-Tracking-Area-List
27 NgENB-ID
28 List-of-5GS-Cells-for-Failure
30 #.TYPE_RENAME
32 InitiatingMessage/value InitiatingMessage_value
33 SuccessfulOutcome/value SuccessfulOutcome_value
34 UnsuccessfulOutcome/value UnsuccessfulOutcome_value
36 #.FIELD_RENAME
38 InitiatingMessage/value initiatingMessagevalue
39 UnsuccessfulOutcome/value unsuccessfulOutcome_value
40 SuccessfulOutcome/value successfulOutcome_value
42 ProtocolExtensionField/id ext_id
44 ProtocolIE-Field/value ie_field_value
46 #.FN_PARS ProtocolIE-ID  VAL_PTR=&ProtocolIE_ID
47 #.FN_FTR ProtocolIE-ID
48   if (tree) {
49     proto_item_append_text(proto_item_get_parent_nth(actx->created_item, 2), ": %s", val_to_str(ProtocolIE_ID, VALS(sbc_ap_ProtocolIE_ID_vals), "unknown (%d)"));
50   }
51 #.END
55 #.FN_PARS ProtocolIE-Field/value  FN_VARIANT=_pdu_new  TYPE_REF_FN=dissect_ProtocolIEFieldValue
56 # Currently not used
57 # FN_PARS ProtocolIE-FieldPair/firstValue  FN_VARIANT=_pdu_new  TYPE_REF_FN=dissect_ProtocolIEFieldPairFirstValue
58 # FN_PARS ProtocolIE-FieldPair/secondValue  FN_VARIANT=_pdu_new  TYPE_REF_FN=dissect_ProtocolIEFieldPairSecondValue
60 #.FN_PARS ProtocolExtensionID  VAL_PTR=&ProtocolExtensionID
61 #.FN_PARS ProtocolExtensionField/extensionValue  FN_VARIANT=_pdu_new  TYPE_REF_FN=dissect_ProtocolExtensionFieldExtensionValue
63 #.FN_PARS  ProcedureCode  VAL_PTR = &ProcedureCode
64 #.END
66 #.FN_PARS InitiatingMessage/value  FN_VARIANT=_pdu_new  TYPE_REF_FN=dissect_InitiatingMessageValue
68 #.FN_PARS SuccessfulOutcome/value  FN_VARIANT=_pdu_new  TYPE_REF_FN=dissect_SuccessfulOutcomeValue
70 #.FN_PARS UnsuccessfulOutcome/value  FN_VARIANT=_pdu_new  TYPE_REF_FN=dissect_UnsuccessfulOutcomeValue
72 #--- Parameterization is not supported in asn2wrs ---
74 #ProtocolIE-ContainerList {INTEGER : lowerBound, INTEGER : upperBound, SBC-AP-PROTOCOL-IES : IEsSetParam} ::=
75 #       SEQUENCE (SIZE (lowerBound..upperBound)) OF
76 #       ProtocolIE-Container {{IEsSetParam}}
78 # FN_PARS ProtocolIE-ContainerList
79 #MIN_VAL = asn1_param_get_integer(%(ACTX)s,"lowerBound")
80 #MAX_VAL = asn1_param_get_integer(%(ACTX)s,"upperBound")
81 # FN_HDR ProtocolIE-ContainerList
82 #  static const asn1_par_def_t ProtocolIE_ContainerList_pars[] = {
83 #    { "lowerBound", ASN1_PAR_INTEGER },
84 #    { "upperBound", ASN1_PAR_INTEGER },
85 #    { NULL, 0 }
86 #  };
87 #  asn1_stack_frame_check(actx, "ProtocolIE-ContainerList", ProtocolIE_ContainerList_pars);
88 #.END
89 #ProtocolIE-ContainerPairList {INTEGER : lowerBound, INTEGER : upperBound, SBC-AP-PROTOCOL-IES-PAIR : IEsSetParam} ::=
90 #       SEQUENCE (SIZE (lowerBound..upperBound)) OF
91 #       ProtocolIE-ContainerPair {{IEsSetParam}}
93 # following construction is not supported by asn2wrs
94 # PLMNidentity ::= TBCD-STRING (SIZE (3))
95 # TBCD-STRING ::= OCTET STRING
97 #.FN_BODY PLMNidentity  VAL_PTR = parameter_tvb
98   tvbuff_t *parameter_tvb=NULL;
99   struct sbc_ap_private_data *sbc_ap_data = sbc_ap_get_private_data(actx->pinfo);
100   e212_number_type_t number_type = sbc_ap_data->number_type;
101   sbc_ap_data->number_type = E212_NONE;
103   offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
104                                        3, 3, false, &parameter_tvb);
105     if(tvb_reported_length(tvb)==0)
106         return offset;
108     if (!parameter_tvb)
109         return offset;
110     dissect_e212_mcc_mnc(parameter_tvb, actx->pinfo, tree, 0, number_type, false);
111 #.END
113 #.TYPE_ATTR
114 ProtocolExtensionID TYPE = FT_UINT8  DISPLAY = BASE_DEC STRINGS = VALS(sbc_ap_ProtocolIE_ID_vals)
116 #.FN_BODY EUTRAN-CGI
117   struct sbc_ap_private_data *sbc_ap_data = sbc_ap_get_private_data(actx->pinfo);
118   sbc_ap_data->number_type = E212_ECGI;
119 %(DEFAULT_BODY)s
121 #.FN_BODY NR-CGI
122   struct sbc_ap_private_data *sbc_ap_data = sbc_ap_get_private_data(actx->pinfo);
123   sbc_ap_data->number_type = E212_NRCGI;
124 %(DEFAULT_BODY)s
126 #.FN_BODY TAI
127   struct sbc_ap_private_data *sbc_ap_data = sbc_ap_get_private_data(actx->pinfo);
128   sbc_ap_data->number_type = E212_TAI;
129 %(DEFAULT_BODY)s
131 #.TYPE_ATTR
132 TAC TYPE = FT_UINT16 DISPLAY = BASE_DEC_HEX
133 #.FN_BODY TAC VAL_PTR = &parameter_tvb HF_INDEX = -1
134   tvbuff_t *parameter_tvb = NULL;
135 %(DEFAULT_BODY)s
136   if (parameter_tvb) {
137     actx->created_item = proto_tree_add_item(tree, hf_index, parameter_tvb, 0, 2, ENC_BIG_ENDIAN);
138   }
140 #.FN_BODY TAI-5GS
141   struct sbc_ap_private_data *sbc_ap_data = sbc_ap_get_private_data(actx->pinfo);
142   sbc_ap_data->number_type = E212_5GSTAI;
143 %(DEFAULT_BODY)s
145 #.TYPE_ATTR
146 TAC-5GS TYPE = FT_UINT24 DISPLAY = BASE_DEC_HEX
147 #.FN_BODY TAC-5GS VAL_PTR = &parameter_tvb HF_INDEX = -1
148   tvbuff_t *parameter_tvb = NULL;
149 %(DEFAULT_BODY)s
150   if (parameter_tvb) {
151     actx->created_item = proto_tree_add_item(tree, hf_index, parameter_tvb, 0, 3, ENC_BIG_ENDIAN);
152   }
155 #.ASSIGN_VALUE_TO_TYPE  # SBC-AP does not have constants assigned to types, they are pure INTEGER
156 # ProcedureCode
157 id-Write-Replace-Warning                    ProcedureCode
158 id-Stop-Warning                             ProcedureCode
159 id-Error-Indication                         ProcedureCode
160 id-Write-Replace-Warning-Indication         ProcedureCode
161 id-Stop-Warning-Indication                  ProcedureCode
162 id-PWS-Restart-Indication                   ProcedureCode
163 id-PWS-Failure-Indication                   ProcedureCode
165 # ProtocolIE-ID
167 id-Broadcast-Message-Content                            ProtocolIE-ID
168 id-Cause                                                                        ProtocolIE-ID
169 id-Criticality-Diagnostics                                      ProtocolIE-ID
170 id-Data-Coding-Scheme                                           ProtocolIE-ID
171 id-Failure-List                                                         ProtocolIE-ID
172 id-Message-Identifier                                           ProtocolIE-ID
173 id-Number-of-Broadcasts-Completed-List          ProtocolIE-ID
174 id-Number-of-Broadcasts-Requested                       ProtocolIE-ID
175 id-Radio-Resource-Loading-List                          ProtocolIE-ID
176 id-Recovery-Indication                                          ProtocolIE-ID
177 id-Repetition-Period                                            ProtocolIE-ID
178 id-Serial-Number                                                        ProtocolIE-ID
179 id-Service-Areas-List                                           ProtocolIE-ID
180 id-TypeOfError                                                          ProtocolIE-ID
181 id-List-of-TAIs                                                         ProtocolIE-ID
182 id-Warning-Area-List                                            ProtocolIE-ID
183 id-Warning-Message-Content                                      ProtocolIE-ID
184 id-Warning-Security-Information                         ProtocolIE-ID
185 id-Warning-Type                                                         ProtocolIE-ID
186 id-Omc-Id                                                                       ProtocolIE-ID
187 id-Concurrent-Warning-Message-Indicator         ProtocolIE-ID
188 id-Extended-Repetition-Period                           ProtocolIE-ID
189 id-Unknown-Tracking-Area-List                           ProtocolIE-ID
190 id-Broadcast-Scheduled-Area-List                        ProtocolIE-ID
191 id-Send-Write-Replace-Warning-Indication        ProtocolIE-ID
192 id-Broadcast-Cancelled-Area-List                        ProtocolIE-ID
193 id-Send-Stop-Warning-Indication                         ProtocolIE-ID
194 id-Stop-All-Indicator                                           ProtocolIE-ID
195 id-Global-ENB-ID                                                        ProtocolIE-ID
196 id-Broadcast-Empty-Area-List                            ProtocolIE-ID
197 id-Restarted-Cell-List                                          ProtocolIE-ID
198 id-List-of-TAIs-Restart                                         ProtocolIE-ID
199 id-List-of-EAIs-Restart                                         ProtocolIE-ID
200 id-Failed-Cell-List                                                     ProtocolIE-ID
202 id-List-of-5GS-TAIs                                     ProtocolIE-ID
203 id-Warning-Area-List-5GS                                ProtocolIE-ID
204 id-Global-RAN-Node-ID                                   ProtocolIE-ID
205 id-Global-GNB-ID                                        ProtocolIE-ID
206 id-RAT-Selector-5GS                                     ProtocolIE-ID
207 id-Unknown-5GS-Tracking-Area-List                       ProtocolIE-ID
208 id-Broadcast-Scheduled-Area-List-5GS                    ProtocolIE-ID
209 id-Broadcast-Cancelled-Area-List-5GS                    ProtocolIE-ID
210 id-Broadcast-Empty-Area-List-5GS                        ProtocolIE-ID
211 id-Restarted-Cell-List-NR                               ProtocolIE-ID
212 id-Failed-Cell-List-NR                                  ProtocolIE-ID
213 id-List-of-5GS-TAI-for-Restart                          ProtocolIE-ID
214 id-Warning-Area-Coordinates                             ProtocolIE-ID
216 #.REGISTER
218 #SBC-AP-PROTOCOL-IES
220 # N sbc_ap.ies id-Broadcast-Message-Content
221 Cause                                   N sbc_ap.ies id-Cause
222 Criticality-Diagnostics                 N sbc_ap.ies id-Criticality-Diagnostics
223 Data-Coding-Scheme                      N sbc_ap.ies id-Data-Coding-Scheme
224 # N sbc_ap.ies id-Failure-List
225 Message-Identifier                      N sbc_ap.ies id-Message-Identifier
226 # id-Number-of-Broadcasts-Completed-List
227 Number-of-Broadcasts-Requested          N sbc_ap.ies id-Number-of-Broadcasts-Requested
228 # not used ? N sbc_ap.ies id-Radio-Resource-Loading-List
229 # not used N sbc_ap.ies id-Recovery-Indication
230 Repetition-Period                       N sbc_ap.ies id-Repetition-Period
231 Serial-Number                           N sbc_ap.ies id-Serial-Number
232 # id-Service-Areas-List
233 # id-TypeOfError
234 List-of-TAIs                            N sbc_ap.ies id-List-of-TAIs
235 Warning-Area-List                       N sbc_ap.ies id-Warning-Area-List
236 Warning-Message-Content                 N sbc_ap.ies id-Warning-Message-Content
237 Warning-Security-Information            N sbc_ap.ies id-Warning-Security-Information
238 Warning-Type                            N sbc_ap.ies id-Warning-Type
239 Omc-Id                                  N sbc_ap.ies id-Omc-Id
240 Concurrent-Warning-Message-Indicator    N sbc_ap.ies id-Concurrent-Warning-Message-Indicator
241 Extended-Repetition-Period              N sbc_ap.ies id-Extended-Repetition-Period
242 List-of-TAIs                            N sbc_ap.ies id-Unknown-Tracking-Area-List
243 Broadcast-Scheduled-Area-List           N sbc_ap.ies id-Broadcast-Scheduled-Area-List
244 Send-Write-Replace-Warning-Indication   N sbc_ap.ies id-Send-Write-Replace-Warning-Indication
245 Broadcast-Cancelled-Area-List           N sbc_ap.ies id-Broadcast-Cancelled-Area-List
246 Send-Stop-Warning-Indication            N sbc_ap.ies id-Send-Stop-Warning-Indication
247 Stop-All-Indicator                      N sbc_ap.ies id-Stop-All-Indicator
248 Global-ENB-ID                           N sbc_ap.ies id-Global-ENB-ID
249 Broadcast-Empty-Area-List               N sbc_ap.ies id-Broadcast-Empty-Area-List
250 Restarted-Cell-List                     N sbc_ap.ies id-Restarted-Cell-List
251 List-of-TAIs-Restart                    N sbc_ap.ies id-List-of-TAIs-Restart
252 List-of-EAIs-Restart                    N sbc_ap.ies id-List-of-EAIs-Restart
253 Failed-Cell-List                        N sbc_ap.ies id-Failed-Cell-List
255 List-of-5GS-TAIs                        N sbc_ap.extension id-List-of-5GS-TAIs
256 Warning-Area-List-5GS                   N sbc_ap.extension id-Warning-Area-List-5GS
257 Global-RAN-Node-ID                      N sbc_ap.extension id-Global-RAN-Node-ID
258 Global-GNB-ID                           N sbc_ap.extension id-Global-GNB-ID
259 RAT-Selector-5GS                        N sbc_ap.extension id-RAT-Selector-5GS
260 Unknown-5GS-Tracking-Area-List          N sbc_ap.extension id-Unknown-5GS-Tracking-Area-List
261 Broadcast-Scheduled-Area-List-5GS       N sbc_ap.extension id-Broadcast-Scheduled-Area-List-5GS
262 Broadcast-Cancelled-Area-List-5GS       N sbc_ap.extension id-Broadcast-Cancelled-Area-List-5GS
263 Broadcast-Empty-Area-List-5GS           N sbc_ap.extension id-Broadcast-Empty-Area-List-5GS
264 Restarted-Cell-List-NR                  N sbc_ap.extension id-Restarted-Cell-List-NR
265 Failed-Cell-List-NR                     N sbc_ap.extension id-Failed-Cell-List-NR
266 List-of-5GS-TAI-for-Restart             N sbc_ap.extension id-List-of-5GS-TAI-for-Restart
267 Warning-Area-Coordinates                N sbc_ap.ies id-Warning-Area-Coordinates
270 #SBC-AP-ELEMENTARY-PROCEDURE
271 Write-Replace-Warning-Request           N sbc_ap.proc.imsg id-Write-Replace-Warning
272 Write-Replace-Warning-Response          N sbc_ap.proc.sout id-Write-Replace-Warning
274 Stop-Warning-Request                    N sbc_ap.proc.imsg id-Stop-Warning
275 Stop-Warning-Response                   N sbc_ap.proc.sout id-Stop-Warning
277 Error-Indication                        N sbc_ap.proc.imsg id-Error-Indication
279 Write-Replace-Warning-Indication        N sbc_ap.proc.imsg id-Write-Replace-Warning-Indication
281 Stop-Warning-Indication                 N sbc_ap.proc.imsg id-Stop-Warning-Indication
283 PWS-Restart-Indication                  N sbc_ap.proc.imsg id-PWS-Restart-Indication
285 PWS-Failure-Indication                  N sbc_ap.proc.imsg id-PWS-Failure-Indication
287 #.END
289 #.TYPE_ATTR
290 Message-Identifier TYPE = FT_UINT16 DISPLAY = BASE_DEC|BASE_EXT_STRING STRINGS = &lte_rrc_messageIdentifier_vals_ext
292 #.FN_HDR Write-Replace-Warning-Request
293   col_append_sep_str(actx->pinfo->cinfo, COL_INFO, NULL, "Write-Replace-Warning-Request");
294 #.FN_HDR Write-Replace-Warning-Response
295   col_append_sep_str(actx->pinfo->cinfo, COL_INFO, NULL, "Write-Replace-Warning-Response");
296 #.FN_HDR Stop-Warning-Request
297   col_append_sep_str(actx->pinfo->cinfo, COL_INFO, NULL, "Stop-Warning-Request");
298 #.FN_HDR Stop-Warning-Response
299   col_append_sep_str(actx->pinfo->cinfo, COL_INFO, NULL, "Stop-Warning-Response");
300 #.FN_HDR Error-Indication
301   col_append_sep_str(actx->pinfo->cinfo, COL_INFO, NULL, "Error-Indication");
302 #.FN_HDR Write-Replace-Warning-Indication
303   col_append_sep_str(actx->pinfo->cinfo, COL_INFO, NULL, "Write-Replace-Warning-Indication");
304 #.FN_HDR Stop-Warning-Indication
305   col_append_sep_str(actx->pinfo->cinfo, COL_INFO, NULL, "Stop-Warning-Indication");
306 #.FN_HDR PWS-Restart-Indication
307   col_append_sep_str(actx->pinfo->cinfo, COL_INFO, NULL, "PWS-Restart-Indication");
308 #.FN_HDR PWS-Failure-Indication
309   col_append_sep_str(actx->pinfo->cinfo, COL_INFO, NULL, "PWS-Failure-Indication");
311 #.FN_BODY Message-Identifier VAL_PTR = &parameter_tvb HF_INDEX = -1
312   tvbuff_t *parameter_tvb = NULL;
313 %(DEFAULT_BODY)s
314   if (parameter_tvb) {
315     actx->created_item = proto_tree_add_item(tree, hf_index, parameter_tvb, 0, 2, ENC_BIG_ENDIAN);
316   }
318 #.FN_BODY Serial-Number VAL_PTR = &parameter_tvb
319   tvbuff_t *parameter_tvb = NULL;
320 %(DEFAULT_BODY)s
321   if (parameter_tvb) {
322     proto_tree *subtree = proto_item_add_subtree(actx->created_item, ett_sbc_ap_Serial_Number);
323     proto_tree_add_item(subtree, hf_sbc_ap_Serial_Number_gs, parameter_tvb, 0, 2, ENC_BIG_ENDIAN);
324     proto_tree_add_item(subtree, hf_sbc_ap_Serial_Number_msg_code, parameter_tvb, 0, 2, ENC_BIG_ENDIAN);
325     proto_tree_add_item(subtree, hf_sbc_ap_Serial_Number_upd_nb, parameter_tvb, 0, 2, ENC_BIG_ENDIAN);
326   }
328 #.TYPE_ATTR
329 Repetition-Period DISPLAY=BASE_DEC|BASE_UNIT_STRING STRINGS=UNS(&units_seconds)
331 #.TYPE_ATTR
332 Extended-Repetition-Period DISPLAY=BASE_DEC|BASE_UNIT_STRING STRINGS=UNS(&units_seconds)
334 #.FN_BODY Warning-Type VAL_PTR = &parameter_tvb
335   tvbuff_t *parameter_tvb = NULL;
336 %(DEFAULT_BODY)s
337   if (parameter_tvb) {
338     proto_tree *subtree = proto_item_add_subtree(actx->created_item, ett_sbc_ap_Warning_Type);
339     proto_tree_add_item(subtree, hf_sbc_ap_Warning_Type_value, parameter_tvb, 0, 2, ENC_BIG_ENDIAN);
340     proto_tree_add_item(subtree, hf_sbc_ap_Warning_Type_emergency_user_alert, parameter_tvb, 0, 2, ENC_BIG_ENDIAN);
341     proto_tree_add_item(subtree, hf_sbc_ap_Warning_Type_popup, parameter_tvb, 0, 2, ENC_BIG_ENDIAN);
342   }
345 #.FN_BODY Data-Coding-Scheme VAL_PTR = &parameter_tvb
346   tvbuff_t *parameter_tvb = NULL;
347 %(DEFAULT_BODY)s
348   if (parameter_tvb) {
349     struct sbc_ap_private_data *sbc_ap_data = sbc_ap_get_private_data(actx->pinfo);
350     proto_tree *subtree;
352     subtree = proto_item_add_subtree(actx->created_item, ett_sbc_ap_Data_Coding_Scheme);
353     sbc_ap_data->data_coding_scheme = dissect_cbs_data_coding_scheme(parameter_tvb, actx->pinfo, subtree, 0);
354   }
356 #.FN_BODY Warning-Message-Content VAL_PTR = &parameter_tvb
357   tvbuff_t *parameter_tvb = NULL;
358 %(DEFAULT_BODY)s
359   if (parameter_tvb) {
360     struct sbc_ap_private_data *sbc_ap_data = sbc_ap_get_private_data(actx->pinfo);
361     proto_tree *subtree = proto_item_add_subtree(actx->created_item, ett_sbc_ap_Warning_Message_Contents);
362     dissect_s1ap_warningMessageContents(parameter_tvb, subtree, actx->pinfo, sbc_ap_data->data_coding_scheme, hf_sbc_ap_Warning_Message_Contents_nb_pages, hf_sbc_ap_Warning_Message_Contents_decoded_page);
363   }
367 # Editor modelines  -  https://www.wireshark.org/tools/modelines.html
369 # Local variables:
370 # c-basic-offset: 2
371 # tab-width: 8
372 # indent-tabs-mode: nil
373 # End:
375 # vi: set shiftwidth=2 tabstop=8 expandtab:
376 # :indentSize=2:tabSize=8:noTabs=true: