HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / asn1 / ros / Remote-Operations-Generic-ROS-PDUs.asn
blobe55ea3c05e46dfa330b9d3d217c0446863f4a819
1 -- Module Remote-Operations-Generic-ROS-PDUs (X.880:07/1994)
3 Remote-Operations-Generic-ROS-PDUs {joint-iso-itu-t remote-operations(4)
4   generic-ROS-PDUs(6) version1(0)} DEFINITIONS IMPLICIT TAGS ::=
5 BEGIN
7 -- exports everything
8 IMPORTS
9   OPERATION, ERROR
10     FROM Remote-Operations-Information-Objects {joint-iso-itu-t
11       remote-operations(4) informationObjects(5) version1(0)};
13 ROS{InvokeId:InvokeIdSet, OPERATION:Invokable, OPERATION:Returnable} ::=
14   CHOICE {
15   invoke        [1]  Invoke{{InvokeIdSet}, {Invokable}},
16   returnResult  [2]  ReturnResult{{Returnable}},
17   returnError   [3]  ReturnError{{Errors  {{Returnable}}}},
18   reject        [4]  Reject
20 (CONSTRAINED BY { -- must conform to the above definition --} !
21  RejectProblem:general-unrecognizedPDU)
23 Invoke{InvokeId:InvokeIdSet, OPERATION:Operations} ::= SEQUENCE {
24   invokeId
25     InvokeId(InvokeIdSet)
26       (CONSTRAINED BY { -- must be unambiguous --} !
27        RejectProblem:invoke-duplicateInvocation),
28   linkedId
29     CHOICE {present  [0] IMPLICIT present < InvokeId,
30             absent   [1] IMPLICIT NULL
31   }
32   (CONSTRAINED BY { -- must identify an outstanding operation --} !
33    RejectProblem:invoke-unrecognizedLinkedId)
34   (CONSTRAINED BY { -- which has one or more linked operations--} !
35    RejectProblem:invoke-linkedResponseUnexpected) OPTIONAL,
36   opcode
37     OPERATION.&operationCode
38       ({Operations} !RejectProblem:invoke-unrecognizedOperation),
39   argument
40     OPERATION.&ArgumentType
41       ({Operations}{@opcode} !RejectProblem:invoke-mistypedArgument) OPTIONAL
43 (CONSTRAINED BY { -- must conform to the above definition --} !
44  RejectProblem:general-mistypedPDU)
45 (WITH COMPONENTS {
46    ...,
47    linkedId  ABSENT
48  } |
49  WITH COMPONENTS {
50    ...,
51    linkedId  PRESENT,
52    opcode    (CONSTRAINED BY { -- must be in the &Linked field of the associated operation --
53                 } !RejectProblem:invoke-unexpectedLinkedOperation)
54  })
56 -- continued on the next page
57 ReturnResult{OPERATION:Operations} ::= SEQUENCE {
58   invokeId
59     InvokeId
60       (CONSTRAINED BY { -- must be that for an outstanding operation --} !
61        RejectProblem:returnResult-unrecognizedInvocation)
62       (CONSTRAINED BY { -- which returns a result --} !
63        RejectProblem:returnResult-resultResponseUnexpected),
64   result
65     SEQUENCE {opcode
66                 OPERATION.&operationCode({Operations})
67                   (CONSTRAINED BY { -- identified by invokeId --} !
68                    RejectProblem:returnResult-unrecognizedInvocation),
69               result
70                 OPERATION.&ResultType
71                   ({Operations}{@.opcode} !
72                    RejectProblem:returnResult-mistypedResult)} OPTIONAL
74 (CONSTRAINED BY { -- must conform to the above definition --} !
75  RejectProblem:general-mistypedPDU)
77 ReturnError{ERROR:Errors} ::= SEQUENCE {
78   invokeId
79     InvokeId
80       (CONSTRAINED BY { -- must be that for an outstanding operation --} !
81        RejectProblem:returnError-unrecognizedInvocation)
82       (CONSTRAINED BY { -- which returns an error --} !
83        RejectProblem:returnError-errorResponseUnexpected),
84   errcode
85     ERROR.&errorCode({Errors} !RejectProblem:returnError-unrecognizedError)
86       (CONSTRAINED BY { -- must be in the &Errors field of the associated operation --
87          } !RejectProblem:returnError-unexpectedError),
88   parameter
89     ERROR.&ParameterType
90       ({Errors}{@errcode} !RejectProblem:returnError-mistypedParameter)
91       OPTIONAL
93 (CONSTRAINED BY { -- must conform to the above definition --} !
94  RejectProblem:general-mistypedPDU)
96 Reject ::= SEQUENCE {
97   invokeId  InvokeId,
98   problem
99     CHOICE {general       [0]  GeneralProblem,
100             invoke        [1]  InvokeProblem,
101             returnResult  [2]  ReturnResultProblem,
102             returnError   [3]  ReturnErrorProblem}
104 (CONSTRAINED BY { -- must conform to the above definition --} !
105  RejectProblem:general-mistypedPDU)
107 GeneralProblem ::= INTEGER {
108   unrecognizedPDU(0), mistypedPDU(1), badlyStructuredPDU(2)}
110 -- continued on the next page
111 InvokeProblem ::= INTEGER {
112   duplicateInvocation(0), unrecognizedOperation(1), mistypedArgument(2),
113   resourceLimitation(3), releaseInProgress(4), unrecognizedLinkedId(5),
114   linkedResponseUnexpected(6), unexpectedLinkedOperation(7)}
116 ReturnResultProblem ::= INTEGER {
117   unrecognizedInvocation(0), resultResponseUnexpected(1), mistypedResult(2)
120 ReturnErrorProblem ::= INTEGER {
121   unrecognizedInvocation(0), errorResponseUnexpected(1), unrecognizedError(2),
122   unexpectedError(3), mistypedParameter(4)}
124 RejectProblem ::= INTEGER {
125   general-unrecognizedPDU(0), general-mistypedPDU(1),
126   general-badlyStructuredPDU(2), invoke-duplicateInvocation(10),
127   invoke-unrecognizedOperation(11), invoke-mistypedArgument(12),
128   invoke-resourceLimitation(13), invoke-releaseInProgress(14),
129   invoke-unrecognizedLinkedId(15), invoke-linkedResponseUnexpected(16),
130   invoke-unexpectedLinkedOperation(17),
131   returnResult-unrecognizedInvocation(20),
132   returnResult-resultResponseUnexpected(21), returnResult-mistypedResult(22),
133   returnError-unrecognizedInvocation(30),
134   returnError-errorResponseUnexpected(31), returnError-unrecognizedError(32),
135   returnError-unexpectedError(33), returnError-mistypedParameter(34)}
137 InvokeId ::= CHOICE {present  INTEGER,
138                      absent   NULL
141 noInvokeId InvokeId ::= absent:NULL
143 NoInvokeId InvokeId ::= {noInvokeId}
145 Errors{OPERATION:Operations} ERROR ::= {Operations.&Errors}
147 -- continued on the next page
148 Bind{OPERATION:operation} ::= CHOICE {
149   bind-invoke  [16]  OPERATION.&ArgumentType({operation}),
150   bind-result  [17]  OPERATION.&ResultType({operation}),
151   bind-error   [18]  OPERATION.&Errors.&ParameterType({operation})
154 Unbind{OPERATION:operation} ::= CHOICE {
155   unbind-invoke  [19]  OPERATION.&ArgumentType({operation}),
156   unbind-result  [20]  OPERATION.&ResultType({operation}),
157   unbind-error   [21]  OPERATION.&Errors.&ParameterType({operation})
160 END -- end of generic ROS PDU definitions
162 -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D