Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / asn1 / t124 / t124.cnf
blob07ece5bf6014d91fb6c96913e58ce86839cd0de8
1 # T.124/GCC-PROTOCOL.cnf
2 # Copyright 2011 Graeme Lunt
3 #----------------------------------------------------------------------------------------
4 #.EXPORTS
5 #----------------------------------------------------------------------------------------
6 ConnectData
7 ConnectGCCPDU
8 #.END
10 #.OMIT_ASSIGNMENT
11 GCCPDU
12 ConnectMCSPDU
13 IndicationPDU
14 ResponsePDU
15 Connect-Initial
16 Connect-Additional
17 Connect-Result
18 UserIDIndication
19 ConferenceAddResponse
20 ConferenceLockResponse
21 ConferenceLockIndication
22 ConferenceUnlockResponse
23 ConferenceUnlockIndication
24 ConferenceTerminateResponse
25 ConferenceTerminateIndication
26 ConferenceEjectUserResponse
27 ConferenceEjectUserIndication
28 ConferenceTransferResponse
29 ConferenceTransferIndication
30 RosterUpdateIndication
31 ApplicationInvokeIndication
32 RegistryMonitorEntryIndication
33 RegistryAllocateHandleResponse
34 RegistryResponse
35 ConductorAssignIndication
36 ConductorReleaseIndication
37 ConductorPermissionAskIndication
38 ConductorPermissionGrantIndication
39 ConferenceTimeRemainingIndication
40 ConferenceTimeInquireIndication
41 ConferenceTimeExtendIndication
42 ConferenceAssistanceIndication
43 TextMessageIndication
44 FunctionNotSupportedResponse
45 Connect-Response
46 Time
47 Handle
48 NodeRecord
49 ApplicationRecord
50 ApplicationInvokeSpecifier
51 RegistryItem
52 RegistryEntryOwner
53 RequestPDU
54 DomainParameters
55 DynamicTokenID
56 NodeProperties
57 AlternativeNodeID
58 ChannelType
59 CapabilityID
60 CapabilityClass
61 ConferenceAddRequest
62 ConferenceLockRequest
63 ConferenceUnlockRequest
64 ConferenceTerminateRequest
65 ConferenceEjectUserRequest
66 ConferenceTransferRequest
67 RegistryRegisterChannelRequest
68 RegistryAssignTokenRequest
69 RegistrySetParameterRequest
70 RegistryRetrieveEntryRequest
71 RegistryDeleteEntryRequest
72 RegistryMonitorEntryRequest
73 RegistryAllocateHandleRequest
74 NonStandardPDU
75 NetworkAddressV2
76 EntityID
77 RegistryKey
78 RegistryModificationRights
79 MediaList
80 ChannelAggregationMethod
81 Profile
82 NetworkConnection
83 SessionKey
84 ChannelID
85 GSTNConnection
86 ISDNConnection
87 CSDNConnection
88 PSDNConnection
89 ATMConnection
90 ExtendedE164NetworkAddress
91 TransportAddress
93 #----------------------------------------------------------------------------------------
95 #.PDU
96 #----------------------------------------------------------------------------------------
99 #.TF_RENAME
100 ConferenceQueryResponse/result  QueryResponseResult
101 ConferenceJoinResponse/result   JoinResponseResult
102 ConferenceInviteResponse/result InviteResponseResult
104 #.FIELD_RENAME
105 ConferenceCreateRequest/userData userData-set-of
106 ConferenceCreateResponse/userData userData-set-of
107 ConferenceQueryRequest/userData userData-set-of
108 ConferenceQueryResponse/userData userData-set-of
109 ConferenceJoinRequest/userData userData-set-of
110 ConferenceJoinResponse/userData userData-set-of
111 ConferenceInviteRequest/userData userData-set-of
112 ConferenceInviteResponse/userData userData-set-of
113 #ConferenceAddRequest/userData userData-set-of
114 #ConferenceAddResponse/userData userData-set-of
115 #ConferenceAssistanceIndication/userData userData-set-of
117 #.FN_BODY ConnectData/connectPDU VAL_PTR = &next_tvb
118     tvbuff_t    *next_tvb = NULL;
119     proto_tree  *next_tree = NULL;
120     int         old_offset = 0;
122     old_offset = offset;
123     %(DEFAULT_BODY)s
124     if(next_tvb) {
125       /* "2a -> ConnectData::connectPDU length = 42 bytes */
126       /* This length MUST be ignored by the client." */
128       /* Not sure why - but lets ignore the length. */
129       /* We assume the OCTET STRING is all of the remaining bytes */
131       if(tvb_reported_length(next_tvb) == 42) {
132          /* this is perhaps a naive ... */
133          next_tvb = tvb_new_subset_remaining(tvb, (old_offset>>3)+1);
134       }
136          next_tree = proto_item_add_subtree(actx->created_item, ett_t124_connectGCCPDU);
138        dissect_t124_ConnectGCCPDU(next_tvb, 0, actx, next_tree, hf_t124_connectGCCPDU);
140     }
141 #.END
143 #.FN_BODY UserData/_item/value VAL_PTR = &next_tvb
144     tvbuff_t *next_tvb = NULL;
145     tvbuff_t *t124NSIdentifier = (tvbuff_t*)actx->private_data;
146     uint8_t  *ns = NULL;
148 %(DEFAULT_BODY)s
150         if(next_tvb && t124NSIdentifier) {
152         ns = tvb_get_string_enc(actx->pinfo->pool, t124NSIdentifier, 0, tvb_reported_length(t124NSIdentifier), ENC_ASCII|ENC_NA);
153         if(ns != NULL) {
154                 dissector_try_string_with_data(t124_ns_dissector_table, ns, next_tvb, actx->pinfo, top_tree, false, NULL);
155         }
156         }
158 #.END
160 #.FN_BODY SendDataRequest/userData  VAL_PTR = &next_tvb
161     tvbuff_t    *next_tvb = NULL;
163 %(DEFAULT_BODY)s
165         if(next_tvb) {
167              dissector_try_uint_with_data(t124_sd_dissector_table, channelId, next_tvb, actx->pinfo, top_tree, false, NULL);
169         }
171 #.END
173 #.FN_BODY SendDataIndication/userData VAL_PTR = &next_tvb
174     tvbuff_t    *next_tvb = NULL;
176 %(DEFAULT_BODY)s
178         if(next_tvb) {
180              dissector_try_uint(t124_sd_dissector_table, channelId, next_tvb, actx->pinfo, top_tree);
182         }
184 #.END
187 #.FN_BODY DomainMCSPDU  VAL_PTR = &domainmcs_value
188         int domainmcs_value;
190 %(DEFAULT_BODY)s
191         switch(domainmcs_value) {
192         case 25: /* sendDataRequest */
193         case 26: /* sendDataIndication */
194         case 27: /* uniformSendDataRequest */
195         case 28: /* uniformSendDataIndication */
196                 /* Do nothing */
197                 break;
198         default:
199                 col_prepend_fstr(%(ACTX)s->pinfo->cinfo, COL_INFO, "%%s ",
200                                  val_to_str_const(domainmcs_value, t124_DomainMCSPDU_vals, "Unknown"));
201                 break;
202         }
204 #.END
206 #.FN_PARS Key/object
207           FN_VARIANT = _str VAL_PTR = &actx->external.direct_reference
209 #.FN_PARS H221NonStandardIdentifier
210       VAL_PTR = (tvbuff_t**)&actx->private_data
212 #.FN_BODY H221NonStandardIdentifier
214     %(DEFAULT_BODY)s
217 #.FN_BODY ChannelId VAL_PTR = &channelId
219     %(DEFAULT_BODY)s
221     if(hf_index == hf_t124_channelId_03)
222         col_append_fstr(%(ACTX)s->pinfo->cinfo, COL_INFO, "%%d", channelId);
225 #.OMIT_ASSIGNMENT
226 StaticChannelID
227 TokenID
228 StaticTokenID
229 RosterRefreshRequest
230 #.END
231 #.VIRTUAL_ASSGN
232 #----------------------------------------------------------------------------------------
234 #.END
236 #----------------------------------------------------------------------------------------
237 # vim:set ts=4 sts=2 sw=2: