1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
|
#.IMPORT ../p1/p1-exp.cnf
#.IMPORT ../ros/ros-exp.cnf
#.IMPORT ../rtse/rtse-exp.cnf
#.MODULE
Reliable-Transfer-APDU rtse
#.EXPORTS
SequenceNumber
SignatureStatus
#.END
# Forward declaration of Classes
# CONNECTION-PACKAGE CONTRACT from ROS
#.CLASS CONNECTION-PACKAGE
&bind ClassReference OPERATION
&unbind ClassReference OPERATION
&responderCanUnbind BooleanType
&unbindCanFail BooleanType
&id ObjectIdentifierType
#.END
#.CLASS CONTRACT
&connection ClassReference CONNECTION-PACKAGE
&OperationsOf ClassReference OPERATION-PACKAGE
&InitiatorConsumerOf ClassReference OPERATION-PACKAGE
&InitiatorSupplierOf ClassReference OPERATION-PACKAGE
&id ObjectIdentifierType
#.END
#.CLASS MHS-OBJECT
&Is ClassReference MHS-OBJECT
&Initiates ClassReference CONTRACT
&Responds ClassReference CONTRACT
&InitiatesAndResponds ClassReference CONTRACT
&id ObjectIdentifierType
#.END
# Ros OPERATION
#.CLASS ABSTRACT-OPERATION
&ArgumentType
&argumentTypeOptional BooleanType
&returnResult BooleanType
&ResultType
&resultTypeOptional BooleanType
&Errors ClassReference ERROR
&Linked ClassReference OPERATION
&synchronous BooleanType
&alwaysReturns BooleanType
&InvokePriority _FixedTypeValueSetFieldSpec
&ResultPriority _FixedTypeValueSetFieldSpec
&operationCode TypeReference Code
#.END
# ros ERROR
#.CLASS ABSTRACT-ERROR
&ParameterType
¶meterTypeOptional BooleanType
&ErrorPriority _FixedTypeValueSetFieldSpec
&errorCode TypeReference Code
#.END
#.CLASS MATCHING-RULE
&ParentMatchingRules ClassReference MATCHING-RULE
&AssertionType
&uniqueMatchIndicator ClassReference ATTRIBUTE
&id ObjectIdentifierType
#.END
#.CLASS APPLICATION-CONTEXT
&associationContract ClassReference CONTRACT
&associationRealization
&transferRealization
&AbstractSyntaxes ClassReference ABSTRACT-SYNTAX
&applicationContextName ObjectIdentifierType
#.END
#.TYPE_RENAME
PAR-fetch-restriction-error/problems FetchRestrictionProblems
PAR-sequence-number-error/problems SequenceNumberProblems
PAR-attribute-error/problems AttributeProblems
PAR-auto-action-request-error/problems AutoActionRequestProblems
PAR-delete-error/problems DeleteProblems
PAR-fetch-restriction-error/problems/_item FetchRestrictionProblemItem
PAR-sequence-number-error/problems/_item SequenceNumberProblemItem
PAR-attribute-error/problems/_item AttributeProblemItem
PAR-auto-action-request-error/problems/_item AutoActionRequestProblemItem
PAR-delete-error/problems/_item DeleteProblemItem
Attribute/attribute-values AttributeValues
OrderedAttribute/attribute-values OrderedAttributeValues
Attribute/attribute-values/_item AttributeItem
OrderedAttribute/attribute-values/_item OrderedAttributeItem
Summary/present/_item/value SummaryPresentItemValue
OrderedAttribute/attribute-values/_item/value OrderedAttributeValue
#.FIELD_RENAME
PAR-sequence-number-error/problems/_item/problem sequence-number-problem
PAR-register-ms-error/problem register-ms-problem
PAR-delete-error/problems/_item/problem delete-problem
PAR-auto-action-request-error/problems/_item/problem auto-action-request-problem
PAR-attribute-error/problems/_item/problem attribute-problem
PAR-sequence-number-error/problems sequence-number-problems
PAR-fetch-restriction-error/problems fetch-restriction-problems
PAR-attribute-error/problems attribute-problems
PAR-auto-action-request-error/problems auto-action-request-problems
PAR-delete-error/problems delete-problems
PAR-fetch-restriction-error/problems/_item fetch-restriction-problem-item
PAR-sequence-number-error/problems/_item sequence-number-problem-item
PAR-attribute-error/problems/_item attribute-problem-item
PAR-auto-action-request-error/problems/_item auto-action-request-problem-item
PAR-delete-error/problems/_item delete-problem-item
OrderedAttribute/attribute-values ordered-attribute-values
OrderedAttribute/attribute-values/_item ordered-attribute-values-item
OrderedAttribute/attribute-values/_item/position ordered-position
Summary/present/_item/count summary-count
AttributeSelection/count selection-count
DeleteResult/delete-result-94/entries-deleted entries-deleted-94
Register-MSArgument/change-credentials/old-credentials register-old-credentials
Register-MSResult/registered-information/fetch-attribute-defaults registered-fetch-attribute-defaults
Register-MSResult/registered-information/list-attribute-defaults registered-list-attribute-defaults
Register-MSResult/registered-information/message-group-registrations registered-message-group-registrations
TimeRange/from from-time
NumberRange/from from-number
TimeRange/to to-time
NumberRange/to to-number
Filter/item filter-item
Summary/present summary-present
PAR-fetch-restriction-error/problems/_item/problem fetch-restriction-problem
PAR-range-error/problem range-problem
EntryClassErrorParameter/problem entry-class-problem
MessageGroupErrorParameter/problem message-group-problem
ServiceErrorParameter/problem service-problem
ModifyErrorParameter/problem modify-problem
OrderedAttribute/attribute-values/_item/value ordered-attribute-value
PAR-fetch-restriction-error/problems/_item/restriction/content-type extended-content-type
PAR-auto-action-request-error/problems/_item/type auto-action-type
PAR-attribute-error/problems/_item/value attr-value
#.FIELD_ATTR
TimeRange/from ABBREV=timeRange.time
NumberRange/from ABBREV=numberRange.number
TimeRange/to ABBREV=timeRange.to
NumberRange/to ABBREV=NumberRange.to
Summary/present ABBREV=summary.present
PAR-fetch-restriction-error/problems/_item/restriction/content-type ABBREV=extended-content-type
PAR-fetch-restriction-error/problems/_item/problem ABBREV=fetch-restriction-problem
PAR-range-error/problem ABBREV=pAR-range-error.problem
EntryClassErrorParameter/problem ABBREV=entryClassErrorParameter.problem
MessageGroupErrorParameter/problem ABBREV=messageGroupErrorParameter.group-problem
ServiceErrorParameter/problem ABBREV=serviceErrorParameter.problem
ModifyErrorParameter/problem ABBREV=modifyErrorParameter.problem
# This table creates the value_sting to name P7 operation codes and errors
# in file packet-p7-table.c which is included in the template file
#
#.TABLE_HDR
/* P7 ABSTRACT-OPERATIONS */
const value_string p7_opr_code_string_vals[] = {
#.TABLE_BODY OPERATION
{ %(&operationCode)s, "%(_ident)s" },
#.TABLE_FTR
{ 0, NULL }
};
#.END
#.TABLE_HDR
/* P7 ERRORS */
static const value_string p7_err_code_string_vals[] = {
#.TABLE_BODY ERROR
{ %(&errorCode)s, "%(_ident)s" },
#.TABLE_FTR
{ 0, NULL }
};
#.END
# Create a table of opcode and corresponding args and res
#.TABLE11_HDR
static const ros_opr_t p7_opr_tab[] = {
#.TABLE11_BODY OPERATION
/* %(_name)s */
{ %(&operationCode)-25s, %(_argument_pdu)s, %(_result_pdu)s },
#.TABLE11_FTR
{ 0, (dissector_t)(-1), (dissector_t)(-1) },
};
#.END
#.TABLE21_HDR
static const ros_err_t p7_err_tab[] = {
#.TABLE21_BODY ERROR
/* %(_name)s*/
{ %(&errorCode)s, %(_parameter_pdu)s },
#.TABLE21_FTR
{ 0, (dissector_t)(-1) },
};
#.END
#.PDU
ERROR.&ParameterType
OPERATION.&ArgumentType
OPERATION.&ResultType
#.END
#.REGISTER
# MSGeneralAttributeTypes
ReportLocation B "2.6.4.3.42" "id-att-ac-correlated-report-list"
SequenceNumber B "2.6.4.3.76" "id-att-ac-report-subject-entry"
ReportSummary B "2.6.4.3.43" "id-att-ac-report-summary"
PerRecipientReport B "2.6.4.3.44" "id-att-ac-uncorrelated-report-list"
AutoActionError B "2.6.4.3.46" "id-att-auto-action-error"
#Integer B "2.6.4.3.47" "id-att-auto-action-registration-identifier" - see XXX
SequenceNumber B "2.6.4.3.48" "id-att-auto-action-subject-entry"
AutoActionType B "2.6.4.3.49" "id-att-auto-action-type"
#CertificateSelectors B "2.6.4.3.80" "id-att-certificate-selectors" - see p1.cnf
SequenceNumber B "2.6.4.3.0" "id-att-child-sequence-numbers"
#Content B "2.6.4.3.1" "id-att-content" - see XXX
#AlgorithmIdentifier B "2.6.4.3.2" "id-att-content-confidentiality-algorithm-identifier" - see XXX
#ContentCorrelator B "2.6.4.3.3" "id-att-content-correlator" - see p1.cnf
#ContentIdentifier B "2.6.4.3.4" "id-att-content-identifier" - see p1.cnf
#ContentIntegrityCheck B "2.6.4.3.5" "id-att-content-inetgrity-check" - see p1.cnf
#ContentLength B "2.6.4.3.6" "id-att-content-length" - see p1.cnf
#Boolean B "2.6.4.3.7" "id-att-content-returned" - see XXX
#ExtendedContentType B "2.6.4.3.8" "id-att-content-type" - see p1.cnf
#ConversionWithLossProhibited B "2.6.4.3.9" "id-att-conversion-with-loss-prohibited" - see p1.cnf
MS-EIT B "2.6.4.3.10" "id-att-converted-EITs"
CreationTime B "2.6.4.3.11" "id-att-creation-time"
DeferredDeliveryCancellationTime B "2.6.4.3.50" "id-att-deferred-delivery-cancellation-time"
#DeferredDeliveryTime B "2.6.4.3.51" "id-att-deferred-delivery-time" - see p1.cnf
DeletionTime B "2.6.4.3.52" "id-att-deletion-time"
MS-EIT B "2.6.4.3.12" "id-att-delivered-EITs"
#DeliveryFlags B "2.6.4.3.13" "id-att-delivery-flags" - see p1.cnf
#ORName B "2.6.4.3.78" "id-att-dl-exempted-recipients" - see p1.cnf
#DLExpansion B "2.6.4.3.14" "id-att-dl-expansion-history" - see p1.cnf
#DLExpansionProhibited B "2.6.4.3.53" "id-att-dl-expansion-prohibited" - see p1.cnf
EntryType B "2.6.4.3.16" "id-att-entry-type"
#InternalTraceInformationElement B "2.6.4.3.54" "id-att-internal-trace-information" - see p1.cnf
#LatestDeliveryTime B "2.6.4.3.55" "id-att-latest-delivery-time" - see p1.cnf
#NULL B "2.6.4.3.77" "id-att-locally-originated - see XXX
#NULL B "2.6.4.3.56" "id-att-marked-for-deletion" - see XXX
#MessageDeliveryEnvelope B "2.6.4.3.18" "id-att-message-delivery-envelope" - see p1.cnf
#MessageDeliveryTime B "2.6.4.3.20" "id-att-message-delivery-time" - see p1.cnf
MessageGroupName B "2.6.4.3.57" "id-att-message-group-name"
#MTSIdentifier B "2.6.4.3.19" "id-att-message-identifier" - see p1.cnf
#GeneralString B "2.6.4.3.58" "id-att-message-notes" - see XXX
#MessageOriginAuthenticationCheck B "2.6.4.3.21" "id-at-message-orgin-authentication-check" - see p1.cnf
#MessageSecurityLabel B "2.6.4.3.22" "id-att-message-security-label" - see p1.cnf
#MessageSubmissionEnvelope B "2.6.4.3.59" "id-att-message-submission-envelope" - see p1.cnf
#MessageSubmissionTime B "2.6.4.3.23" "id-att-message-submission-time"
#MessageToken B "2.6.4.3.24" "id-att-message-token"
#NULL B "2.6.4.3.60" "id-att-ms-originated"
SubmissionError B "2.6.4.3.61" "id-att-ms-submission-error"
#ExtendedCertificates B "2.6.4.3.81" "id-att-multiple-originator-certificates" - see p1.cnf
MS-EIT B "2.6.4.3.25" "id-att-original-EITs"
#ORName B "2.6.4.3.17" "id-att-originally-intended-recipient-name" - see p1.cnf
#OriginatingMTACertificate B "2.6.4.3.62" "id-att-originating-MTA-certificate" - see p1.cnf
#OriginatorCertificate B "2.6.4.3.26" "id-att-originator-certificate" - see p1.cnf
#ORName B "2.6.4.3.27" "id-att-originator-name" - see p1.cnf
#OriginatorReportRequest B "2.6.4.3.63" "id-att-originator-report-request" - see p1.cnf
#OriginatorReturnAddress B "2.6.4.3.64" "id-att-originator-return-address" - see p1.cnf
#ORName B "2.6.4.3.28" "id-att-other-recipient-names" - see p1.cnf
SequenceNumber B "2.6.4.3.29" "id-att-parent-sequence-number"
#PerMessageIndicators B "2.6.4.3.65" "id-att-per-message-indicators" - see p1.cnf
#PerRecipientMessageSubmissionFields B "2.6.4.3.66" "id-att-per-recipient-message-submission-fields" - see p1.cnf
#PerRecipientProbeSubmissionFields B "2.6.4.3.67" "id-att-per-recipient-probe-submission-fields" - see p1.cnf
#PerRecipientReportDeliveryFields B "2.6.4.3.30" "id-att-per-recipient-report-delivery-fields" - see p1.cnf
#Priority B "2.6.4.3.31" "id-att-priority" - see p1.cnf
#ProbeOriginAuthenticationCheck B "2.6.4.3.68" "id-att-probe-origin-authentication-check" - see p1.cnf
#ProbeSubmissionEnvelope B "2.6.4.3.69" "id-att-probe-submission-envelope" - see p1.cnf
#ProofOfDeliveryRequest B "2.6.4.3.32" "id-att-proof-of-delivery-request" - see p1.cnf
#ProofOfSubmission B "2.6.4.3.70" "id-att-proof-of-submission" - see p1.cnf
#ExtendedCertificates B "2.6.4.3.82" "id-att-recipient-certificate" - see p1.cnf
#ORName B "2.6.4.3.71" "id-att-recipient-names" - see p1.cnf
#RecipientReassignmentProhibited B "2.6.4.3.72" "id-att-recipient-reassignment-prohibited" - see p1.cnf
#Redirection B "2.6.4.3.33" "id-at-redirection-history" - see p1.cnf
#ReportDeliveryEnvelope B "2.6.4.3.34" "id-att-report-delivery-envelope" - see p1.cnf
#ReportingDLName B "2.6.4.3.35" "id-att-reporting-DL-name" - see p1.cnf
#ReportingMTACertificate B "2.6.4.3.36" "id-att-reporting-MTA-certificate" - see p1.cnf
#ReportOriginAuthenticationCheck B "2.6.4.3.37" "id-att-report-origin-authentication-check" - see p1.cnf
RetrievalStatus B "2.6.4.3.15" "id-att-retrieval-status"
#SecurityClassification B "2.6.4.3.38" "id-att-security-classification" - see p1.cnf
SequenceNumber B "2.6.4.3.39" "id-att-sequence-number"
SignatureVerificationStatus B "2.6.4.3.79" "id-att-signature-verification-status"
StoragePeriod B "2.6.4.3.73" "id-att-storage-period"
StorageTime B "2.6.4.3.74" "id-att-storage-time"
#SubjectSubmissionIdentifier B "2.6.4.3.40" "id-att-subject-submission-identifier" - see p1.cnf
#ORName B "2.6.4.3.41" "id-att-this-recipient-name" - see p1.cnf
#TraceInformationElement B "2.6.4.3.75" "id-att-trace-information" - see p1.cnf
#MSExtensions
ChangeCredentialsAlgorithms B "2.6.4.9.5" "id-ext-protected-change-credentials-capability"
OriginatorToken B "2.6.4.9.3" "id-ext-originator-token"
ProtectedChangeCredentials B "2.6.4.9.4" "id-ext-protected-change-credentials"
RTSE-apdus B "2.6.0.2.10""id-as-ms-rtse"
#.FN_PARS AttributeType FN_VARIANT = _str VAL_PTR = &actx->external.direct_reference
#.FN_BODY Attribute/attribute-values/_item
if(actx->external.direct_reference)
call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, tree, NULL);
#.FN_BODY AttributeValueAssertion/attribute-value
if(actx->external.direct_reference)
call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, tree, NULL);
#.FN_BODY FilterItem/substrings/strings/_item/initial
if(actx->external.direct_reference)
call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, tree, NULL);
#.FN_BODY FilterItem/substrings/strings/_item/any
if(actx->external.direct_reference)
call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, tree, NULL);
#.FN_BODY FilterItem/substrings/strings/_item/final
if(actx->external.direct_reference)
call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, tree, NULL);
#.FN_BODY MatchingRuleAssertion/match-value
if(actx->external.direct_reference)
call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, tree, NULL);
#.FN_BODY Summary/present/_item/value
if(actx->external.direct_reference)
call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, tree, NULL);
#.FN_BODY OrderedAttribute/attribute-values/_item/value
if(actx->external.direct_reference)
call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, tree, NULL);
#.FN_PARS AutoActionType FN_VARIANT = _str VAL_PTR = &actx->external.direct_reference
#.FN_BODY AutoActionRegistration/registration-parameter
if(actx->external.direct_reference)
call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, tree, NULL);
#.FN_BODY AutoActionError/error-code
/* XXX: Is this really the best way to do this? */
offset = dissect_ros_Code(implicit_tag, tvb, offset, actx, tree, hf_index);
#.FN_BODY RegistrationTypes/extended-registrations/_item
/* XXX: Is this really the best way to do this? */
offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_index, &actx->external.direct_reference);
#.FN_BODY RTABapdu/userdataAB
offset = dissect_unknown_ber(actx->pinfo, tvb, offset, tree);
#.END
#.FN_BODY AutoActionError/error-parameter
if(actx->external.direct_reference)
call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, tree, NULL);
#.FN_BODY PAR-attribute-error/problems/_item/value
if(actx->external.direct_reference)
call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, tree, NULL);
#.FN_BODY MSBindArgument/initiator-name
const char *ora = NULL;
%(DEFAULT_BODY)s
if ((ora = p1_get_last_oraddress(actx))) {
col_append_fstr(actx->pinfo->cinfo, COL_INFO, " (initiator=%%s)", ora);
}
#.FN_PARS SequenceNumber VAL_PTR = &seqno
#.FN_BODY NumberRange
col_append_str(actx->pinfo->cinfo, COL_INFO, " (range=");
%(DEFAULT_BODY)s
col_append_str(actx->pinfo->cinfo, COL_INFO, ")");
#.FN_FTR NumberRange/from
col_append_fstr(actx->pinfo->cinfo, COL_INFO, " from %d", seqno);
#.FN_FTR NumberRange/to
col_append_fstr(actx->pinfo->cinfo, COL_INFO, " to %d", seqno);
#.FN_PARS SummarizeResult/count VAL_PTR = &count
#.FN_BODY SummarizeResult/count
int count = 0;
%(DEFAULT_BODY)s
col_append_fstr(actx->pinfo->cinfo, COL_INFO, " (count=%%d)", count);
#.FN_BODY MSMessageSubmissionArgument
p1_initialize_content_globals (actx, tree, TRUE);
%(DEFAULT_BODY)s
p1_initialize_content_globals (actx, NULL, FALSE);
#.FN_BODY EntryInformation
p1_initialize_content_globals (actx, NULL, FALSE);
%(DEFAULT_BODY)s
p1_initialize_content_globals (actx, NULL, FALSE);
#.FN_BODY EntryModification
p1_initialize_content_globals (actx, NULL, FALSE);
%(DEFAULT_BODY)s
p1_initialize_content_globals (actx, NULL, FALSE);
|