2 * packet-h248-annex_c.c
5 * (c) 2006, Luis E. Garcia Ontanon <luis@ontanon.org>
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28 #include <epan/wmem/wmem.h>
30 #include "packet-h248.h"
32 void proto_register_h248_annex_c(void);
34 #define PNAME "H.248 Annex C"
35 #define PSNAME "H248C"
36 #define PFNAME "h248c"
39 static int proto_h248_pkg_annexc = -1;
41 static int hf_h248_pkg_annexc_media = -1;
42 static int hf_h248_pkg_annexc_ACodec = -1;
43 static int hf_h248_pkg_annexc_Mediatx = -1;
44 static int hf_h248_pkg_annexc_NSAP = -1;
45 static int hf_h248_pkg_annexc_BIR = -1;
46 static int hf_h248_pkg_annexc_transmission_mode = -1;
47 static int hf_h248_pkg_annexc_num_of_channels = -1;
48 static int hf_h248_pkg_annexc_sampling_rate = -1;
49 static int hf_h248_pkg_annexc_bit_rate = -1;
50 static int hf_h248_pkg_annexc_samplepp = -1;
51 static int hf_h248_pkg_annexc_silence_supp = -1;
52 static int hf_h248_pkg_annexc_encrypt_type = -1;
53 static int hf_h248_pkg_annexc_encrypt_key = -1;
54 static int hf_h248_pkg_annexc_gain = -1;
55 static int hf_h248_pkg_annexc_jitterbuf = -1;
56 static int hf_h248_pkg_annexc_propdelay = -1;
57 static int hf_h248_pkg_annexc_rtp_payload = -1;
59 static int hf_h248_pkg_annexc_h222 = -1;
60 static int hf_h248_pkg_annexc_h223 = -1;
61 static int hf_h248_pkg_annexc_v76 = -1;
62 static int hf_h248_pkg_annexc_h2250 = -1;
64 static int hf_h248_pkg_annexc_aesa = -1;
65 static int hf_h248_pkg_annexc_vp = -1;
66 static int hf_h248_pkg_annexc_vc = -1;
67 static int hf_h248_pkg_annexc_sc = -1;
68 static int hf_h248_pkg_annexc_bcob = -1;
69 static int hf_h248_pkg_annexc_bbtc = -1;
70 static int hf_h248_pkg_annexc_atc = -1;
71 static int hf_h248_pkg_annexc_stc = -1;
72 static int hf_h248_pkg_annexc_uppc = -1;
73 static int hf_h248_pkg_annexc_pcr0 = -1;
74 static int hf_h248_pkg_annexc_scr0 = -1;
75 static int hf_h248_pkg_annexc_mbs0 = -1;
76 static int hf_h248_pkg_annexc_pcr1 = -1;
77 static int hf_h248_pkg_annexc_scr1 = -1;
78 static int hf_h248_pkg_annexc_mbs1 = -1;
79 static int hf_h248_pkg_annexc_bei = -1;
80 static int hf_h248_pkg_annexc_ti = -1;
81 static int hf_h248_pkg_annexc_fd = -1;
82 static int hf_h248_pkg_annexc_a2pcdv = -1;
83 static int hf_h248_pkg_annexc_c2pcdv = -1;
84 static int hf_h248_pkg_annexc_appcdv = -1;
85 static int hf_h248_pkg_annexc_cppcdv = -1;
86 static int hf_h248_pkg_annexc_aclr = -1;
87 static int hf_h248_pkg_annexc_meetd = -1;
88 static int hf_h248_pkg_annexc_ceetd = -1;
89 static int hf_h248_pkg_annexc_QosClass = -1;
90 static int hf_h248_pkg_annexc_AALtype = -1;
92 static int hf_h248_pkg_annexc_dlci = -1;
93 static int hf_h248_pkg_annexc_cid = -1;
94 static int hf_h248_pkg_annexc_sid = -1;
95 static int hf_h248_pkg_annexc_ppt = -1;
97 static int hf_h248_pkg_annexc_ipv4 = -1;
98 static int hf_h248_pkg_annexc_ipv6 = -1;
99 static int hf_h248_pkg_annexc_port = -1;
100 static int hf_h248_pkg_annexc_porttype = -1;
102 static int hf_h248_pkg_annexc_alc = -1;
103 static int hf_h248_pkg_annexc_sut = -1;
104 static int hf_h248_pkg_annexc_tci = -1;
105 static int hf_h248_pkg_annexc_timer_cu = -1;
106 static int hf_h248_pkg_annexc_maxcpssdu = -1;
108 static int hf_h248_pkg_annexc_aal1st = -1;
109 static int hf_h248_pkg_annexc_cbrr = -1;
110 static int hf_h248_pkg_annexc_scri = -1;
111 static int hf_h248_pkg_annexc_ecm = -1;
112 static int hf_h248_pkg_annexc_sdbt = -1;
113 static int hf_h248_pkg_annexc_pfci = -1;
115 static int hf_h248_pkg_annexc_tmr = -1;
116 static int hf_h248_pkg_annexc_tmrsr = -1;
117 static int hf_h248_pkg_annexc_contcheck = -1;
118 static int hf_h248_pkg_annexc_itc = -1;
119 static int hf_h248_pkg_annexc_transmode = -1;
120 static int hf_h248_pkg_annexc_transrate = -1;
121 static int hf_h248_pkg_annexc_mult = -1;
122 static int hf_h248_pkg_annexc_syncasync = -1;
123 static int hf_h248_pkg_annexc_negotiation = -1;
124 static int hf_h248_pkg_annexc_userrate = -1;
125 static int hf_h248_pkg_annexc_intrate = -1;
126 static int hf_h248_pkg_annexc_nictx = -1;
127 static int hf_h248_pkg_annexc_nicrx = -1;
128 static int hf_h248_pkg_annexc_flowconttx = -1;
129 static int hf_h248_pkg_annexc_flowcontrx = -1;
130 static int hf_h248_pkg_annexc_rateadapthdr = -1;
131 static int hf_h248_pkg_annexc_multiframe = -1;
132 static int hf_h248_pkg_annexc_opmode = -1;
133 static int hf_h248_pkg_annexc_llidnegot = -1;
134 static int hf_h248_pkg_annexc_assign = -1;
135 static int hf_h248_pkg_annexc_inbandneg = -1;
136 static int hf_h248_pkg_annexc_stopbits = -1;
137 static int hf_h248_pkg_annexc_databits = -1;
138 static int hf_h248_pkg_annexc_parity = -1;
139 static int hf_h248_pkg_annexc_duplexmode = -1;
140 static int hf_h248_pkg_annexc_modem = -1;
141 static int hf_h248_pkg_annexc_layer2prot = -1;
142 static int hf_h248_pkg_annexc_layer3prot = -1;
143 static int hf_h248_pkg_annexc_addlayer3prot = -1;
144 static int hf_h248_pkg_annexc_dialedn = -1;
145 static int hf_h248_pkg_annexc_dialingn = -1;
146 static int hf_h248_pkg_annexc_echoci = -1;
147 static int hf_h248_pkg_annexc_nci = -1;
148 static int hf_h248_pkg_annexc_USI = -1;
150 static int hf_h248_pkg_annexc_fmsdu = -1;
151 static int hf_h248_pkg_annexc_bmsdu = -1;
152 static int hf_h248_pkg_annexc_sscs = -1;
154 static int hf_h248_pkg_annexc_sdp_v = -1;
155 static int hf_h248_pkg_annexc_sdp_o = -1;
156 static int hf_h248_pkg_annexc_sdp_s = -1;
157 static int hf_h248_pkg_annexc_sdp_i = -1;
158 static int hf_h248_pkg_annexc_sdp_u = -1;
159 static int hf_h248_pkg_annexc_sdp_e = -1;
160 static int hf_h248_pkg_annexc_sdp_p = -1;
161 static int hf_h248_pkg_annexc_sdp_c = -1;
162 static int hf_h248_pkg_annexc_sdp_b = -1;
163 static int hf_h248_pkg_annexc_sdp_z = -1;
164 static int hf_h248_pkg_annexc_sdp_k = -1;
165 static int hf_h248_pkg_annexc_sdp_a = -1;
166 static int hf_h248_pkg_annexc_sdp_t = -1;
167 static int hf_h248_pkg_annexc_sdp_r = -1;
168 static int hf_h248_pkg_annexc_sdp_m = -1;
170 static int hf_h248_pkg_annexc_olc = -1;
171 static int hf_h248_pkg_annexc_olcack = -1;
172 static int hf_h248_pkg_annexc_olccnf = -1;
173 static int hf_h248_pkg_annexc_olcrej = -1;
174 static int hf_h248_pkg_annexc_clc = -1;
175 static int hf_h248_pkg_annexc_clcack = -1;
179 static gint ett_annexc = -1;
180 static gint ett_vpvc = -1;
181 static gint ett_codec = -1;
183 static const value_string h248_annexc_package_properties_vals[] = {
184 { 0x0000, "Media stream properties H.248.1 Annex C" },
186 { 0x1002, "transmission mode" },
187 { 0x1003, "num_of_channels" },
188 { 0x1004, "sampling_rate" },
189 { 0x1005, "bit_rate" },
190 { 0x1006, "ACodec" },
191 { 0x1007, "samplepp" },
192 { 0x1008, "silence_supp" },
193 { 0x1009, "encrypt_type" },
194 { 0x100A, "encrypt_key" },
195 { 0x100B, "echo canceller" },
197 { 0x100D, "jitterbuf" },
198 { 0x100E, "propdelay" },
199 { 0x100F, "rtp_payload" },
206 { 0x3001, "Mediatx" },
227 { 0x4012, "a2pcdv" },
228 { 0x4013, "c2pcdv" },
229 { 0x4014, "appcdv" },
230 { 0x4015, "cppcdv" },
234 { 0x4019, "QosClass" },
235 { 0x401a, "AALtype" },
239 { 0x5003, "SID/Noiselevel" },
245 { 0x6004, "Porttype" },
252 { 0x7006, "Timer_CU" },
253 { 0x7007, "MaxCPSSDU" },
256 { 0x8001, "AAL1ST" },
265 { 0x9009, "syncasync" },
266 { 0x900a, "negotiation" },
267 { 0x900b, "userrate" },
268 { 0x900c, "intrate" },
271 { 0x900f, "flowconttx" },
272 { 0x9010, "flowcontrx" },
273 { 0x9011, "rateadapthdr" },
274 { 0x9012, "multiframe" },
275 { 0x9013, "opmode" },
276 { 0x9014, "llnegot" },
277 { 0x9015, "assign" },
278 { 0x9016, "inbandneg" },
279 { 0x9017, "stopbits" },
280 { 0x9018, "databits" },
281 { 0x9019, "parity" },
282 { 0x901a, "duplexmode" },
284 { 0x901c, "layer2prot" },
285 { 0x901d, "layer3prot" },
286 { 0x901e, "addlayer3prot" },
287 { 0x901f, "DialledN" },
288 { 0x9020, "DiallingN" },
289 { 0x9021, "ECHOCI" },
296 { 0xB001, "SDP_V (Protocol Version)" },
297 { 0xB002, "SDP_O (Owner/creator)" },
298 { 0xB003, "SDP_S (Session Name)" },
299 { 0xB004, "SDP_I (Session Identifier)" },
300 { 0xB005, "SDP_U (URI)" },
301 { 0xB006, "SDP_E (email address)" },
302 { 0xB007, "SDP_P (phone number)" },
303 { 0xB008, "SDP_C (connection)" },
304 { 0xB009, "SDP_B (bandwidth info)" },
305 { 0xB00A, "SDP_Z (TZ adjustment)" },
306 { 0xB00B, "SDP_K (encryption key)" },
307 { 0xB00C, "SDP_A (Session attributes)" },
308 { 0xB00D, "SDP_T (Active Session Time)" },
309 { 0xB00E, "SDP_R (Repeat times)" },
310 { 0xB00F, "SDP_M (Media type, portm transport and format)" },
313 { 0xC002, "OLCack" },
314 { 0xC003, "OLCcnf" },
315 { 0xC004, "OLCrej" },
317 { 0xC006, "CLCack" },
324 static const value_string h248_annexc_media_vals[] = {
331 static const value_string h248_pkg_annexc_Mediatx_vals[] = {
332 { 0x0000, "TDM Circuit" },
340 static const value_string h248_annexc_transmission_mode[] = {
347 static const value_string h248_pkg_annexc_sc[] _U_ = {
361 static const value_string h248_pkg_annexc_atc_values[] = {
372 static const value_string h248_pkg_annexc_stc_values[] = {
373 {0,"Not Susceptible to clipping"},
374 {1,"Susceptible to clipping"},
378 static const value_string h248_pkg_annexc_uppc_values[] = {
379 {0,"point-to-point"},
380 {1,"point-to-multipoint"},
384 static const value_string h248_pkg_annexc_syncasync_values[] = {
385 {0, "Synchronous Data"},
386 {1, "Asynchronous Data"},
390 static const value_string h248_pkg_annexc_negotiation_values[] = {
391 {0, "In-Band negotiation possible"},
392 {1, "In-Band negotiation not possible"},
396 static const value_string h248_pkg_annexc_userrate_values[] = {
397 {0x0,"E-Bit specified I.460 or higher negotiated in-band"},
398 {0x1,"0.6 kbps (X.1)"},
400 {0x3,"2.4 kbps (X.1)"},
402 {0x5,"4.8 kbps (X.1)"},
404 {0x7,"8 kbps (I.460)"},
405 {0x8,"9.6 kbps (X.1)"},
407 {0xa,"16 kbps (I.460)"},
409 {0xc,"32 kbps (I.460)"},
410 {0xd,"38.4 kbps (V.110)"},
411 {0xe,"48 kbps (X.1)"},
414 {0x12,"57.6 kbps (V.14 extended)"},
415 {0x13,"28.8 kbps (V.110)"},
416 {0x14,"24 kbps (V.110)"},
417 {0x15,"0.1345 kbps (X.1)"},
418 {0x16,"0.100 kbps (X.1)"},
419 {0x17,"0.075/1.2 kbps (X.1)"},
420 {0x18,"1.2/0.075 kbps (X.1)"},
421 {0x19,"0.050 kbps (X.1)"},
422 {0x1a,"0.075 kbps (X.1)"},
423 {0x1b,"0.110 kbps (X.1)"},
424 {0x1c,"0.150 kbps (X.1)"},
425 {0x1d,"0.200 kbps (X.1)"},
426 {0x1e,"0.300 kbps (X.1)"},
427 {0x1f,"12 kbps (X.1)"},
432 static const value_string h248_pkg_annexc_intrate_values[] = {
441 static const value_string h248_pkg_annexc_nictx_values[] = {
442 {0,"Not required to transmit with NIC"},
443 {1,"Required to transmit with NIC"},
447 static const value_string h248_pkg_annexc_nicrx_values[] = {
448 {0,"Cannot accept data with NIC"},
449 {1,"Can accept data with NIC"},
454 static const value_string h248_pkg_annexc_flowconttx_values[] = {
460 static const value_string h248_pkg_annexc_flowcontrx_values[] = {
461 {0,"Cannot accept data with flow control mechanism"},
462 {1,"Can accept data with flow control mechanism"},
466 static const value_string h248_pkg_annexc_rateadapthdr_values[] = {
472 static const value_string h248_pkg_annexc_multiframe_values[] = {
478 static const value_string h248_pkg_annexc_opmode_values[] = {
479 {0,"bit transparent"},
480 {1,"protocol sensitive"},
484 static const value_string h248_pkg_annexc_llidnegot_values[] = {
485 {0,"Default, LLI=256 only"},
486 {1,"Full protocol negotiation"},
490 static const value_string h248_pkg_annexc_assign_values[] = {
491 {0,"Originator is default assignee"},
492 {1,"Originator is assignor only"},
496 static const value_string h248_pkg_annexc_inbandneg_values[] = {
497 {0,"negotiation on temporary signalling connection"},
498 {1,"negotiation in-band"},
502 static const value_string h248_pkg_annexc_stopbits_values[] = {
511 static const value_string h248_pkg_annexc_databits_values[] = {
520 static const value_string h248_pkg_annexc_parity_values[] = {
530 static const value_string h248_pkg_annexc_duplexmode_values[] = {
537 static const value_string h248_pkg_annexc_modem_values[] = {
538 {0x00,"National Use"},
539 {0x01,"National Use"},
540 {0x02,"National Use"},
541 {0x03,"National Use"},
542 {0x04,"National Use"},
543 {0x05,"National Use"},
559 {0x20,"National Use"},
560 {0x21,"National Use"},
561 {0x22,"National Use"},
562 {0x23,"National Use"},
563 {0x24,"National Use"},
564 {0x25,"National Use"},
565 {0x26,"National Use"},
566 {0x27,"National Use"},
567 {0x28,"National Use"},
568 {0x29,"National Use"},
569 {0x2a,"National Use"},
570 {0x2b,"National Use"},
571 {0x2c,"National Use"},
572 {0x2d,"National Use"},
573 {0x2e,"National Use"},
574 {0x2f,"National Use"},
576 {0x30,"User Specified"},
577 {0x31,"User Specified"},
578 {0x32,"User Specified"},
579 {0x33,"User Specified"},
580 {0x34,"User Specified"},
581 {0x35,"User Specified"},
582 {0x36,"User Specified"},
583 {0x37,"User Specified"},
584 {0x38,"User Specified"},
585 {0x39,"User Specified"},
586 {0x3a,"User Specified"},
587 {0x3b,"User Specified"},
588 {0x3c,"User Specified"},
589 {0x3d,"User Specified"},
590 {0x3e,"User Specified"},
591 {0x3f,"User Specified"},
597 static const value_string h248_pkg_annexc_layer2prot_values[] = {
599 {0x6,"X.25, link layer"},
600 {0xC,"LLC (ISO/IEC 8802-2)"},
604 static const value_string h248_pkg_annexc_layer3prot_values[] = {
606 {0x6,"X.25, packet layer"},
607 {0xC,"IP, ISO/IEC TR 9577"},
611 static const value_string h248_pkg_annexc_addlayer3prot_values[] = {
612 {0xCC,"IP (RFC 791)"},
613 {0xCF,"PPP (RFC 1661)"},
617 static const value_string h248_pkg_annexc_nci_satellite_values[] _U_ = {
618 {0x0,"no satellite circuit"},
619 {0x1,"one satellite circuit"},
620 {0x2,"two satellite circuits"},
625 static const value_string h248_pkg_annexc_nci_continuity_values[] _U_ = {
626 {0x0,"continuity check not required"},
627 {0x1,"continuity check required on this circuit"},
628 {0x2,"continuity check performed on a previous circuit"},
633 static const value_string h248_pkg_annexc_nci_echoctl_values[] _U_ = {
634 {0x0,"outgoing echo control device not included"},
635 {0x1,"outgoing echo control device included"},
640 static const value_string h248_pkg_annexc_QosClass_values[] = {
646 {0x5,"Stringent Bi-level"},
650 static const value_string h248_pkg_annexc_AALtype_values[] = {
651 {0x0,"AAL for Voice"},
656 {0x10,"User Defined"},
660 static const value_string h248_pkg_annexc_porttype_values[] = {
667 static const value_string h248_pkg_annexc_aal1st_values[] = {
669 {0x1,"voiceband signal transport on 64kbps"},
670 {0x2,"circuit transport"},
671 {0x4,"high quality audio signal transport"},
672 {0x5,"video signal transport"},
676 static const value_string h248_pkg_annexc_cbrr_values[] = {
686 {0x13,"139264 kbps"},
687 {0x40,"n * 64 kbps"},
692 static const value_string h248_pkg_annexc_scri_values[] = {
700 static const value_string h248_pkg_annexc_ecm_values[] = {
708 static const value_string h248_pkg_annexc_tmrsr_values[] = {
714 static const value_string h248_pkg_annexc_contcheck_values[] = {
719 static const value_string h248_pkg_annexc_itc_values[] = {
725 static const value_string h248_pkg_annexc_transmode_values[] = {
731 static const value_string h248_pkg_annexc_transrate_values[] = {
738 static void dissect_h248_annexc_acodec(proto_tree* tree,
742 h248_curr_info_t* h248_info _U_,
748 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
749 dissect_ber_octet_string(implicit_p ? *((gboolean*)implicit_p) : FALSE, &asn1_ctx, tree, tvb, 0, hfid, &new_tvb);
751 tree = proto_item_add_subtree(asn1_ctx.created_item,ett_codec);
752 len = tvb_length(new_tvb);
753 dissect_codec_mode(tree,new_tvb,0,len);
756 static void dissect_h248_annexc_BIR(proto_tree* tree,
760 h248_curr_info_t* h248_info,
762 tvbuff_t* new_tvb = NULL;
765 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
766 dissect_ber_octet_string(implicit_p ? *((gboolean*)implicit_p) : FALSE, &asn1_ctx, tree, tvb, 0, hfid, &new_tvb);
768 if ( new_tvb && h248_info->term && ! h248_info->term->bir ) {
769 h248_info->term->bir = wmem_strdup(wmem_file_scope(), tvb_bytes_to_ep_str(new_tvb,0,tvb_length(new_tvb)));
773 static void dissect_h248_annexc_NSAP(proto_tree* tree,
777 h248_curr_info_t* h248_info,
779 tvbuff_t* new_tvb = NULL;
782 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
783 dissect_ber_octet_string(implicit_p ? *((gboolean*)implicit_p) : FALSE, &asn1_ctx, tree, tvb, 0, hfid, &new_tvb);
785 dissect_nsap(new_tvb, 0,tvb_length(new_tvb), tree);
786 if ( h248_info->term && ! h248_info->term->nsap) {
787 h248_info->term->nsap = wmem_strdup(wmem_file_scope(), tvb_bytes_to_ep_str(new_tvb,0,tvb_length(new_tvb)));
792 static void dissect_h248_annexc_vpvc(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo _U_, int hfid, h248_curr_info_t* h248_info _U_, void* unused _U_) {
793 proto_item* pi = proto_tree_add_item(tree,hfid,tvb,0,2,ENC_BIG_ENDIAN);
794 proto_tree* pt = proto_item_add_subtree(pi,ett_vpvc);
795 proto_tree_add_item(pt,hf_h248_pkg_annexc_vp,tvb,0,2,ENC_BIG_ENDIAN);
796 proto_tree_add_item(pt,hf_h248_pkg_annexc_vc,tvb,2,2,ENC_BIG_ENDIAN);
799 static void dissect_h248_annexc_USI(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo, int hfid, h248_curr_info_t* h248_info _U_, void* implicit_p) {
800 tvbuff_t* new_tvb = NULL;
803 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
804 dissect_ber_octet_string(implicit_p ? *((gboolean*)implicit_p) : FALSE, &asn1_ctx, tree, tvb, 0, hfid, &new_tvb);
806 dissect_q931_bearer_capability_ie(new_tvb, 0, tvb_length(new_tvb), tree);
809 static void dissect_h248_annexc_SDP(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo, int hfid, h248_curr_info_t* h248_info _U_, void* implicit_p _U_) {
812 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
813 dissect_ber_restricted_string( FALSE, BER_UNI_TAG_IA5String,
814 &asn1_ctx, tree, tvb, 0, hfid,
818 gboolean h248_c_implicit = TRUE;
820 static h248_pkg_param_t h248_annexc_package_properties[] = {
821 { 0x1001, &hf_h248_pkg_annexc_media, h248_param_ber_integer, NULL },
822 { 0x1002, &hf_h248_pkg_annexc_transmission_mode, h248_param_ber_integer, NULL },
823 { 0x1003, &hf_h248_pkg_annexc_num_of_channels, h248_param_ber_integer, NULL },
824 { 0x1004, &hf_h248_pkg_annexc_sampling_rate, h248_param_ber_integer, NULL },
825 { 0x1005, &hf_h248_pkg_annexc_bit_rate, h248_param_ber_integer, NULL },
826 { 0x1006, &hf_h248_pkg_annexc_ACodec, dissect_h248_annexc_acodec, NULL },
827 { 0x1007, &hf_h248_pkg_annexc_samplepp, h248_param_ber_integer, NULL },
828 { 0x1008, &hf_h248_pkg_annexc_silence_supp, h248_param_ber_boolean, NULL },
829 { 0x1009, &hf_h248_pkg_annexc_encrypt_type, h248_param_ber_octetstring, NULL }, /* XXX Hand over to what in H.245? */
830 { 0x100A, &hf_h248_pkg_annexc_encrypt_key, h248_param_ber_integer, NULL },
831 { 0x100C, &hf_h248_pkg_annexc_gain, h248_param_ber_integer, NULL },
832 { 0x100D, &hf_h248_pkg_annexc_jitterbuf, h248_param_ber_integer, NULL },
833 { 0x100E, &hf_h248_pkg_annexc_propdelay, h248_param_ber_integer, NULL },
834 { 0x100F, &hf_h248_pkg_annexc_rtp_payload, h248_param_ber_integer, NULL },
836 { 0x2001, &hf_h248_pkg_annexc_h222, h248_param_ber_octetstring, NULL },
837 { 0x2002, &hf_h248_pkg_annexc_h223, h248_param_ber_octetstring, NULL },
838 { 0x2003, &hf_h248_pkg_annexc_v76, h248_param_ber_octetstring, NULL },
839 { 0x2004, &hf_h248_pkg_annexc_h2250, h248_param_ber_octetstring, NULL },
841 { 0x3001, &hf_h248_pkg_annexc_Mediatx, h248_param_ber_integer, NULL },
842 { 0x3002, &hf_h248_pkg_annexc_BIR, dissect_h248_annexc_BIR, NULL },
843 { 0x3003, &hf_h248_pkg_annexc_NSAP, dissect_h248_annexc_NSAP, NULL },
845 { 0x4001, &hf_h248_pkg_annexc_aesa, h248_param_ber_octetstring, NULL },
846 { 0x4002, &hf_h248_pkg_annexc_vp, dissect_h248_annexc_vpvc, NULL },
847 { 0x4003, &hf_h248_pkg_annexc_sc, h248_param_ber_integer, NULL },
848 { 0x4004, &hf_h248_pkg_annexc_bcob, h248_param_ber_integer, NULL },
849 { 0x4005, &hf_h248_pkg_annexc_bbtc, h248_param_ber_integer, NULL },
850 { 0x4006, &hf_h248_pkg_annexc_atc, h248_param_ber_integer, NULL },
851 { 0x4007, &hf_h248_pkg_annexc_stc, h248_param_ber_integer, NULL },
852 { 0x4008, &hf_h248_pkg_annexc_uppc, h248_param_ber_integer, NULL },
853 { 0x4009, &hf_h248_pkg_annexc_pcr0, h248_param_ber_octetstring, NULL },
854 { 0x400a, &hf_h248_pkg_annexc_scr0, h248_param_ber_octetstring, NULL },
855 { 0x400b, &hf_h248_pkg_annexc_mbs0, h248_param_ber_octetstring, NULL },
856 { 0x400c, &hf_h248_pkg_annexc_pcr1, h248_param_ber_octetstring, NULL },
857 { 0x400d, &hf_h248_pkg_annexc_scr1, h248_param_ber_octetstring, NULL },
858 { 0x400e, &hf_h248_pkg_annexc_mbs1, h248_param_ber_octetstring, NULL },
859 { 0x400f, &hf_h248_pkg_annexc_bei, h248_param_ber_boolean, NULL },
860 { 0x4010, &hf_h248_pkg_annexc_ti, h248_param_ber_boolean, NULL },
861 { 0x4011, &hf_h248_pkg_annexc_fd, h248_param_ber_boolean, NULL },
862 { 0x4012, &hf_h248_pkg_annexc_a2pcdv, h248_param_ber_octetstring, NULL },
863 { 0x4013, &hf_h248_pkg_annexc_c2pcdv, h248_param_ber_octetstring, NULL },
864 { 0x4014, &hf_h248_pkg_annexc_appcdv, h248_param_ber_octetstring, NULL },
865 { 0x4015, &hf_h248_pkg_annexc_cppcdv, h248_param_ber_octetstring, NULL },
866 { 0x4016, &hf_h248_pkg_annexc_aclr, h248_param_ber_integer, NULL },
867 { 0x4017, &hf_h248_pkg_annexc_meetd, h248_param_ber_octetstring,NULL },
868 { 0x4018, &hf_h248_pkg_annexc_ceetd, h248_param_ber_octetstring,NULL },
869 { 0x4019, &hf_h248_pkg_annexc_QosClass, h248_param_ber_integer, NULL },
870 { 0x401A, &hf_h248_pkg_annexc_AALtype, h248_param_ber_integer, NULL },
872 { 0x5001, &hf_h248_pkg_annexc_dlci, h248_param_ber_integer, NULL },
873 { 0x5002, &hf_h248_pkg_annexc_cid, h248_param_ber_integer, NULL },
874 { 0x5003, &hf_h248_pkg_annexc_sid, h248_param_ber_integer, NULL },
875 { 0x5004, &hf_h248_pkg_annexc_ppt, h248_param_ber_integer, NULL },
877 { 0x6001, &hf_h248_pkg_annexc_ipv4, h248_param_ber_octetstring, NULL },
878 { 0x6002, &hf_h248_pkg_annexc_ipv6, h248_param_ber_octetstring,NULL },
879 { 0x6003, &hf_h248_pkg_annexc_port, h248_param_ber_integer, NULL },
880 { 0x6004, &hf_h248_pkg_annexc_porttype, h248_param_ber_integer, NULL },
882 { 0x7001, &hf_h248_pkg_annexc_aesa, h248_param_ber_octetstring, NULL },
883 { 0x7002, &hf_h248_pkg_annexc_alc, h248_param_ber_octetstring,NULL }, /* from ALCAP */
884 { 0x7003, &hf_h248_pkg_annexc_sscs, h248_param_ber_octetstring, NULL },
885 { 0x7004, &hf_h248_pkg_annexc_sut, h248_param_ber_octetstring, NULL },
886 { 0x7005, &hf_h248_pkg_annexc_tci, h248_param_ber_boolean, NULL },
887 { 0x7006, &hf_h248_pkg_annexc_timer_cu, h248_param_ber_octetstring, NULL },
888 { 0x7007, &hf_h248_pkg_annexc_maxcpssdu, h248_param_ber_integer, NULL },
889 { 0x7008, &hf_h248_pkg_annexc_cid, h248_param_ber_integer, NULL },
891 { 0x8001, &hf_h248_pkg_annexc_aal1st, h248_param_ber_integer, NULL },
892 { 0x8002, &hf_h248_pkg_annexc_cbrr, h248_param_ber_integer, NULL },
893 { 0x8003, &hf_h248_pkg_annexc_scri, h248_param_ber_integer, NULL },
894 { 0x8004, &hf_h248_pkg_annexc_ecm, h248_param_ber_integer, NULL },
895 { 0x8005, &hf_h248_pkg_annexc_sdbt, h248_param_ber_octetstring,NULL },
896 { 0x8006, &hf_h248_pkg_annexc_pfci, h248_param_ber_integer, NULL },
898 { 0x9001, &hf_h248_pkg_annexc_tmr, h248_param_ber_octetstring, NULL },
899 { 0x9002, &hf_h248_pkg_annexc_tmrsr, h248_param_ber_integer, NULL },
900 { 0x9003, &hf_h248_pkg_annexc_contcheck, h248_param_ber_integer, NULL },
901 { 0x9004, &hf_h248_pkg_annexc_itc, h248_param_ber_integer, NULL },
902 { 0x9005, &hf_h248_pkg_annexc_transmode, h248_param_ber_integer, NULL },
903 { 0x9006, &hf_h248_pkg_annexc_transrate, h248_param_ber_integer, NULL },
904 { 0x9007, &hf_h248_pkg_annexc_mult, h248_param_ber_integer, NULL },
905 { 0x9008, &hf_h248_pkg_annexc_USI, dissect_h248_annexc_USI, NULL },
906 { 0x9009, &hf_h248_pkg_annexc_syncasync, h248_param_ber_integer, NULL },
907 { 0x900A, &hf_h248_pkg_annexc_negotiation, h248_param_ber_integer, NULL },
908 { 0x900B, &hf_h248_pkg_annexc_userrate, h248_param_ber_integer, NULL },
909 { 0x900C, &hf_h248_pkg_annexc_intrate, h248_param_ber_integer, NULL },
910 { 0x900D, &hf_h248_pkg_annexc_nictx, h248_param_ber_boolean, NULL },
911 { 0x900E, &hf_h248_pkg_annexc_nicrx, h248_param_ber_boolean, NULL },
912 { 0x900F, &hf_h248_pkg_annexc_flowconttx, h248_param_ber_boolean, NULL },
913 { 0x9010, &hf_h248_pkg_annexc_flowcontrx, h248_param_ber_boolean, NULL },
914 { 0x9011, &hf_h248_pkg_annexc_rateadapthdr, h248_param_ber_boolean, NULL },
915 { 0x9012, &hf_h248_pkg_annexc_multiframe, h248_param_ber_boolean, NULL },
916 { 0x9013, &hf_h248_pkg_annexc_opmode, h248_param_ber_boolean, NULL },
917 { 0x9014, &hf_h248_pkg_annexc_llidnegot, h248_param_ber_boolean, NULL },
918 { 0x9015, &hf_h248_pkg_annexc_assign, h248_param_ber_boolean, NULL },
919 { 0x9016, &hf_h248_pkg_annexc_inbandneg, h248_param_ber_boolean, NULL },
920 { 0x9017, &hf_h248_pkg_annexc_stopbits, h248_param_ber_integer, NULL },
921 { 0x9018, &hf_h248_pkg_annexc_databits, h248_param_ber_integer, NULL },
922 { 0x9019, &hf_h248_pkg_annexc_parity, h248_param_ber_integer, NULL },
923 { 0x901a, &hf_h248_pkg_annexc_duplexmode, h248_param_ber_integer, NULL },
924 { 0x901b, &hf_h248_pkg_annexc_modem, h248_param_ber_integer, NULL },
925 { 0x901c, &hf_h248_pkg_annexc_layer2prot, h248_param_ber_integer, NULL },
926 { 0x901d, &hf_h248_pkg_annexc_layer3prot, h248_param_ber_integer, NULL },
927 { 0x901e, &hf_h248_pkg_annexc_addlayer3prot, h248_param_ber_integer, NULL },
928 { 0x901f, &hf_h248_pkg_annexc_dialedn, h248_param_ber_octetstring, NULL },
929 { 0x9020, &hf_h248_pkg_annexc_dialingn, h248_param_ber_octetstring, NULL },
930 { 0x9021, &hf_h248_pkg_annexc_echoci, h248_param_ber_integer, NULL },
931 { 0x9022, &hf_h248_pkg_annexc_nci, h248_param_ber_integer, NULL },
932 { 0x9023, &hf_h248_pkg_annexc_USI, dissect_h248_annexc_USI, NULL },
934 { 0xA001, &hf_h248_pkg_annexc_fmsdu, h248_param_ber_octetstring, NULL },
935 { 0xA002, &hf_h248_pkg_annexc_bmsdu, h248_param_ber_octetstring, NULL },
936 { 0xA003, &hf_h248_pkg_annexc_sscs, NULL, NULL },
938 { 0xB001, &hf_h248_pkg_annexc_sdp_v, dissect_h248_annexc_SDP, &h248_c_implicit },
939 { 0xB002, &hf_h248_pkg_annexc_sdp_o, dissect_h248_annexc_SDP, &h248_c_implicit },
940 { 0xB003, &hf_h248_pkg_annexc_sdp_s, dissect_h248_annexc_SDP, &h248_c_implicit },
941 { 0xB004, &hf_h248_pkg_annexc_sdp_i, dissect_h248_annexc_SDP, &h248_c_implicit },
942 { 0xB005, &hf_h248_pkg_annexc_sdp_u, dissect_h248_annexc_SDP, &h248_c_implicit },
943 { 0xB006, &hf_h248_pkg_annexc_sdp_e, dissect_h248_annexc_SDP, &h248_c_implicit },
944 { 0xB007, &hf_h248_pkg_annexc_sdp_p, dissect_h248_annexc_SDP, &h248_c_implicit },
945 { 0xB008, &hf_h248_pkg_annexc_sdp_c, dissect_h248_annexc_SDP, &h248_c_implicit },
946 { 0xB009, &hf_h248_pkg_annexc_sdp_b, dissect_h248_annexc_SDP, &h248_c_implicit },
947 { 0xB00a, &hf_h248_pkg_annexc_sdp_z, dissect_h248_annexc_SDP, &h248_c_implicit },
948 { 0xB00b, &hf_h248_pkg_annexc_sdp_k, dissect_h248_annexc_SDP, &h248_c_implicit },
949 { 0xB00c, &hf_h248_pkg_annexc_sdp_a, dissect_h248_annexc_SDP, &h248_c_implicit },
950 { 0xB00d, &hf_h248_pkg_annexc_sdp_t, dissect_h248_annexc_SDP, &h248_c_implicit },
951 { 0xB00e, &hf_h248_pkg_annexc_sdp_r, dissect_h248_annexc_SDP, &h248_c_implicit },
952 { 0xB00f, &hf_h248_pkg_annexc_sdp_m, dissect_h248_annexc_SDP, &h248_c_implicit },
954 { 0xC001, &hf_h248_pkg_annexc_olc, h248_param_ber_octetstring, NULL },
955 { 0xC002, &hf_h248_pkg_annexc_olcack, h248_param_ber_octetstring, NULL },
956 { 0xC003, &hf_h248_pkg_annexc_olccnf, h248_param_ber_octetstring, NULL },
957 { 0xC004, &hf_h248_pkg_annexc_olcrej, h248_param_ber_octetstring, NULL },
958 { 0xC005, &hf_h248_pkg_annexc_clc, h248_param_ber_octetstring, NULL },
959 { 0xC006, &hf_h248_pkg_annexc_clcack, h248_param_ber_octetstring, NULL },
961 { 0, NULL, NULL, NULL }
964 static h248_package_t h248_annexc_package = {
966 &proto_h248_pkg_annexc,
968 h248_annexc_package_properties_vals,
972 h248_annexc_package_properties, /* properties */
975 NULL /* statistics */
979 void proto_register_h248_annex_c(void) {
980 static hf_register_info hf[] = {
981 { &hf_h248_pkg_annexc_media,
982 { "Media", "h248.pkg.annexc.media", FT_UINT32, BASE_HEX, VALS(h248_annexc_media_vals), 0, "Media Type", HFILL }},
983 { &hf_h248_pkg_annexc_ACodec,
984 { "ACodec", "h248.pkg.annexc.ACodec",
985 FT_BYTES, BASE_NONE, NULL, 0,
987 { &hf_h248_pkg_annexc_Mediatx,
988 { "Mediatx", "h248.pkg.annexc.Mediatx",
989 FT_UINT32, BASE_DEC, VALS(h248_pkg_annexc_Mediatx_vals), 0,
991 { &hf_h248_pkg_annexc_BIR,
992 { "BIR", "h248.pkg.annexc.BIR",
993 FT_BYTES, BASE_NONE, NULL, 0,
995 { &hf_h248_pkg_annexc_NSAP,
996 { "NSAP", "h248.pkg.annexc.NSAP",
997 FT_BYTES, BASE_NONE, NULL, 0,
999 { &hf_h248_pkg_annexc_transmission_mode,
1000 { "Transmission Mode", "h248.pkg.annexc.transmission_mode",
1001 FT_UINT32, BASE_DEC, VALS(h248_annexc_transmission_mode), 0,
1003 { &hf_h248_pkg_annexc_num_of_channels,
1004 { "Number of Channels", "h248.pkg.annexc.num_of_channels",
1005 FT_UINT32, BASE_DEC, NULL, 0,
1007 { &hf_h248_pkg_annexc_sampling_rate,
1008 { "Sampling Rate", "h248.pkg.annexc.sampling_rate",
1009 FT_UINT32, BASE_DEC, NULL, 0,
1011 { &hf_h248_pkg_annexc_bit_rate,
1012 { "Bit Rate", "h248.pkg.annexc.bit_rate",
1013 FT_UINT32, BASE_DEC, NULL, 0,
1015 { &hf_h248_pkg_annexc_samplepp,
1016 { "Samplepp", "h248.pkg.annexc.samplepp",
1017 FT_UINT32, BASE_DEC, NULL, 0,
1019 { &hf_h248_pkg_annexc_silence_supp,
1020 { "SilenceSupp", "h248.pkg.annexc.silence_supp",
1021 FT_BOOLEAN, BASE_NONE, NULL, 0x0,
1022 "Silence Suppression", HFILL }},
1023 { &hf_h248_pkg_annexc_encrypt_type,
1024 { "Encrypttype", "h248.pkg.annexc.encrypt_type",
1025 FT_BYTES, BASE_NONE, NULL, 0,
1026 "Encryption Type", HFILL }},
1027 { &hf_h248_pkg_annexc_encrypt_key,
1028 { "Encrypt Key", "h248.pkg.annexc.encrypt_key",
1029 FT_UINT32, BASE_DEC, NULL, 0,
1030 "Encryption Key", HFILL }},
1031 { &hf_h248_pkg_annexc_gain,
1032 { "Gain", "h248.pkg.annexc.gain",
1033 FT_UINT32, BASE_DEC, NULL, 0,
1034 "Gain (dB)", HFILL }},
1035 { &hf_h248_pkg_annexc_jitterbuf,
1036 { "JitterBuff", "h248.pkg.annexc.jitterbuf",
1037 FT_UINT32, BASE_DEC, NULL, 0,
1038 "Jitter Buffer Size (ms)", HFILL }},
1039 { &hf_h248_pkg_annexc_propdelay,
1040 { "Propagation Delay", "h248.pkg.annexc.encrypt_type",
1041 FT_UINT32, BASE_DEC, NULL, 0,
1042 "Propagation Delay (ms)", HFILL }},
1043 { &hf_h248_pkg_annexc_rtp_payload,
1044 { "RTP Payload type", "h248.pkg.annexc.rtp_payload",
1045 FT_UINT32, BASE_DEC, NULL, 0,
1046 "Payload type in RTP Profile", HFILL }},
1047 { &hf_h248_pkg_annexc_h222,
1048 { "H222LogicalChannelParameters", "h248.pkg.annexc.h222",
1049 FT_BYTES, BASE_NONE, NULL, 0,
1051 { &hf_h248_pkg_annexc_h223,
1052 { "H223LogicalChannelParameters", "h248.pkg.annexc.h223",
1053 FT_BYTES, BASE_NONE, NULL, 0,
1055 { &hf_h248_pkg_annexc_v76,
1056 { "V76LogicalChannelParameters", "h248.pkg.annexc.v76",
1057 FT_BYTES, BASE_NONE, NULL, 0,
1059 { &hf_h248_pkg_annexc_h2250,
1060 { "H2250LogicalChannelParameters", "h248.pkg.annexc.h2250",
1061 FT_BYTES, BASE_NONE, NULL, 0,
1063 { &hf_h248_pkg_annexc_aesa,
1064 { "AESA", "h248.pkg.annexc.aesa",
1065 FT_BYTES, BASE_NONE, NULL, 0,
1066 "ATM End System Address", HFILL }},
1067 { &hf_h248_pkg_annexc_vp,
1068 { "VPI", "h248.pkg.annexc.vpi",
1069 FT_UINT16, BASE_DEC, NULL, 0,
1070 "Virtual Path Identifier", HFILL }},
1071 { &hf_h248_pkg_annexc_vc,
1072 { "VCI", "h248.pkg.annexc.vci",
1073 FT_UINT16, BASE_DEC, NULL, 0,
1074 "Virtual Circuit Identifier", HFILL }},
1075 { &hf_h248_pkg_annexc_sc,
1076 { "Service Class", "h248.pkg.annexc.sc",
1077 FT_UINT32, BASE_DEC, NULL, 0,
1079 { &hf_h248_pkg_annexc_bcob,
1080 { "BCOB", "h248.pkg.annexc.bcob",
1081 FT_UINT8, BASE_DEC, NULL, 0x1F,
1082 "Broadband Bearer Class", HFILL }},
1083 { &hf_h248_pkg_annexc_bbtc,
1084 { "BBTC", "h248.pkg.annexc.bbtc",
1085 FT_UINT8, BASE_DEC, NULL, 0x3F,
1086 "Broadband Transfer Capability", HFILL }},
1087 { &hf_h248_pkg_annexc_atc,
1088 { "ATC", "h248.pkg.annexc.atc",
1089 FT_UINT32, BASE_DEC, VALS(h248_pkg_annexc_atc_values), 0x0,
1090 "ATM Traffic Capability", HFILL }},
1091 { &hf_h248_pkg_annexc_stc,
1092 { "STC", "h248.pkg.annexc.stc",
1093 FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_stc_values), 0x03,
1094 "Susceptibility to Clipping", HFILL }},
1095 { &hf_h248_pkg_annexc_uppc,
1096 { "UPPC", "h248.pkg.annexc.uppc",
1097 FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_uppc_values), 0x03,
1098 "User Plane Connection Configuration", HFILL }},
1100 { &hf_h248_pkg_annexc_pcr0,
1101 { "PCR0", "h248.pkg.annexc.pcr0",
1102 FT_UINT24, BASE_DEC, NULL, 0,
1103 "Peak Cell Rate for CLP=0", HFILL }},
1104 { &hf_h248_pkg_annexc_scr0,
1105 { "SCR0", "h248.pkg.annexc.scr0",
1106 FT_UINT24, BASE_DEC, NULL, 0,
1107 "Sustained Cell Rate for CLP=0", HFILL }},
1108 { &hf_h248_pkg_annexc_mbs0,
1109 { "MBS0", "h248.pkg.annexc.mbs0",
1110 FT_UINT24, BASE_DEC, NULL, 0,
1111 "Maximum Burst Size for CLP=0", HFILL }},
1113 { &hf_h248_pkg_annexc_pcr1,
1114 { "PCR1", "h248.pkg.annexc.pcr1",
1115 FT_UINT24, BASE_DEC, NULL, 0,
1116 "Peak Cell Rate for CLP=1", HFILL }},
1117 { &hf_h248_pkg_annexc_scr1,
1118 { "SCR1", "h248.pkg.annexc.scr1",
1119 FT_UINT24, BASE_DEC, NULL, 0,
1120 "Sustained Cell Rate for CLP=1", HFILL }},
1121 { &hf_h248_pkg_annexc_mbs1,
1122 { "MBS1", "h248.pkg.annexc.mbs1",
1123 FT_UINT24, BASE_DEC, NULL, 0,
1124 "Maximum Burst Size for CLP=1", HFILL }},
1126 { &hf_h248_pkg_annexc_bei,
1127 { "BEI", "h248.pkg.annexc.bei",
1128 FT_BOOLEAN, BASE_NONE, NULL, 0x0,
1129 "Best Effort Indicator", HFILL }},
1130 { &hf_h248_pkg_annexc_ti,
1131 { "TI", "h248.pkg.annexc.ti",
1132 FT_BOOLEAN, BASE_NONE, NULL, 0x0,
1133 "Tagging Indicator", HFILL }},
1134 { &hf_h248_pkg_annexc_fd,
1135 { "FD", "h248.pkg.annexc.fd",
1136 FT_BOOLEAN, BASE_NONE, NULL, 0x0,
1137 "Frame Discard", HFILL }},
1139 { &hf_h248_pkg_annexc_a2pcdv,
1140 { "A2PCDV", "h248.pkg.annexc.a2pcdv",
1141 FT_UINT24, BASE_DEC, NULL, 0,
1142 "Acceptable 2 point CDV", HFILL }},
1143 { &hf_h248_pkg_annexc_c2pcdv,
1144 { "C2PCDV", "h248.pkg.annexc.c2pcdv",
1145 FT_UINT24, BASE_DEC, NULL, 0,
1146 "Cumulative 2 point CDV", HFILL }},
1147 { &hf_h248_pkg_annexc_appcdv,
1148 { "APPCDV", "h248.pkg.annexc.appcdv",
1149 FT_UINT24, BASE_DEC, NULL, 0,
1150 "Acceptable Point to Point CDV", HFILL }},
1151 { &hf_h248_pkg_annexc_cppcdv,
1152 { "CPPCDV", "h248.pkg.annexc.cppcdv",
1153 FT_UINT24, BASE_DEC, NULL, 0,
1154 "Cumulative Point to Point CDV", HFILL }},
1155 { &hf_h248_pkg_annexc_aclr,
1156 { "ACLR", "h248.pkg.annexc.aclr",
1157 FT_UINT8, BASE_DEC, NULL, 0,
1158 "Acceptable Cell Loss Ratio (Q.2965.2 ATMF UNI 4.0)", HFILL }},
1160 { &hf_h248_pkg_annexc_meetd,
1161 { "MEETD", "h248.pkg.annexc.meetd",
1162 FT_UINT16, BASE_DEC, NULL, 0,
1163 "Maximum End-to-End Transit Delay (Q.2965.2 ATMF UNI 4.0)", HFILL }},
1164 { &hf_h248_pkg_annexc_ceetd,
1165 { "CEETD", "h248.pkg.annexc.ceetd",
1166 FT_UINT16, BASE_DEC, NULL, 0,
1167 "Cumulative End-to-End Transit Delay (Q.2965.2 ATMF UNI 4.0)", HFILL }},
1168 { &hf_h248_pkg_annexc_QosClass,
1169 { "QosClass", "h248.pkg.annexc.qosclass",
1170 FT_UINT16, BASE_DEC, VALS(h248_pkg_annexc_QosClass_values), 0,
1171 "QoS Class (Q.2965.1)", HFILL }},
1172 { &hf_h248_pkg_annexc_AALtype,
1173 { "AALtype", "h248.pkg.annexc.aaltype",
1174 FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_AALtype_values), 0,
1175 "AAL Type", HFILL }},
1177 { &hf_h248_pkg_annexc_dlci,
1178 { "DLCI", "h248.pkg.annexc.dlci",
1179 FT_UINT32, BASE_DEC, NULL, 0,
1180 "Data Link Connection ID (FR)", HFILL }},
1181 { &hf_h248_pkg_annexc_cid,
1182 { "CID", "h248.pkg.annexc.cid",
1183 FT_UINT32, BASE_DEC, NULL, 0,
1184 "Channel-Id", HFILL }},
1185 { &hf_h248_pkg_annexc_sid,
1186 { "SID", "h248.pkg.annexc.sid",
1187 FT_UINT32, BASE_DEC, NULL, 0,
1188 "Silence Insertion Descriptor", HFILL }},
1189 { &hf_h248_pkg_annexc_ppt,
1190 { "PPT", "h248.pkg.annexc.ppt",
1191 FT_UINT32, BASE_DEC, NULL, 0,
1192 "Primary Payload Type", HFILL }},
1194 { &hf_h248_pkg_annexc_ipv4,
1195 { "IPv4", "h248.pkg.annexc.ipv4",
1196 FT_IPv4, BASE_NONE, NULL, 0,
1197 "IPv4 Address", HFILL }},
1198 { &hf_h248_pkg_annexc_ipv6,
1199 { "IPv6", "h248.pkg.annexc.ipv6",
1200 FT_IPv6, BASE_NONE, NULL, 0,
1201 "IPv6 Address", HFILL }},
1202 { &hf_h248_pkg_annexc_port,
1203 { "Port", "h248.pkg.annexc.port",
1204 FT_UINT16, BASE_DEC, NULL, 0,
1206 { &hf_h248_pkg_annexc_porttype,
1207 { "PortType", "h248.pkg.annexc.porttype",
1208 FT_UINT32, BASE_DEC, VALS(h248_pkg_annexc_porttype_values), 0,
1209 "Port Type", HFILL }},
1211 { &hf_h248_pkg_annexc_alc,
1212 { "ALC", "h248.pkg.annexc.alc",
1213 FT_BYTES, BASE_NONE, NULL, 0,
1214 "AAL2 Link Characteristics", HFILL }},
1215 { &hf_h248_pkg_annexc_sut,
1216 { "SUT", "h248.pkg.annexc.sut",
1217 FT_BYTES, BASE_NONE, NULL, 0,
1218 "Served User Transport", HFILL }},
1219 { &hf_h248_pkg_annexc_tci,
1220 { "TCI", "h248.pkg.annexc.tci",
1221 FT_BOOLEAN, BASE_NONE, NULL, 0x0,
1222 "Test Connection Indicator", HFILL }},
1223 { &hf_h248_pkg_annexc_timer_cu,
1224 { "Timer CU", "h248.pkg.annexc.timer_cu",
1225 FT_UINT32, BASE_DEC, NULL, 0,
1226 "Milliseconds to hold the partially filled cell before sending", HFILL }},
1227 { &hf_h248_pkg_annexc_maxcpssdu,
1228 { "Max CPS SDU", "h248.pkg.annexc.maxcpssdu",
1229 FT_UINT8, BASE_DEC, NULL, 0,
1230 "Maximum Common Part Sublayer Service Data Unit size", HFILL }},
1232 { &hf_h248_pkg_annexc_aal1st,
1233 { "AAL1ST", "h248.pkg.annexc.aal1st",
1234 FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_aal1st_values), 0,
1235 "AAL1 subtype", HFILL }},
1236 { &hf_h248_pkg_annexc_cbrr,
1237 { "CBRR", "h248.pkg.annexc.cbrr",
1238 FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_cbrr_values), 0,
1239 "CBR rate", HFILL }},
1240 { &hf_h248_pkg_annexc_scri,
1241 { "SCRI", "h248.pkg.annexc.scri",
1242 FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_scri_values), 0,
1243 "Source Clock frequency Recovery Method", HFILL }},
1244 { &hf_h248_pkg_annexc_ecm,
1245 { "ECM", "h248.pkg.annexc.ecm",
1246 FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_ecm_values), 0,
1247 "Error Correction Method", HFILL }},
1248 { &hf_h248_pkg_annexc_sdbt,
1249 { "SDBT", "h248.pkg.annexc.sdbt",
1250 FT_UINT16, BASE_DEC, NULL, 0,
1251 "Structured Data Transfer Blocksize", HFILL }},
1252 { &hf_h248_pkg_annexc_pfci,
1253 { "PFCI", "h248.pkg.annexc.pfci",
1254 FT_UINT8, BASE_DEC, NULL, 0,
1255 "Partially Filled Cells Identifier", HFILL }},
1257 { &hf_h248_pkg_annexc_tmr,
1258 { "TMR", "h248.pkg.annexc.tmr",
1259 FT_UINT8, BASE_HEX|BASE_EXT_STRING, &isup_transmission_medium_requirement_value_ext, 0,
1260 "Transmission Medium Requirement", HFILL }},
1261 { &hf_h248_pkg_annexc_tmrsr,
1262 { "TMSR", "h248.pkg.annexc.tmsr",
1263 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_tmrsr_values), 0,
1264 "Transmission Medium Requirement Subrate", HFILL }},
1265 { &hf_h248_pkg_annexc_contcheck,
1266 { "Continuity Check", "h248.pkg.annexc.tmsr",
1267 FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_contcheck_values), 0x0C,
1270 { &hf_h248_pkg_annexc_itc,
1271 { "ITC", "h248.pkg.annexc.itc",
1272 FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_itc_values), 0x1f,
1273 "Information Transfer Capability", HFILL }},
1274 { &hf_h248_pkg_annexc_transmode,
1275 { "TransMode", "h248.pkg.annexc.transmode",
1276 FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_transmode_values), 0x60,
1277 "Transfer Mode", HFILL }},
1278 { &hf_h248_pkg_annexc_transrate,
1279 { "TransRate", "h248.pkg.annexc.transrate",
1280 FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_transrate_values), 0x1f,
1281 "Transfer Rate", HFILL }},
1282 { &hf_h248_pkg_annexc_mult,
1283 { "Rate Multiplier", "h248.pkg.annexc.mult",
1284 FT_UINT8, BASE_DEC, NULL, 0,
1286 { &hf_h248_pkg_annexc_syncasync,
1287 { "SyncAsync", "h248.pkg.annexc.syncasync",
1288 FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_syncasync_values), 0x80,
1289 "Synchronous/Asynchronous", HFILL }},
1290 { &hf_h248_pkg_annexc_negotiation,
1291 { "UPPC", "h248.pkg.annexc.negotiation",
1292 FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_negotiation_values), 0x40,
1293 "Negotiation", HFILL }},
1295 { &hf_h248_pkg_annexc_userrate,
1296 { "Userrate", "h248.pkg.annexc.userrate",
1297 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_userrate_values), 0x1f,
1298 "User Rate", HFILL }},
1299 { &hf_h248_pkg_annexc_intrate,
1300 { "UPPC", "h248.pkg.annexc.intrate",
1301 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_intrate_values), 0xc0,
1302 "Intermediate Rate", HFILL }},
1303 { &hf_h248_pkg_annexc_nictx,
1304 { "nictx", "h248.pkg.annexc.nictx",
1305 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_nictx_values), 0xc0,
1306 "Network independent clock on transmission", HFILL }},
1307 { &hf_h248_pkg_annexc_nicrx,
1308 { "nicrx", "h248.pkg.annexc.nicrx",
1309 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_nicrx_values), 0xc0,
1310 "Network independent clock on reception", HFILL }},
1311 { &hf_h248_pkg_annexc_flowconttx,
1312 { "flowconttx", "h248.pkg.annexc.flowconttx",
1313 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_flowconttx_values), 0xc0,
1314 "Flow Control on Transmission", HFILL }},
1315 { &hf_h248_pkg_annexc_flowcontrx,
1316 { "flowcontrx", "h248.pkg.annexc.flowcontrx",
1317 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_flowcontrx_values), 0xc0,
1318 "Flow Control on Reception", HFILL }},
1319 { &hf_h248_pkg_annexc_rateadapthdr,
1320 { "rateadapthdr", "h248.pkg.annexc.rateadapthdr",
1321 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_rateadapthdr_values), 0xc0,
1322 "Rate Adaptation Header/No-Header", HFILL }},
1323 { &hf_h248_pkg_annexc_multiframe,
1324 { "multiframe", "h248.pkg.annexc.multiframe",
1325 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_multiframe_values), 0xc0,
1326 "Multiple Frame establishment support in datalink", HFILL }},
1327 { &hf_h248_pkg_annexc_opmode,
1328 { "OPMODE", "h248.pkg.annexc.opmode",
1329 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_opmode_values), 0xc0,
1330 "Mode of operation", HFILL }},
1331 { &hf_h248_pkg_annexc_llidnegot,
1332 { "llidnegot", "h248.pkg.annexc.llidnegot",
1333 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_llidnegot_values), 0xc0,
1334 "Logical Link Identifier negotiation", HFILL }},
1336 { &hf_h248_pkg_annexc_assign,
1337 { "llidnegot", "h248.pkg.annexc.assign",
1338 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_assign_values), 0xc0,
1339 "Assignor/Assignee", HFILL }},
1340 { &hf_h248_pkg_annexc_inbandneg,
1341 { "inbandneg", "h248.pkg.annexc.inbandneg",
1342 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_inbandneg_values), 0xc0,
1343 "In-band/Out-band negotiation", HFILL }},
1344 { &hf_h248_pkg_annexc_stopbits,
1345 { "stopbits", "h248.pkg.annexc.stopbits",
1346 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_stopbits_values), 0xc0,
1347 "Number of stop bits", HFILL }},
1348 { &hf_h248_pkg_annexc_databits,
1349 { "databits", "h248.pkg.annexc.databits",
1350 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_databits_values), 0xc0,
1351 "Number of data bits", HFILL }},
1352 { &hf_h248_pkg_annexc_parity,
1353 { "parity", "h248.pkg.annexc.parity",
1354 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_parity_values), 0xe0,
1355 "Parity Information Bits", HFILL }},
1356 { &hf_h248_pkg_annexc_duplexmode,
1357 { "duplexmode", "h248.pkg.annexc.duplexmode",
1358 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_duplexmode_values), 0x80,
1359 "Mode Duplex", HFILL }},
1361 { &hf_h248_pkg_annexc_modem,
1362 { "modem", "h248.pkg.annexc.modem",
1363 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_modem_values), 0xfc,
1364 "Modem Type", HFILL }},
1365 { &hf_h248_pkg_annexc_layer2prot,
1366 { "layer2prot", "h248.pkg.annexc.layer2prot",
1367 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_layer2prot_values), 0x80,
1368 "Layer 2 protocol", HFILL }},
1369 { &hf_h248_pkg_annexc_layer3prot,
1370 { "layer3prot", "h248.pkg.annexc.layer3prot",
1371 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_layer3prot_values), 0x80,
1372 "Layer 3 protocol", HFILL }},
1373 { &hf_h248_pkg_annexc_addlayer3prot,
1374 { "addlayer3prot", "h248.pkg.annexc.addlayer3prot",
1375 FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_addlayer3prot_values), 0x80,
1376 "Additional User Information Layer 3 protocol", HFILL }},
1377 { &hf_h248_pkg_annexc_dialedn,
1378 { "Dialed Number", "h248.pkg.annexc.dialedn",
1379 FT_BYTES, BASE_NONE, NULL, 0,
1381 { &hf_h248_pkg_annexc_dialingn,
1382 { "Dialing Number", "h248.pkg.annexc.dialingn",
1383 FT_BYTES, BASE_NONE, NULL, 0,
1385 { &hf_h248_pkg_annexc_echoci,
1386 { "ECHOCI", "h248.pkg.annexc.echoci",
1387 FT_BYTES, BASE_NONE, NULL, 0,
1388 "Not used", HFILL }},
1389 { &hf_h248_pkg_annexc_nci,
1390 { "NCI", "h248.pkg.annexc.nci",
1391 FT_UINT8, BASE_HEX, NULL, 0xff,
1392 "Nature of Connection Indicator", HFILL }},
1395 { &hf_h248_pkg_annexc_USI,
1396 { "USI", "h248.pkg.annexc.USI",
1397 FT_BYTES, BASE_NONE, NULL, 0,
1398 "User Service Information", HFILL }},
1401 { &hf_h248_pkg_annexc_fmsdu,
1402 { "fmsdu", "h248.pkg.annexc.fmsdu",
1403 FT_BYTES, BASE_NONE, NULL, 0,
1405 { &hf_h248_pkg_annexc_bmsdu,
1406 { "bmsdu", "h248.pkg.annexc.bmsdu",
1407 FT_BYTES, BASE_NONE, NULL, 0,
1409 { &hf_h248_pkg_annexc_sscs,
1410 { "sscs", "h248.pkg.annexc.sscs",
1411 FT_BYTES, BASE_NONE, NULL, 0,
1415 { &hf_h248_pkg_annexc_sdp_v,
1416 { "sdp_v", "h248.pkg.annexc.sdp_v",
1417 FT_STRING, BASE_NONE, NULL, 0,
1419 { &hf_h248_pkg_annexc_sdp_o,
1420 { "sdp_o", "h248.pkg.annexc.sdp_o",
1421 FT_STRING, BASE_NONE, NULL, 0,
1423 { &hf_h248_pkg_annexc_sdp_s,
1424 { "sdp_s", "h248.pkg.annexc.sdp_s",
1425 FT_STRING, BASE_NONE, NULL, 0,
1427 { &hf_h248_pkg_annexc_sdp_i,
1428 { "sdp_i", "h248.pkg.annexc.sdp_i",
1429 FT_STRING, BASE_NONE, NULL, 0,
1431 { &hf_h248_pkg_annexc_sdp_u,
1432 { "sdp_u", "h248.pkg.annexc.sdp_u",
1433 FT_STRING, BASE_NONE, NULL, 0,
1435 { &hf_h248_pkg_annexc_sdp_e,
1436 { "sdp_e", "h248.pkg.annexc.sdp_e",
1437 FT_STRING, BASE_NONE, NULL, 0,
1439 { &hf_h248_pkg_annexc_sdp_p,
1440 { "sdp_p", "h248.pkg.annexc.sdp_p",
1441 FT_STRING, BASE_NONE, NULL, 0,
1443 { &hf_h248_pkg_annexc_sdp_c,
1444 { "sdp_c", "h248.pkg.annexc.sdp_c",
1445 FT_STRING, BASE_NONE, NULL, 0,
1447 { &hf_h248_pkg_annexc_sdp_b,
1448 { "sdp_b", "h248.pkg.annexc.sdp_b",
1449 FT_STRING, BASE_NONE, NULL, 0,
1451 { &hf_h248_pkg_annexc_sdp_z,
1452 { "sdp_z", "h248.pkg.annexc.sdp_z",
1453 FT_STRING, BASE_NONE, NULL, 0,
1455 { &hf_h248_pkg_annexc_sdp_k,
1456 { "sdp_k", "h248.pkg.annexc.sdp_k",
1457 FT_STRING, BASE_NONE, NULL, 0,
1459 { &hf_h248_pkg_annexc_sdp_a,
1460 { "sdp_a", "h248.pkg.annexc.sdp_a",
1461 FT_STRING, BASE_NONE, NULL, 0,
1463 { &hf_h248_pkg_annexc_sdp_t,
1464 { "sdp_t", "h248.pkg.annexc.sdp_t",
1465 FT_STRING, BASE_NONE, NULL, 0,
1467 { &hf_h248_pkg_annexc_sdp_r,
1468 { "sdp_r", "h248.pkg.annexc.sdp_r",
1469 FT_STRING, BASE_NONE, NULL, 0,
1471 { &hf_h248_pkg_annexc_sdp_m,
1472 { "sdp_m", "h248.pkg.annexc.sdp_m",
1473 FT_STRING, BASE_NONE, NULL, 0,
1476 { &hf_h248_pkg_annexc_olc,
1477 { "OLC", "h248.pkg.annexc.olc",
1478 FT_BYTES, BASE_NONE, NULL, 0,
1479 "Open Logical Channel", HFILL }},
1480 { &hf_h248_pkg_annexc_olcack,
1481 { "OLCack", "h248.pkg.annexc.olcack",
1482 FT_BYTES, BASE_NONE, NULL, 0,
1483 "Open Logical Channel Acknowledge", HFILL }},
1484 { &hf_h248_pkg_annexc_olccnf,
1485 { "OLCcnf", "h248.pkg.annexc.olccnf",
1486 FT_BYTES, BASE_NONE, NULL, 0,
1487 "Open Logical Channel CNF", HFILL }},
1488 { &hf_h248_pkg_annexc_olcrej,
1489 { "OLCrej", "h248.pkg.annexc.olcrej",
1490 FT_BYTES, BASE_NONE, NULL, 0,
1491 "Open Logical Channel Reject", HFILL }},
1492 { &hf_h248_pkg_annexc_clc,
1493 { "CLC", "h248.pkg.annexc.clc",
1494 FT_BYTES, BASE_NONE, NULL, 0,
1495 "Close Logical Channel", HFILL }},
1496 { &hf_h248_pkg_annexc_clcack,
1497 { "CLCack", "h248.pkg.annexc.clcack",
1498 FT_BYTES, BASE_NONE, NULL, 0,
1502 static gint *ett[] = {
1508 proto_h248_pkg_annexc = proto_register_protocol(PNAME, PSNAME, PFNAME);
1510 proto_register_field_array(proto_h248_pkg_annexc, hf, array_length(hf));
1512 proto_register_subtree_array(ett, array_length(ett));
1514 h248_register_package(&h248_annexc_package,MERGE_PKG_HIGH);