Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / asn1 / sabp / sabp.cnf
blob67ccf0e4672da085a3a174d18dd07b7c2c024031
1 # sabp.cnf
2 # sabp conformation file
3 # Copyright 2007 Tomas Kukosa
5 #.OPT
6 PER
7 ALIGNED
8 #.END
10 #.NO_EMIT
12 #.PDU
13 SABP-PDU
15 #.MAKE_ENUM
16 ProcedureCode
17 ProtocolIE-ID
19 #.USE_VALS_EXT
20 ProcedureCode
21 ProtocolIE-ID
22 Cause
24 #.OMIT_ASSIGNMENT
25 Presence
26 ProtocolIE-ContainerList
27 #.END
29 #.TF_RENAME
30 ProtocolIE-Field/value     ProtocolIE_Field_value
31 InitiatingMessage/value    InitiatingMessage_value
32 SuccessfulOutcome/value    SuccessfulOutcome_value
33 UnsuccessfulOutcome/value  UnsuccessfulOutcome_value
34 #.END
36 #.FIELD_RENAME
37 ProtocolExtensionField/id  ext_id
38 MessageStructure/_item/repetitionNumber repetitionNumber1
39 #.END
42 #.FN_PARS ProtocolIE-ID  VAL_PTR=&ProtocolIE_ID
43 #.FN_FTR ProtocolIE-ID
44   if (tree) {
45     proto_item_append_text(proto_item_get_parent_nth(actx->created_item, 2), ": %s",
46                            val_to_str_ext(ProtocolIE_ID, &sabp_ProtocolIE_ID_vals_ext, "unknown (%d)"));
47   }
48 #.END
51 #.FN_PARS ProtocolIE-Field/value  FN_VARIANT=_pdu_new  TYPE_REF_FN=dissect_ProtocolIEFieldValue
53 #.FN_PARS ProtocolExtensionID  VAL_PTR=&ProtocolExtensionID
54 #.FN_PARS ProtocolExtensionField/extensionValue  FN_VARIANT=_pdu_new  TYPE_REF_FN=dissect_ProtocolExtensionFieldExtensionValue
56 #.FN_PARS  ProcedureCode  VAL_PTR = &ProcedureCode
57 #.FN_FTR ProcedureCode
58        col_add_fstr(actx->pinfo->cinfo, COL_INFO, "%s ",
59                    val_to_str_ext_const(ProcedureCode, &sabp_ProcedureCode_vals_ext,
60                                         "unknown message"));
61 #.END
63 #.FN_PARS InitiatingMessage/value  FN_VARIANT=_pdu_new  TYPE_REF_FN=dissect_InitiatingMessageValue
65 #.FN_PARS SuccessfulOutcome/value  FN_VARIANT=_pdu_new  TYPE_REF_FN=dissect_SuccessfulOutcomeValue
67 #.FN_PARS UnsuccessfulOutcome/value  FN_VARIANT=_pdu_new  TYPE_REF_FN=dissect_UnsuccessfulOutcomeValue
70 #.ASSIGN_VALUE_TO_TYPE  # SABP does not have constants assigned to types, they are pure INTEGER
71 # ProcedureCode
72 id-Write-Replace                ProcedureCode
73 id-Kill                                 ProcedureCode
74 id-Load-Status-Enquiry  ProcedureCode
75 id-Message-Status-Query ProcedureCode
76 id-Restart-Indication   ProcedureCode
77 id-Reset                                ProcedureCode
78 id-Failure-Indication   ProcedureCode
79 id-Error-Indication             ProcedureCode
81 # ProtocolIE-ID
82 id-Broadcast-Message-Content                    ProtocolIE-ID
83 id-Category                                                     ProtocolIE-ID
84 id-Cause                                                                ProtocolIE-ID
85 id-Criticality-Diagnostics                              ProtocolIE-ID
86 id-Data-Coding-Scheme                                   ProtocolIE-ID
87 id-Failure-List                                                 ProtocolIE-ID
88 id-Message-Identifier                                   ProtocolIE-ID
89 id-New-Serial-Number                                    ProtocolIE-ID
90 id-Number-of-Broadcasts-Completed-List  ProtocolIE-ID
91 id-Number-of-Broadcasts-Requested               ProtocolIE-ID
92 id-Old-Serial-Number                                    ProtocolIE-ID
93 id-Radio-Resource-Loading-List                  ProtocolIE-ID
94 id-Recovery-Indication                                  ProtocolIE-ID
95 id-Repetition-Period                                    ProtocolIE-ID
96 id-Serial-Number                                                ProtocolIE-ID
97 id-Service-Areas-List                                   ProtocolIE-ID
98 id-MessageStructure                                             ProtocolIE-ID
99 id-TypeOfError                                                  ProtocolIE-ID
100 id-Paging-ETWS-Indicator                                ProtocolIE-ID
101 id-Warning-Type                                                 ProtocolIE-ID
102 id-WarningSecurityInfo                                  ProtocolIE-ID
103 id-Broadcast-Message-Content-Validity-Indicator ProtocolIE-ID
105 #.END
107 #.REGISTER
109 #SABP-PROTOCOL-IES
110 Message-Identifier                 N sabp.ies id-Message-Identifier
111 New-Serial-Number                  N sabp.ies id-New-Serial-Number
112 Old-Serial-Number                  N sabp.ies id-Old-Serial-Number
113 Service-Areas-List                 N sabp.ies id-Service-Areas-List
114 Category                           N sabp.ies id-Category
115 Repetition-Period                  N sabp.ies id-Repetition-Period
116 Number-of-Broadcasts-Requested     N sabp.ies id-Number-of-Broadcasts-Requested
117 Data-Coding-Scheme                 N sabp.ies id-Data-Coding-Scheme
118 Broadcast-Message-Content          N sabp.ies id-Broadcast-Message-Content
119 Number-of-Broadcasts-Completed-List N sabp.ies id-Number-of-Broadcasts-Completed-List
120 Criticality-Diagnostics            N sabp.ies id-Criticality-Diagnostics
121 Failure-List                       N sabp.ies id-Failure-List
122 Radio-Resource-Loading-List        N sabp.ies id-Radio-Resource-Loading-List
123 Recovery-Indication                N sabp.ies id-Recovery-Indication
124 Serial-Number                      N sabp.ies id-Serial-Number
125 Cause                              N sabp.ies id-Cause
127 #SABP-PROTOCOL-EXTENSION
128 MessageStructure                                        N sabp.extension id-MessageStructure
129 TypeOfError                                                     N sabp.extension id-TypeOfError
130 Paging-ETWS-Indicator                           N sabp.extension id-Paging-ETWS-Indicator
131 Warning-Type                                            N sabp.extension id-Warning-Type
132 WarningSecurityInfo                                     N sabp.extension id-WarningSecurityInfo
133 Broadcast-Message-Content-Validity-Indicator    N sabp.extension id-Broadcast-Message-Content-Validity-Indicator
135 #SABP-ELEMENTARY-PROCEDURE
136 Write-Replace                          N sabp.proc.imsg id-Write-Replace
137 Write-Replace-Complete                 N sabp.proc.sout id-Write-Replace
138 Write-Replace-Failure                  N sabp.proc.uout id-Write-Replace
139 Kill                                   N sabp.proc.imsg id-Kill
140 Kill-Complete                          N sabp.proc.sout id-Kill
141 Kill-Failure                           N sabp.proc.uout id-Kill
142 Load-Query                             N sabp.proc.imsg id-Load-Status-Enquiry
143 Load-Query-Complete                    N sabp.proc.sout id-Load-Status-Enquiry
144 Load-Query-Failure                     N sabp.proc.uout id-Load-Status-Enquiry
145 Message-Status-Query                   N sabp.proc.imsg id-Message-Status-Query
146 Message-Status-Query-Complete          N sabp.proc.sout id-Message-Status-Query
147 Message-Status-Query-Failure           N sabp.proc.uout id-Message-Status-Query
148 Reset                                  N sabp.proc.imsg id-Reset
149 Reset-Complete                         N sabp.proc.sout id-Reset
150 Reset-Failure                          N sabp.proc.uout id-Reset
151 Restart                                N sabp.proc.imsg id-Restart-Indication
152 Failure                                N sabp.proc.imsg id-Failure-Indication
153 Error-Indication                       N sabp.proc.imsg id-Error-Indication
155 # following construction is not supported by asn2wrs
156 # PLMNidentity ::= TBCD-STRING (SIZE (3))
157 # TBCD-STRING ::= OCTET STRING
159 #.FN_BODY Service-Area-Identifier/pLMNidentity  VAL_PTR = &parameter_tvb
160   tvbuff_t *parameter_tvb=NULL;
161  proto_tree *subtree;
163   offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
164                                        3, 3, false, &parameter_tvb);
166          if (!parameter_tvb)
167                 return offset;
168         subtree = proto_item_add_subtree(actx->created_item, ett_sabp_e212);
169         dissect_e212_mcc_mnc(parameter_tvb, actx->pinfo, subtree, 0, E212_SAI, false);
171 #.FN_BODY Data-Coding-Scheme VAL_PTR = &parameter_tvb
172  tvbuff_t *parameter_tvb=NULL;
173  proto_tree *subtree;
175 %(DEFAULT_BODY)s
177         if (!parameter_tvb)
178                 return offset;
179         subtree = proto_item_add_subtree(actx->created_item, ett_sabp_cbs_data_coding);
180         sms_encoding = dissect_cbs_data_coding_scheme(parameter_tvb, actx->pinfo, subtree, 0);
182 #.FN_BODY Message-Identifier VAL_PTR = &parameter_tvb
183  tvbuff_t *parameter_tvb=NULL;
185 %(DEFAULT_BODY)s
186         if (!parameter_tvb)
187                 return offset;
188         dissect_cbs_message_identifier(parameter_tvb, tree, 0);
190 #.FN_BODY Serial-Number VAL_PTR = &parameter_tvb
191  tvbuff_t *parameter_tvb=NULL;
192  proto_tree *subtree;
194 %(DEFAULT_BODY)s
195         if (!parameter_tvb)
196                 return offset;
197         subtree = proto_item_add_subtree(actx->created_item, ett_sabp_cbs_serial_number);
198         dissect_cbs_serial_number(parameter_tvb, subtree, 0);
200 #.FN_BODY New-Serial-Number VAL_PTR = &parameter_tvb
201  tvbuff_t *parameter_tvb=NULL;
202  proto_tree *subtree;
204 %(DEFAULT_BODY)s
205         if (!parameter_tvb)
206                 return offset;
207         subtree = proto_item_add_subtree(actx->created_item, ett_sabp_cbs_new_serial_number);
208         dissect_cbs_serial_number(parameter_tvb, subtree, 0);
210 #.FN_BODY Broadcast-Message-Content VAL_PTR = &parameter_tvb
211  tvbuff_t *parameter_tvb=NULL;
213 %(DEFAULT_BODY)s
214         if (!parameter_tvb)
215                 return offset;
216     dissect_sabp_cb_data(parameter_tvb, actx->pinfo, tree);
217 #    dissect_umts_cell_broadcast_message(parameter_tvb, actx->pinfo, proto_tree_get_root(tree));