1 /* Do not modify this file. Changes will be overwritten. */
2 /* Generated automatically by the ASN.1 to Wireshark dissector compiler */
4 /* asn2wrs.py -b -q -L -p t125 -c ./t125.cnf -s ./packet-t125-template -D . -O ../.. MCS-PROTOCOL.asn */
7 * Routines for t125 packet dissection
8 * Copyright 2007, Ronnie Sahlberg
10 * Wireshark - Network traffic analyzer
11 * By Gerald Combs <gerald@wireshark.org>
12 * Copyright 1998 Gerald Combs
14 * SPDX-License-Identifier: GPL-2.0-or-later
20 #include <epan/packet.h>
21 #include <epan/exceptions.h>
22 #include <wsutil/array.h>
24 #include <epan/asn1.h>
25 #include "packet-ber.h"
26 #include "packet-per.h"
28 #include "packet-t124.h"
30 #define PNAME "MULTIPOINT-COMMUNICATION-SERVICE T.125"
31 #define PSNAME "T.125"
35 #define HF_T125_ERECT_DOMAIN_REQUEST 1
36 #define HF_T125_DISCONNECT_PROVIDER_ULTIMATUM 8
37 #define HF_T125_ATTACH_USER_REQUEST 10
38 #define HF_T125_ATTACH_USER_CONFIRM 11
39 #define HF_T125_CHANNEL_JOIN_REQUEST 14
40 #define HF_T125_CHANNEL_JOIN_CONFIRM 15
41 #define HF_T125_SEND_DATA_REQUEST 25
42 #define HF_T125_SEND_DATA_INDICATION 26
44 void proto_register_t125(void);
45 void proto_reg_handoff_t125(void);
47 /* Initialize the protocol and registered fields */
48 static int proto_t125
;
49 static proto_tree
*top_tree
;
50 static int hf_t125_ConnectMCSPDU_PDU
; /* ConnectMCSPDU */
51 static int hf_t125_maxChannelIds
; /* INTEGER_0_MAX */
52 static int hf_t125_maxUserIds
; /* INTEGER_0_MAX */
53 static int hf_t125_maxTokenIds
; /* INTEGER_0_MAX */
54 static int hf_t125_numPriorities
; /* INTEGER_0_MAX */
55 static int hf_t125_minThroughput
; /* INTEGER_0_MAX */
56 static int hf_t125_maxHeight
; /* INTEGER_0_MAX */
57 static int hf_t125_maxMCSPDUsize
; /* INTEGER_0_MAX */
58 static int hf_t125_protocolVersion
; /* INTEGER_0_MAX */
59 static int hf_t125_callingDomainSelector
; /* OCTET_STRING */
60 static int hf_t125_calledDomainSelector
; /* OCTET_STRING */
61 static int hf_t125_upwardFlag
; /* BOOLEAN */
62 static int hf_t125_targetParameters
; /* DomainParameters */
63 static int hf_t125_minimumParameters
; /* DomainParameters */
64 static int hf_t125_maximumParameters
; /* DomainParameters */
65 static int hf_t125_userData
; /* T_userData */
66 static int hf_t125_result
; /* Result */
67 static int hf_t125_calledConnectId
; /* INTEGER_0_MAX */
68 static int hf_t125_domainParameters
; /* DomainParameters */
69 static int hf_t125_userData_01
; /* T_userData_01 */
70 static int hf_t125_dataPriority
; /* DataPriority */
71 static int hf_t125_connect_initial
; /* Connect_Initial */
72 static int hf_t125_connect_response
; /* Connect_Response */
73 static int hf_t125_connect_additional
; /* Connect_Additional */
74 static int hf_t125_connect_result
; /* Connect_Result */
76 /* Initialize the subtree pointers */
79 static int ett_t125_DomainParameters
;
80 static int ett_t125_Connect_Initial_U
;
81 static int ett_t125_Connect_Response_U
;
82 static int ett_t125_Connect_Additional_U
;
83 static int ett_t125_Connect_Result_U
;
84 static int ett_t125_ConnectMCSPDU
;
86 static heur_dissector_list_t t125_heur_subdissector_list
;
89 static const value_string t125_DataPriority_vals
[] = {
99 dissect_t125_DataPriority(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
100 offset
= dissect_ber_integer(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
109 dissect_t125_INTEGER_0_MAX(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
110 offset
= dissect_ber_integer64(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
117 static const ber_sequence_t DomainParameters_sequence
[] = {
118 { &hf_t125_maxChannelIds
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_t125_INTEGER_0_MAX
},
119 { &hf_t125_maxUserIds
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_t125_INTEGER_0_MAX
},
120 { &hf_t125_maxTokenIds
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_t125_INTEGER_0_MAX
},
121 { &hf_t125_numPriorities
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_t125_INTEGER_0_MAX
},
122 { &hf_t125_minThroughput
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_t125_INTEGER_0_MAX
},
123 { &hf_t125_maxHeight
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_t125_INTEGER_0_MAX
},
124 { &hf_t125_maxMCSPDUsize
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_t125_INTEGER_0_MAX
},
125 { &hf_t125_protocolVersion
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_t125_INTEGER_0_MAX
},
126 { NULL
, 0, 0, 0, NULL
}
130 dissect_t125_DomainParameters(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
131 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
132 DomainParameters_sequence
, hf_index
, ett_t125_DomainParameters
);
140 dissect_t125_OCTET_STRING(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
141 offset
= dissect_ber_octet_string(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
150 dissect_t125_BOOLEAN(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
151 offset
= dissect_ber_boolean(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
, NULL
);
159 dissect_t125_T_userData(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
160 tvbuff_t
*next_tvb
= NULL
;
161 heur_dtbl_entry_t
*hdtbl_entry
;
162 offset
= dissect_ber_octet_string(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
166 dissector_try_heuristic(t125_heur_subdissector_list
, next_tvb
,
167 actx
->pinfo
, top_tree
, &hdtbl_entry
, NULL
);
173 static const ber_sequence_t Connect_Initial_U_sequence
[] = {
174 { &hf_t125_callingDomainSelector
, BER_CLASS_UNI
, BER_UNI_TAG_OCTETSTRING
, BER_FLAGS_NOOWNTAG
, dissect_t125_OCTET_STRING
},
175 { &hf_t125_calledDomainSelector
, BER_CLASS_UNI
, BER_UNI_TAG_OCTETSTRING
, BER_FLAGS_NOOWNTAG
, dissect_t125_OCTET_STRING
},
176 { &hf_t125_upwardFlag
, BER_CLASS_UNI
, BER_UNI_TAG_BOOLEAN
, BER_FLAGS_NOOWNTAG
, dissect_t125_BOOLEAN
},
177 { &hf_t125_targetParameters
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_t125_DomainParameters
},
178 { &hf_t125_minimumParameters
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_t125_DomainParameters
},
179 { &hf_t125_maximumParameters
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_t125_DomainParameters
},
180 { &hf_t125_userData
, BER_CLASS_UNI
, BER_UNI_TAG_OCTETSTRING
, BER_FLAGS_NOOWNTAG
, dissect_t125_T_userData
},
181 { NULL
, 0, 0, 0, NULL
}
185 dissect_t125_Connect_Initial_U(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
186 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
187 Connect_Initial_U_sequence
, hf_index
, ett_t125_Connect_Initial_U
);
195 dissect_t125_Connect_Initial(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
196 offset
= dissect_ber_tagged_type(implicit_tag
, actx
, tree
, tvb
, offset
,
197 hf_index
, BER_CLASS_APP
, 101, true, dissect_t125_Connect_Initial_U
);
203 static const value_string t125_Result_vals
[] = {
204 { 0, "rt-successful" },
205 { 1, "rt-domain-merging" },
206 { 2, "rt-domain-not-hierarchical" },
207 { 3, "rt-no-such-channel" },
208 { 4, "rt-no-such-domain" },
209 { 5, "rt-no-such-user" },
210 { 6, "rt-not-admitted" },
211 { 7, "rt-other-user-id" },
212 { 8, "rt-parameters-unacceptable" },
213 { 9, "rt-token-not-available" },
214 { 10, "rt-token-not-possessed" },
215 { 11, "rt-too-many-channels" },
216 { 12, "rt-too-many-tokens" },
217 { 13, "rt-too-many-users" },
218 { 14, "rt-unspecified-failure" },
219 { 15, "rt-user-rejected" },
225 dissect_t125_Result(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
226 offset
= dissect_ber_integer(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
235 dissect_t125_T_userData_01(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
236 tvbuff_t
*next_tvb
= NULL
;
237 heur_dtbl_entry_t
*hdtbl_entry
;
239 offset
= dissect_ber_octet_string(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
243 dissector_try_heuristic(t125_heur_subdissector_list
, next_tvb
,
244 actx
->pinfo
, top_tree
, &hdtbl_entry
, NULL
);
250 static const ber_sequence_t Connect_Response_U_sequence
[] = {
251 { &hf_t125_result
, BER_CLASS_UNI
, BER_UNI_TAG_ENUMERATED
, BER_FLAGS_NOOWNTAG
, dissect_t125_Result
},
252 { &hf_t125_calledConnectId
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_t125_INTEGER_0_MAX
},
253 { &hf_t125_domainParameters
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_t125_DomainParameters
},
254 { &hf_t125_userData_01
, BER_CLASS_UNI
, BER_UNI_TAG_OCTETSTRING
, BER_FLAGS_NOOWNTAG
, dissect_t125_T_userData_01
},
255 { NULL
, 0, 0, 0, NULL
}
259 dissect_t125_Connect_Response_U(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
260 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
261 Connect_Response_U_sequence
, hf_index
, ett_t125_Connect_Response_U
);
269 dissect_t125_Connect_Response(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
270 offset
= dissect_ber_tagged_type(implicit_tag
, actx
, tree
, tvb
, offset
,
271 hf_index
, BER_CLASS_APP
, 102, true, dissect_t125_Connect_Response_U
);
277 static const ber_sequence_t Connect_Additional_U_sequence
[] = {
278 { &hf_t125_calledConnectId
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_t125_INTEGER_0_MAX
},
279 { &hf_t125_dataPriority
, BER_CLASS_UNI
, BER_UNI_TAG_ENUMERATED
, BER_FLAGS_NOOWNTAG
, dissect_t125_DataPriority
},
280 { NULL
, 0, 0, 0, NULL
}
284 dissect_t125_Connect_Additional_U(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
285 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
286 Connect_Additional_U_sequence
, hf_index
, ett_t125_Connect_Additional_U
);
294 dissect_t125_Connect_Additional(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
295 offset
= dissect_ber_tagged_type(implicit_tag
, actx
, tree
, tvb
, offset
,
296 hf_index
, BER_CLASS_APP
, 103, true, dissect_t125_Connect_Additional_U
);
302 static const ber_sequence_t Connect_Result_U_sequence
[] = {
303 { &hf_t125_result
, BER_CLASS_UNI
, BER_UNI_TAG_ENUMERATED
, BER_FLAGS_NOOWNTAG
, dissect_t125_Result
},
304 { NULL
, 0, 0, 0, NULL
}
308 dissect_t125_Connect_Result_U(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
309 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
310 Connect_Result_U_sequence
, hf_index
, ett_t125_Connect_Result_U
);
318 dissect_t125_Connect_Result(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
319 offset
= dissect_ber_tagged_type(implicit_tag
, actx
, tree
, tvb
, offset
,
320 hf_index
, BER_CLASS_APP
, 104, true, dissect_t125_Connect_Result_U
);
326 static const value_string t125_ConnectMCSPDU_vals
[] = {
327 { 101, "connect-initial" },
328 { 102, "connect-response" },
329 { 103, "connect-additional" },
330 { 104, "connect-result" },
334 static const ber_choice_t ConnectMCSPDU_choice
[] = {
335 { 101, &hf_t125_connect_initial
, BER_CLASS_APP
, 101, BER_FLAGS_NOOWNTAG
, dissect_t125_Connect_Initial
},
336 { 102, &hf_t125_connect_response
, BER_CLASS_APP
, 102, BER_FLAGS_NOOWNTAG
, dissect_t125_Connect_Response
},
337 { 103, &hf_t125_connect_additional
, BER_CLASS_APP
, 103, BER_FLAGS_NOOWNTAG
, dissect_t125_Connect_Additional
},
338 { 104, &hf_t125_connect_result
, BER_CLASS_APP
, 104, BER_FLAGS_NOOWNTAG
, dissect_t125_Connect_Result
},
339 { 0, NULL
, 0, 0, 0, NULL
}
343 dissect_t125_ConnectMCSPDU(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
344 offset
= dissect_ber_choice(actx
, tree
, tvb
, offset
,
345 ConnectMCSPDU_choice
, hf_index
, ett_t125_ConnectMCSPDU
,
353 static int dissect_ConnectMCSPDU_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, void *data _U_
) {
356 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, true, pinfo
);
357 offset
= dissect_t125_ConnectMCSPDU(false, tvb
, offset
, &asn1_ctx
, tree
, hf_t125_ConnectMCSPDU_PDU
);
363 dissect_t125(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*parent_tree
, void *data _U_
)
365 proto_item
*item
= NULL
;
366 proto_tree
*tree
= NULL
;
371 top_tree
= parent_tree
;
373 col_set_str(pinfo
->cinfo
, COL_PROTOCOL
, "T.125");
374 col_clear(pinfo
->cinfo
, COL_INFO
);
376 item
= proto_tree_add_item(parent_tree
, proto_t125
, tvb
, 0, tvb_captured_length(tvb
), ENC_NA
);
377 tree
= proto_item_add_subtree(item
, ett_t125
);
379 get_ber_identifier(tvb
, 0, &ber_class
, &pc
, &tag
);
381 if ( (ber_class
==BER_CLASS_APP
) && (tag
>=101) && (tag
<=104) ){
382 dissect_ConnectMCSPDU_PDU(tvb
, pinfo
, tree
, NULL
);
384 t124_set_top_tree(top_tree
);
385 dissect_DomainMCSPDU_PDU(tvb
, pinfo
, tree
);
388 return tvb_captured_length(tvb
);
392 dissect_t125_heur(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*parent_tree
, void *data _U_
)
397 volatile bool failed
;
400 * We must catch all the "ran past the end of the packet" exceptions
401 * here and, if we catch one, just return false. It's too painful
402 * to have a version of dissect_per_sequence() that checks all
403 * references to the tvbuff before making them and returning "no"
404 * if they would fail.
409 get_ber_identifier(tvb
, 0, &ber_class
, &pc
, &tag
);
410 } CATCH_BOUNDS_ERRORS
{
418 if (((ber_class
==BER_CLASS_APP
) && ((tag
>=101) && (tag
<=104)))) {
419 dissect_t125(tvb
, pinfo
, parent_tree
, NULL
);
425 * Check that the first byte of the packet is a valid t125/MCS header.
426 * This might not be enough, but since t125 only catch COTP packets,
427 * it should not be a problem.
429 uint8_t first_byte
= tvb_get_uint8(tvb
, 0) >> 2;
430 switch (first_byte
) {
431 case HF_T125_ERECT_DOMAIN_REQUEST
:
432 case HF_T125_ATTACH_USER_REQUEST
:
433 case HF_T125_ATTACH_USER_CONFIRM
:
434 case HF_T125_CHANNEL_JOIN_REQUEST
:
435 case HF_T125_CHANNEL_JOIN_CONFIRM
:
436 case HF_T125_DISCONNECT_PROVIDER_ULTIMATUM
:
437 case HF_T125_SEND_DATA_REQUEST
:
438 case HF_T125_SEND_DATA_INDICATION
:
439 dissect_t125(tvb
, pinfo
, parent_tree
, NULL
);
447 /*--- proto_register_t125 -------------------------------------------*/
448 void proto_register_t125(void) {
451 static hf_register_info hf
[] = {
452 { &hf_t125_ConnectMCSPDU_PDU
,
453 { "ConnectMCSPDU", "t125.ConnectMCSPDU",
454 FT_UINT32
, BASE_DEC
, VALS(t125_ConnectMCSPDU_vals
), 0,
456 { &hf_t125_maxChannelIds
,
457 { "maxChannelIds", "t125.maxChannelIds",
458 FT_UINT64
, BASE_DEC
, NULL
, 0,
459 "INTEGER_0_MAX", HFILL
}},
460 { &hf_t125_maxUserIds
,
461 { "maxUserIds", "t125.maxUserIds",
462 FT_UINT64
, BASE_DEC
, NULL
, 0,
463 "INTEGER_0_MAX", HFILL
}},
464 { &hf_t125_maxTokenIds
,
465 { "maxTokenIds", "t125.maxTokenIds",
466 FT_UINT64
, BASE_DEC
, NULL
, 0,
467 "INTEGER_0_MAX", HFILL
}},
468 { &hf_t125_numPriorities
,
469 { "numPriorities", "t125.numPriorities",
470 FT_UINT64
, BASE_DEC
, NULL
, 0,
471 "INTEGER_0_MAX", HFILL
}},
472 { &hf_t125_minThroughput
,
473 { "minThroughput", "t125.minThroughput",
474 FT_UINT64
, BASE_DEC
, NULL
, 0,
475 "INTEGER_0_MAX", HFILL
}},
476 { &hf_t125_maxHeight
,
477 { "maxHeight", "t125.maxHeight",
478 FT_UINT64
, BASE_DEC
, NULL
, 0,
479 "INTEGER_0_MAX", HFILL
}},
480 { &hf_t125_maxMCSPDUsize
,
481 { "maxMCSPDUsize", "t125.maxMCSPDUsize",
482 FT_UINT64
, BASE_DEC
, NULL
, 0,
483 "INTEGER_0_MAX", HFILL
}},
484 { &hf_t125_protocolVersion
,
485 { "protocolVersion", "t125.protocolVersion",
486 FT_UINT64
, BASE_DEC
, NULL
, 0,
487 "INTEGER_0_MAX", HFILL
}},
488 { &hf_t125_callingDomainSelector
,
489 { "callingDomainSelector", "t125.callingDomainSelector",
490 FT_BYTES
, BASE_NONE
, NULL
, 0,
491 "OCTET_STRING", HFILL
}},
492 { &hf_t125_calledDomainSelector
,
493 { "calledDomainSelector", "t125.calledDomainSelector",
494 FT_BYTES
, BASE_NONE
, NULL
, 0,
495 "OCTET_STRING", HFILL
}},
496 { &hf_t125_upwardFlag
,
497 { "upwardFlag", "t125.upwardFlag",
498 FT_BOOLEAN
, BASE_NONE
, NULL
, 0,
500 { &hf_t125_targetParameters
,
501 { "targetParameters", "t125.targetParameters_element",
502 FT_NONE
, BASE_NONE
, NULL
, 0,
503 "DomainParameters", HFILL
}},
504 { &hf_t125_minimumParameters
,
505 { "minimumParameters", "t125.minimumParameters_element",
506 FT_NONE
, BASE_NONE
, NULL
, 0,
507 "DomainParameters", HFILL
}},
508 { &hf_t125_maximumParameters
,
509 { "maximumParameters", "t125.maximumParameters_element",
510 FT_NONE
, BASE_NONE
, NULL
, 0,
511 "DomainParameters", HFILL
}},
513 { "userData", "t125.userData",
514 FT_BYTES
, BASE_NONE
, NULL
, 0,
517 { "result", "t125.result",
518 FT_UINT32
, BASE_DEC
, VALS(t125_Result_vals
), 0,
520 { &hf_t125_calledConnectId
,
521 { "calledConnectId", "t125.calledConnectId",
522 FT_UINT64
, BASE_DEC
, NULL
, 0,
523 "INTEGER_0_MAX", HFILL
}},
524 { &hf_t125_domainParameters
,
525 { "domainParameters", "t125.domainParameters_element",
526 FT_NONE
, BASE_NONE
, NULL
, 0,
528 { &hf_t125_userData_01
,
529 { "userData", "t125.userData",
530 FT_BYTES
, BASE_NONE
, NULL
, 0,
531 "T_userData_01", HFILL
}},
532 { &hf_t125_dataPriority
,
533 { "dataPriority", "t125.dataPriority",
534 FT_UINT32
, BASE_DEC
, VALS(t125_DataPriority_vals
), 0,
536 { &hf_t125_connect_initial
,
537 { "connect-initial", "t125.connect_initial_element",
538 FT_NONE
, BASE_NONE
, NULL
, 0,
540 { &hf_t125_connect_response
,
541 { "connect-response", "t125.connect_response_element",
542 FT_NONE
, BASE_NONE
, NULL
, 0,
544 { &hf_t125_connect_additional
,
545 { "connect-additional", "t125.connect_additional_element",
546 FT_NONE
, BASE_NONE
, NULL
, 0,
548 { &hf_t125_connect_result
,
549 { "connect-result", "t125.connect_result_element",
550 FT_NONE
, BASE_NONE
, NULL
, 0,
554 /* List of subtrees */
555 static int *ett
[] = {
557 &ett_t125_DomainParameters
,
558 &ett_t125_Connect_Initial_U
,
559 &ett_t125_Connect_Response_U
,
560 &ett_t125_Connect_Additional_U
,
561 &ett_t125_Connect_Result_U
,
562 &ett_t125_ConnectMCSPDU
,
565 /* Register protocol */
566 proto_t125
= proto_register_protocol(PNAME
, PSNAME
, PFNAME
);
567 /* Register fields and subtrees */
568 proto_register_field_array(proto_t125
, hf
, array_length(hf
));
569 proto_register_subtree_array(ett
, array_length(ett
));
571 t125_heur_subdissector_list
= register_heur_dissector_list_with_description("t125", "T.125 User data", proto_t125
);
573 register_dissector("t125", dissect_t125
, proto_t125
);
577 /*--- proto_reg_handoff_t125 ---------------------------------------*/
578 void proto_reg_handoff_t125(void) {
580 heur_dissector_add("cotp", dissect_t125_heur
, "T.125 over COTP", "t125_cotp", proto_t125
, HEURISTIC_ENABLE
);
581 heur_dissector_add("cotp_is", dissect_t125_heur
, "T.125 over COTP (inactive subset)", "t125_cotp_is", proto_t125
, HEURISTIC_ENABLE
);