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