2006-10-03 17:24:28 +00:00
|
|
|
/*
|
|
|
|
* packet-h248_3gpp.c
|
|
|
|
* 3GPP H.248 Packages
|
|
|
|
*
|
2008-08-05 21:03:46 +00:00
|
|
|
* (c) 2006, Luis E. Garcia Ontanon <luis@ontanon.org>
|
2006-10-03 17:24:28 +00:00
|
|
|
*
|
2006-10-13 17:04:16 +00:00
|
|
|
* $Id$
|
2006-10-03 17:24:28 +00:00
|
|
|
*
|
2007-01-02 14:11:35 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
2007-01-02 17:19:25 +00:00
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2006-10-03 17:24:28 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 22:56:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2006-10-03 17:24:28 +00:00
|
|
|
*/
|
|
|
|
|
2012-09-20 02:03:38 +00:00
|
|
|
#include "config.h"
|
2009-09-28 17:58:47 +00:00
|
|
|
|
2006-10-03 17:24:28 +00:00
|
|
|
#include "packet-h248.h"
|
|
|
|
#define PNAME "H.248 3GPP"
|
|
|
|
#define PSNAME "H2483GPP"
|
2012-08-24 02:02:22 +00:00
|
|
|
#define PFNAME "h248.3gpp"
|
2006-10-03 17:24:28 +00:00
|
|
|
|
2007-04-02 21:47:54 +00:00
|
|
|
#include "packet-isup.h"
|
2012-12-13 20:17:17 +00:00
|
|
|
#include "packet-gsm_a_common.h"
|
2006-10-03 17:24:28 +00:00
|
|
|
|
2011-02-11 21:27:46 +00:00
|
|
|
/*
|
2007-02-21 00:00:49 +00:00
|
|
|
* 3GUP Package
|
|
|
|
* 3GPP TS 29.232 -- 15.1.1
|
|
|
|
*/
|
2006-10-03 17:24:28 +00:00
|
|
|
static int hf_h248_package_3GUP = -1;
|
|
|
|
|
|
|
|
static int hf_h248_package_3GUP_Mode = -1;
|
|
|
|
static int hf_h248_package_3GUP_UPversions = -1;
|
|
|
|
static int hf_h248_package_3GUP_delerrsdu = -1;
|
|
|
|
static int hf_h248_package_3GUP_interface = -1;
|
|
|
|
static int hf_h248_package_3GUP_initdir = -1;
|
|
|
|
|
2007-02-21 00:00:49 +00:00
|
|
|
static gint ett_h248_package_3GUP = -1;
|
2006-10-03 17:24:28 +00:00
|
|
|
|
2007-01-30 06:16:39 +00:00
|
|
|
static gboolean implicit = FALSE;
|
|
|
|
|
2007-02-23 20:57:22 +00:00
|
|
|
static const value_string h248_3GUP_properties_vals[] = {
|
2012-03-13 13:41:28 +00:00
|
|
|
{ 0x0000, "threegup (3G User Plane)" },
|
2007-02-23 20:57:22 +00:00
|
|
|
{ 0x0001, "Mode" },
|
|
|
|
{ 0x0002, "Versions" },
|
|
|
|
{ 0x0003, "delerrsdu" },
|
|
|
|
{ 0x0004, "interface" },
|
|
|
|
{ 0x0005, "initdir" },
|
|
|
|
{0, NULL}
|
|
|
|
};
|
|
|
|
|
2006-10-03 17:24:28 +00:00
|
|
|
static const value_string h248_3GUP_Mode_vals[] = {
|
|
|
|
{ 0x00000001, "Transparent mode" },
|
|
|
|
{ 0x00000002, "Support mode for predefined SDU sizes" },
|
|
|
|
{0, NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string h248_3GUP_upversions_vals[] = {
|
|
|
|
{ 0x01, "Version 1" },
|
|
|
|
{ 0x02, "Version 2" },
|
|
|
|
{ 0x03, "Version 3" },
|
|
|
|
{ 0x04, "Version 4" },
|
|
|
|
{ 0x05, "Version 5" },
|
|
|
|
{ 0x06, "Version 6" },
|
|
|
|
{ 0x07, "Version 7" },
|
|
|
|
{ 0x08, "Version 8" },
|
|
|
|
{ 0x09, "Version 9" },
|
|
|
|
{ 0x0A, "Version 10" },
|
|
|
|
{ 0x0B, "Version 11" },
|
|
|
|
{ 0x0C, "Version 12" },
|
|
|
|
{ 0x0D, "Version 13" },
|
|
|
|
{ 0x0E, "Version 14" },
|
|
|
|
{ 0x0F, "Version 15" },
|
|
|
|
{ 0x10, "Version 16" },
|
|
|
|
{0, NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string h248_3GUP_delerrsdu_vals[] = {
|
|
|
|
{ 0x0001, "Yes" },
|
|
|
|
{ 0x0002, "No" },
|
|
|
|
{ 0x0003, "Not Applicable" },
|
|
|
|
{0, NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string h248_3GUP_interface_vals[] = {
|
|
|
|
{ 0x0001, "RAN (Iu interface)" },
|
2010-12-06 01:34:58 +00:00
|
|
|
{ 0x0002, "CN (Nb interface)" },
|
2006-10-03 17:24:28 +00:00
|
|
|
{0, NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string h248_3GUP_initdir_vals[] = {
|
|
|
|
{ 0x0001, "Incoming" },
|
|
|
|
{ 0x0002, "Outgoing" },
|
|
|
|
{0, NULL}
|
|
|
|
};
|
|
|
|
|
2007-04-14 14:01:53 +00:00
|
|
|
static const value_string h248_3GUP_parameters[] _U_ = {
|
2006-10-03 17:24:28 +00:00
|
|
|
{ 0x0001, "Mode" },
|
|
|
|
{ 0x0002, "UPversions" },
|
|
|
|
{ 0x0003, "Delivery of erroneous SDUs" },
|
|
|
|
{ 0x0004, "Interface" },
|
|
|
|
{ 0x0005, "Initialisation Direction" },
|
|
|
|
{0, NULL}
|
|
|
|
};
|
|
|
|
|
2007-02-23 20:57:22 +00:00
|
|
|
static const h248_pkg_param_t h248_package_3GUP_properties[] = {
|
2007-01-30 06:16:39 +00:00
|
|
|
{ 0x0001, &hf_h248_package_3GUP_Mode, h248_param_ber_integer, &implicit },
|
|
|
|
{ 0x0002, &hf_h248_package_3GUP_UPversions, h248_param_ber_integer, &implicit },
|
|
|
|
{ 0x0003, &hf_h248_package_3GUP_delerrsdu, h248_param_ber_integer, &implicit },
|
|
|
|
{ 0x0004, &hf_h248_package_3GUP_interface, h248_param_ber_integer, &implicit },
|
|
|
|
{ 0x0005, &hf_h248_package_3GUP_initdir, h248_param_ber_integer, &implicit },
|
2007-02-21 00:00:49 +00:00
|
|
|
{ 0x0000, NULL, NULL, NULL }
|
2006-10-03 17:24:28 +00:00
|
|
|
};
|
|
|
|
|
2007-02-23 20:57:22 +00:00
|
|
|
static const h248_package_t h248_package_3GUP = {
|
2006-10-03 17:24:28 +00:00
|
|
|
0x002f,
|
|
|
|
&hf_h248_package_3GUP,
|
|
|
|
&ett_h248_package_3GUP,
|
2007-02-23 20:57:22 +00:00
|
|
|
h248_3GUP_properties_vals,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
2006-10-03 17:24:28 +00:00
|
|
|
h248_package_3GUP_properties,
|
2006-10-13 17:04:16 +00:00
|
|
|
NULL,
|
2006-10-03 17:24:28 +00:00
|
|
|
NULL,
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2007-02-21 00:00:49 +00:00
|
|
|
|
2011-02-11 21:27:46 +00:00
|
|
|
/*
|
2007-02-21 00:00:49 +00:00
|
|
|
* Circuit Switched Data package
|
|
|
|
* 3GPP TS 29.232 -- 15.2.1
|
|
|
|
*/
|
|
|
|
|
|
|
|
static int hf_h248_package_3GCSD = -1;
|
|
|
|
|
|
|
|
static int hf_h248_package_3GCSD_plmnbc = -1;
|
|
|
|
static int hf_h248_package_3GCSD_gsmchancod = -1;
|
|
|
|
static int hf_h248_pkg_3GCSD_evt_protres = -1;
|
|
|
|
static int hf_h248_pkg_3GCSD_evt_protres_result = -1;
|
|
|
|
static int hf_h248_pkg_3GCSD_evt_protres_cause = -1;
|
|
|
|
static int hf_h248_pkg_3GCSD_evt_ratechg = -1;
|
|
|
|
static int hf_h248_pkg_3GCSD_evt_ratechg_rate = -1;
|
|
|
|
static int hf_h248_pkg_3GCSD_sig_actprot = -1;
|
|
|
|
static int hf_h248_pkg_3GCSD_actprot_sig_localpeer = -1;
|
|
|
|
|
|
|
|
static gint ett_h248_package_3GCSD = -1;
|
|
|
|
static gint ett_h248_3GCSD_evt_protres = -1;
|
|
|
|
static gint ett_h248_3GCSD_evt_ratechg = -1;
|
|
|
|
static gint ett_pkg_3GCSD_sig_actprot = -1;
|
|
|
|
|
2012-12-14 02:27:05 +00:00
|
|
|
static void dissect_3gcsd_plmnbc(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo, int hfid, h248_curr_info_t* cu _U_, void* implicit_param) {
|
2012-12-13 20:17:17 +00:00
|
|
|
asn1_ctx_t asn1_ctx;
|
|
|
|
|
|
|
|
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
|
2012-12-14 02:27:05 +00:00
|
|
|
dissect_ber_octet_string(implicit_param ? *((gboolean*)implicit_param) : FALSE, &asn1_ctx, tree, tvb, 0, hfid, NULL);
|
2012-12-13 20:29:46 +00:00
|
|
|
de_bearer_cap(tvb, tree, pinfo, 4, tvb_length(tvb)-4, NULL, 0);
|
2012-12-13 20:17:17 +00:00
|
|
|
}
|
|
|
|
|
2007-02-23 20:57:22 +00:00
|
|
|
static const value_string h248_3GCSD_properties_vals[] = {
|
2012-12-13 20:17:17 +00:00
|
|
|
{ 0x0000, "Circuit Switched Data (threegcsd)"},
|
2007-02-23 20:57:22 +00:00
|
|
|
{ 0x0001, "plmnbc"},
|
|
|
|
{ 0x0002, "gsmchancod"},
|
|
|
|
{0, NULL}
|
|
|
|
};
|
|
|
|
|
2007-04-14 14:01:53 +00:00
|
|
|
static const value_string h248_3GCSD_signals_vals[] _U_ = {
|
2007-02-23 20:57:22 +00:00
|
|
|
{ 0x0001, "actprot" },
|
|
|
|
{0, NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string h248_3GCSD_signal_actprot_vals[] = {
|
|
|
|
{ 0x0001, "localpeer" },
|
|
|
|
{0, NULL}
|
|
|
|
};
|
|
|
|
|
2007-04-14 14:01:53 +00:00
|
|
|
static const value_string h248_3GCSD_events_vals[] _U_ = {
|
2007-02-23 20:57:22 +00:00
|
|
|
{ 0x0001, "protres"},
|
|
|
|
{ 0x0002, "ratechg"},
|
|
|
|
{0, NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string h248_3GCSD_event_protres_vals[] = {
|
|
|
|
{ 0x0001, "result"},
|
|
|
|
{ 0x0002, "cause"},
|
|
|
|
{0, NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string h248_3GCSD_event_ratechg_vals[] = {
|
|
|
|
{ 0x0001, "rate"},
|
|
|
|
{0, NULL}
|
|
|
|
};
|
|
|
|
|
2007-02-21 00:00:49 +00:00
|
|
|
static const value_string h248_3GCSD_evt_protres_result_vals[] = {
|
|
|
|
{1,"Success"},
|
|
|
|
{0,"Failure"},
|
|
|
|
{0,NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string h248_3GCSD_evt_protres_cause_vals[] = {
|
|
|
|
{1,"Unsp"},
|
|
|
|
{2,"V8V34"},
|
|
|
|
{0,NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string h248_3GCSD_actprot_sig_localpeer_vals[] = {
|
|
|
|
{0,"Orig"},
|
|
|
|
{1,"Term"},
|
|
|
|
{0,NULL}
|
|
|
|
};
|
|
|
|
|
2007-02-23 20:57:22 +00:00
|
|
|
static const h248_pkg_param_t h248_package_3GCSD_props[] = {
|
2012-12-13 20:17:17 +00:00
|
|
|
{ 0x0001, &hf_h248_package_3GCSD_plmnbc, dissect_3gcsd_plmnbc, &implicit},
|
2007-02-21 00:00:49 +00:00
|
|
|
{ 0x0002, &hf_h248_package_3GCSD_gsmchancod, h248_param_ber_octetstring, &implicit },
|
|
|
|
{ 0x0000, NULL, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
2007-02-23 20:57:22 +00:00
|
|
|
static const h248_pkg_param_t h248_pkg_3GCSD_evt_protres_params[] = {
|
2007-02-21 00:00:49 +00:00
|
|
|
{ 0x0001, &hf_h248_pkg_3GCSD_evt_protres_result, h248_param_ber_integer, &implicit },
|
|
|
|
{ 0x0002, &hf_h248_pkg_3GCSD_evt_protres_cause, h248_param_ber_integer, &implicit },
|
|
|
|
{ 0, NULL, NULL, NULL}
|
|
|
|
};
|
|
|
|
|
2007-02-23 20:57:22 +00:00
|
|
|
static const h248_pkg_param_t h248_pkg_3GCSD_evt_ratechg_params[] = {
|
2007-02-21 00:00:49 +00:00
|
|
|
{ 0x0001, &hf_h248_pkg_3GCSD_evt_ratechg_rate, h248_param_ber_integer, &implicit },
|
|
|
|
{ 0, NULL, NULL, NULL}
|
|
|
|
};
|
|
|
|
|
2007-02-23 20:57:22 +00:00
|
|
|
static const h248_pkg_evt_t h248_package_3GCSD_evts[] = {
|
|
|
|
{ 0x0001, &hf_h248_pkg_3GCSD_evt_protres, &ett_h248_3GCSD_evt_protres, h248_pkg_3GCSD_evt_protres_params, h248_3GCSD_event_protres_vals},
|
|
|
|
{ 0x0002, &hf_h248_pkg_3GCSD_evt_ratechg, &ett_h248_3GCSD_evt_ratechg, h248_pkg_3GCSD_evt_ratechg_params, h248_3GCSD_event_ratechg_vals},
|
2007-02-25 11:23:49 +00:00
|
|
|
{ 0, NULL, NULL, NULL,NULL}
|
2007-02-21 00:00:49 +00:00
|
|
|
};
|
|
|
|
|
2007-02-23 20:57:22 +00:00
|
|
|
static const h248_pkg_param_t h248_pkg_3GCSD_actprot_sig_params[] = {
|
2007-02-21 00:00:49 +00:00
|
|
|
{ 0x0001, &hf_h248_pkg_3GCSD_actprot_sig_localpeer, h248_param_ber_integer, &implicit },
|
|
|
|
{ 0, NULL, NULL, NULL}
|
|
|
|
};
|
|
|
|
|
2007-02-23 20:57:22 +00:00
|
|
|
static const h248_pkg_sig_t h248_package_3GCSD_sigs[] = {
|
2007-02-25 11:23:49 +00:00
|
|
|
{ 0x0010, &hf_h248_pkg_3GCSD_sig_actprot, &ett_pkg_3GCSD_sig_actprot, h248_pkg_3GCSD_actprot_sig_params, h248_3GCSD_signal_actprot_vals },
|
|
|
|
{ 0, NULL, NULL, NULL,NULL}
|
2007-02-21 00:00:49 +00:00
|
|
|
};
|
|
|
|
|
2007-02-23 20:57:22 +00:00
|
|
|
static const h248_package_t h248_package_3GCSD = {
|
2007-02-21 00:00:49 +00:00
|
|
|
0x0030,
|
|
|
|
&hf_h248_package_3GCSD,
|
|
|
|
&ett_h248_package_3GCSD,
|
2007-02-23 20:57:22 +00:00
|
|
|
h248_3GCSD_properties_vals,
|
2012-12-13 20:17:17 +00:00
|
|
|
h248_3GCSD_signals_vals,
|
|
|
|
h248_3GCSD_events_vals,
|
2007-02-23 20:57:22 +00:00
|
|
|
NULL,
|
2007-02-21 00:00:49 +00:00
|
|
|
h248_package_3GCSD_props,
|
|
|
|
h248_package_3GCSD_sigs,
|
|
|
|
h248_package_3GCSD_evts,
|
2007-02-23 20:57:22 +00:00
|
|
|
NULL
|
|
|
|
};
|
2007-02-21 00:00:49 +00:00
|
|
|
|
|
|
|
|
2011-02-11 21:27:46 +00:00
|
|
|
/*
|
2007-02-21 00:00:49 +00:00
|
|
|
* TFO package
|
|
|
|
* 3GPP TS 29.232 -- 15.2.2
|
|
|
|
*/
|
|
|
|
static int hf_h248_package_3GTFO = -1;
|
2007-02-23 20:57:22 +00:00
|
|
|
|
2007-02-21 00:00:49 +00:00
|
|
|
static int hf_h248_pkg_3GTFO_evt_codec_modify = -1;
|
|
|
|
static int hf_h248_pkg_3GTFO_evt_distant_codec_list = -1;
|
|
|
|
static int hf_h248_pkg_3GTFO_evt_status = -1;
|
|
|
|
static int hf_h248_pkg_3GTFO_enable = -1;
|
|
|
|
static int hf_h248_pkg_3GTFO_codeclist = -1;
|
|
|
|
static int hf_h248_pkg_3GTFO_evt_codec_modify_optimalcodec = -1;
|
|
|
|
static int hf_h248_pkg_3GTFO_evt_distant_codec_list_distlist = -1;
|
|
|
|
static int hf_h248_pkg_3GTFO_evt_status_tfostatus = -1;
|
|
|
|
|
|
|
|
static gint ett_h248_package_3GTFO = -1;
|
|
|
|
static gint ett_h248_3GTFO_evt_status = -1;
|
|
|
|
static gint ett_h248_3GTFO_evt_distant_codec_list = -1;
|
|
|
|
static gint ett_h248_3GTFO_evt_codec_modify = -1;
|
2007-04-02 21:47:54 +00:00
|
|
|
static gint ett_h248_3GTFO_codec_list = -1;
|
|
|
|
static gint ett_h248_3GTFO_codec = -1;
|
|
|
|
|
|
|
|
|
2007-04-13 15:25:33 +00:00
|
|
|
static void dissect_3GTFO_codec_mode(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo, int hfid, h248_curr_info_t* cu _U_, void* ignored _U_) {
|
2007-04-02 21:47:54 +00:00
|
|
|
tvbuff_t* sub_tvb = NULL;
|
|
|
|
gint8 class;
|
|
|
|
gboolean pc;
|
|
|
|
gint32 tag;
|
2007-05-15 05:49:43 +00:00
|
|
|
asn1_ctx_t asn1_ctx;
|
|
|
|
|
|
|
|
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
|
2011-02-11 21:27:46 +00:00
|
|
|
|
2007-04-02 21:47:54 +00:00
|
|
|
get_ber_identifier(tvb, 0, &class, &pc, &tag);
|
2011-02-11 21:27:46 +00:00
|
|
|
|
2007-04-02 21:47:54 +00:00
|
|
|
/* XXX: is this enough to guess it? */
|
2011-04-22 17:31:57 +00:00
|
|
|
if (tag==BER_UNI_TAG_OCTETSTRING) {
|
2007-05-15 05:49:43 +00:00
|
|
|
dissect_ber_octet_string(FALSE, &asn1_ctx, tree, tvb, 0, hfid, &sub_tvb );
|
2011-02-11 21:27:46 +00:00
|
|
|
|
2007-04-02 21:47:54 +00:00
|
|
|
if (sub_tvb) {
|
2008-01-04 12:53:29 +00:00
|
|
|
proto_tree* pt = proto_item_add_subtree(asn1_ctx.created_item, ett_h248_3GTFO_codec);
|
2007-04-02 21:47:54 +00:00
|
|
|
dissect_codec_mode(pt, sub_tvb, 0, tvb_length(tvb));
|
|
|
|
}
|
|
|
|
} else {
|
2011-10-27 20:30:38 +00:00
|
|
|
proto_tree_add_item(tree,hfid,tvb,0,-1,ENC_NA);
|
2007-04-02 21:47:54 +00:00
|
|
|
}
|
2011-02-11 21:27:46 +00:00
|
|
|
|
2007-04-02 21:47:54 +00:00
|
|
|
}
|
|
|
|
|
2007-04-13 15:25:33 +00:00
|
|
|
static void dissect_3GTFO_codec_list(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo, int hfid, h248_curr_info_t* cu _U_, void* ignored _U_) {
|
2007-04-02 21:47:54 +00:00
|
|
|
tvbuff_t* sub_tvb = NULL;
|
|
|
|
gint8 class;
|
|
|
|
gboolean pc;
|
|
|
|
gint32 tag;
|
2007-05-15 05:49:43 +00:00
|
|
|
asn1_ctx_t asn1_ctx;
|
|
|
|
|
|
|
|
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
|
2011-02-11 21:27:46 +00:00
|
|
|
|
2007-04-02 21:47:54 +00:00
|
|
|
get_ber_identifier(tvb, 0, &class, &pc, &tag);
|
2011-02-11 21:27:46 +00:00
|
|
|
|
2011-04-22 17:31:57 +00:00
|
|
|
if (tag==BER_UNI_TAG_OCTETSTRING) {
|
2007-05-15 05:49:43 +00:00
|
|
|
dissect_ber_octet_string(FALSE, &asn1_ctx, tree, tvb, 0, hfid, &sub_tvb );
|
2011-02-11 21:27:46 +00:00
|
|
|
|
2007-04-02 21:47:54 +00:00
|
|
|
if (sub_tvb) {
|
2008-01-04 12:53:29 +00:00
|
|
|
proto_tree* pt = proto_item_add_subtree(asn1_ctx.created_item,ett_h248_3GTFO_codec_list);
|
2007-04-02 21:47:54 +00:00
|
|
|
int len = tvb_length(sub_tvb);
|
|
|
|
int offset = 0;
|
|
|
|
do {
|
|
|
|
offset = dissect_codec_mode(pt, sub_tvb, offset, len);
|
|
|
|
} while(offset < len);
|
|
|
|
}
|
|
|
|
} else {
|
2011-10-27 20:30:38 +00:00
|
|
|
proto_tree_add_item(tree,hfid,tvb,0,-1,ENC_NA);
|
2007-04-02 21:47:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2007-02-21 00:00:49 +00:00
|
|
|
|
2007-02-23 20:57:22 +00:00
|
|
|
static const value_string h248_package_3GTFO_props_vals[] = {
|
2012-12-13 20:17:17 +00:00
|
|
|
{0,"3G Tandem Free Operation (3gtfo)"},
|
2007-02-23 20:57:22 +00:00
|
|
|
{1,"enable"},
|
|
|
|
{2,"codeclist"},
|
|
|
|
{0,NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string h248_pkg_3GTFO_evt_codec_modify_params_vals[] = {
|
|
|
|
{11,"optimalcodec"},
|
|
|
|
{0,NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static const value_string h248_pkg_3GTFO_evt_distant_codec_list_params_vals[] = {
|
|
|
|
{13,"distlist"},
|
|
|
|
{0,NULL}
|
|
|
|
};
|
|
|
|
|
2007-02-25 11:23:49 +00:00
|
|
|
static const value_string h248_pkg_3GTFO_evt_status_params_vals[] = {
|
|
|
|
{1,"tfostatus"},
|
|
|
|
{0,NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2007-02-23 20:57:22 +00:00
|
|
|
static const value_string h248_package_3GTFO_evts_vals[] = {
|
|
|
|
{10,"codec_modify"},
|
|
|
|
{12,"distant_codec_list"},
|
|
|
|
{14,"status"},
|
|
|
|
{0,NULL}
|
|
|
|
};
|
|
|
|
|
2007-02-21 00:00:49 +00:00
|
|
|
static const value_string tfoenable_vals[] = {
|
|
|
|
{1,"On"},
|
|
|
|
{2,"Off"},
|
|
|
|
{0,NULL}
|
|
|
|
};
|
|
|
|
|
2007-02-23 20:57:22 +00:00
|
|
|
static const h248_pkg_param_t h248_package_3GTFO_props[] = {
|
2007-02-21 00:00:49 +00:00
|
|
|
{ 0x0001, &hf_h248_pkg_3GTFO_enable, h248_param_ber_integer, &implicit },
|
2007-04-02 21:47:54 +00:00
|
|
|
{ 0x0002, &hf_h248_pkg_3GTFO_codeclist, dissect_3GTFO_codec_list, NULL }, /* Sub-list of Octet string Q.765.5 + TS 26.103 .*/
|
2007-02-21 00:00:49 +00:00
|
|
|
{ 0, NULL, NULL, NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2007-02-23 20:57:22 +00:00
|
|
|
static const h248_pkg_param_t h248_pkg_3GTFO_evt_codec_modify_params[] = {
|
2007-04-02 21:47:54 +00:00
|
|
|
{ 0x0011, &hf_h248_pkg_3GTFO_evt_codec_modify_optimalcodec, dissect_3GTFO_codec_mode, NULL }, /* Q.765.5 + TS 26.103 .*/
|
2007-02-21 00:00:49 +00:00
|
|
|
{ 0, NULL, NULL, NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2007-02-23 20:57:22 +00:00
|
|
|
static const h248_pkg_param_t h248_pkg_3GTFO_evt_distant_codec_list_params[] = {
|
2007-04-02 21:47:54 +00:00
|
|
|
{ 0x0013, &hf_h248_pkg_3GTFO_evt_distant_codec_list_distlist, dissect_3GTFO_codec_list, NULL }, /* Sub-list of Octet string Q.765.5 + TS 26.103 .*/
|
2007-02-21 00:00:49 +00:00
|
|
|
{ 0, NULL, NULL, NULL}
|
|
|
|
};
|
|
|
|
|
2007-02-23 20:57:22 +00:00
|
|
|
static const h248_pkg_param_t h248_pkg_3GTFO_evt_status_params[] = {
|
2007-02-21 00:00:49 +00:00
|
|
|
{ 0x0001, &hf_h248_pkg_3GTFO_evt_status_tfostatus, h248_param_ber_boolean, &implicit },
|
|
|
|
{ 0, NULL, NULL, NULL}
|
|
|
|
};
|
|
|
|
|
2007-02-23 20:57:22 +00:00
|
|
|
static const h248_pkg_evt_t h248_package_3GTFO_evts[] = {
|
|
|
|
{ 0x0010, &hf_h248_pkg_3GTFO_evt_codec_modify, &ett_h248_3GTFO_evt_codec_modify, h248_pkg_3GTFO_evt_codec_modify_params, h248_pkg_3GTFO_evt_codec_modify_params_vals},
|
|
|
|
{ 0x0012, &hf_h248_pkg_3GTFO_evt_distant_codec_list, &ett_h248_3GTFO_evt_distant_codec_list, h248_pkg_3GTFO_evt_distant_codec_list_params, h248_pkg_3GTFO_evt_distant_codec_list_params_vals},
|
2007-02-25 11:23:49 +00:00
|
|
|
{ 0x0014, &hf_h248_pkg_3GTFO_evt_status, &ett_h248_3GTFO_evt_status, h248_pkg_3GTFO_evt_status_params, h248_pkg_3GTFO_evt_status_params_vals},
|
|
|
|
{ 0, NULL, NULL, NULL,NULL}
|
2007-02-21 00:00:49 +00:00
|
|
|
};
|
|
|
|
|
2007-02-23 20:57:22 +00:00
|
|
|
static const h248_package_t h248_package_3GTFO = {
|
2007-02-21 00:00:49 +00:00
|
|
|
0x0031,
|
|
|
|
&hf_h248_package_3GTFO,
|
|
|
|
&ett_h248_package_3GTFO,
|
2007-02-23 20:57:22 +00:00
|
|
|
h248_package_3GTFO_props_vals,
|
|
|
|
NULL,
|
|
|
|
h248_package_3GTFO_evts_vals,
|
|
|
|
NULL,
|
2007-02-21 00:00:49 +00:00
|
|
|
h248_package_3GTFO_props,
|
|
|
|
NULL,
|
|
|
|
h248_package_3GTFO_evts,
|
|
|
|
NULL};
|
|
|
|
|
2011-02-11 21:27:46 +00:00
|
|
|
/*
|
2007-02-21 00:00:49 +00:00
|
|
|
* 3G Expanded Call Progress Tones Generator Package
|
|
|
|
* 3GPP TS 29.232 -- 15.2.3
|
|
|
|
*/
|
2011-02-11 21:27:46 +00:00
|
|
|
/*
|
2007-02-21 00:00:49 +00:00
|
|
|
* Modification Of Link Characteristics Bearer Capability
|
|
|
|
* 3GPP TS 29.232 -- 15.2.4
|
|
|
|
*/
|
2011-02-11 21:27:46 +00:00
|
|
|
/*
|
2007-02-21 00:00:49 +00:00
|
|
|
* Enhanced Circuit Switched Data package
|
|
|
|
* 3GPP TS 29.232 -- 15.2.5
|
|
|
|
*/
|
2011-02-11 21:27:46 +00:00
|
|
|
/*
|
2007-02-21 00:00:49 +00:00
|
|
|
* Cellular Text telephone Modem Text Transport
|
|
|
|
* 3GPP TS 29.232 -- 15.2.6
|
|
|
|
*/
|
2011-02-11 21:27:46 +00:00
|
|
|
/*
|
2007-02-21 00:00:49 +00:00
|
|
|
* IP transport package
|
|
|
|
* 3GPP TS 29.232 -- 15.2.7
|
|
|
|
*/
|
2011-02-11 21:27:46 +00:00
|
|
|
/*
|
2007-02-21 00:00:49 +00:00
|
|
|
* Flexible Tone Generator Package
|
|
|
|
* 3GPP TS 29.232 -- 15.2.8
|
|
|
|
*/
|
2011-02-11 21:27:46 +00:00
|
|
|
/*
|
2007-02-21 00:00:49 +00:00
|
|
|
* Trace Package
|
|
|
|
* 3GPP TS 29.232 -- 15.2.9
|
|
|
|
*/
|
2011-02-11 21:27:46 +00:00
|
|
|
/*
|
2007-02-21 00:00:49 +00:00
|
|
|
* ASCI Group call package
|
|
|
|
* 3GPP TS 29.232 -- 15.2.10
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2006-10-03 17:24:28 +00:00
|
|
|
void proto_register_h248_3gpp(void) {
|
|
|
|
static hf_register_info hf[] = {
|
|
|
|
{ &hf_h248_package_3GUP_Mode,
|
|
|
|
{ "Mode", "h248.package_3GUP.Mode",
|
|
|
|
FT_UINT32, BASE_DEC, VALS(h248_3GUP_Mode_vals), 0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL }},
|
2006-10-03 17:24:28 +00:00
|
|
|
{ &hf_h248_package_3GUP_UPversions,
|
|
|
|
{ "UPversions", "h248.package_3GUP.upversions",
|
|
|
|
FT_UINT32, BASE_DEC, VALS(h248_3GUP_upversions_vals), 0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL }},
|
2006-10-03 17:24:28 +00:00
|
|
|
{ &hf_h248_package_3GUP_delerrsdu,
|
|
|
|
{ "Delivery of erroneous SDUs", "h248.package_3GUP.delerrsdu",
|
|
|
|
FT_UINT32, BASE_DEC, VALS(h248_3GUP_delerrsdu_vals), 0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL }},
|
2006-10-03 17:24:28 +00:00
|
|
|
{ &hf_h248_package_3GUP_interface,
|
|
|
|
{ "Interface", "h248.package_3GUP.interface",
|
|
|
|
FT_UINT32, BASE_DEC, VALS(h248_3GUP_interface_vals), 0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL }},
|
2006-10-03 17:24:28 +00:00
|
|
|
{ &hf_h248_package_3GUP_initdir,
|
|
|
|
{ "Initialisation Direction", "h248.package_3GUP.initdir",
|
|
|
|
FT_UINT32, BASE_DEC, VALS(h248_3GUP_initdir_vals), 0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL }},
|
2011-02-11 21:27:46 +00:00
|
|
|
|
|
|
|
|
2007-02-21 00:00:49 +00:00
|
|
|
{ &hf_h248_package_3GCSD,
|
|
|
|
{ "CSD Package", "h248.package_3GCSD",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2007-02-21 00:00:49 +00:00
|
|
|
"Circuit Switched Data Package", HFILL }},
|
|
|
|
{ &hf_h248_package_3GCSD_plmnbc,
|
|
|
|
{ "PLMN Bearer Capability", "h248.package_3GCSD.plmnbc",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2007-02-21 00:00:49 +00:00
|
|
|
"The PLMN Bearer Capability", HFILL }},
|
|
|
|
{ &hf_h248_package_3GCSD_gsmchancod,
|
|
|
|
{ "GSM channel coding", "h248.package_3GCSD.gsmchancod",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2007-02-21 00:00:49 +00:00
|
|
|
"Channel information needed for GSM", HFILL }},
|
|
|
|
{ &hf_h248_pkg_3GCSD_evt_protres,
|
|
|
|
{ "Protocol Negotiation Result", "h248.package_3GCSD.protres",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2007-02-21 00:00:49 +00:00
|
|
|
"This event is used to report the result of the protocol negotiation", HFILL }},
|
|
|
|
{ &hf_h248_pkg_3GCSD_evt_protres_result,
|
|
|
|
{ "Negotiation Result", "h248.package_3GCSD.protres.result",
|
|
|
|
FT_UINT32, BASE_DEC, VALS(h248_3GCSD_evt_protres_result_vals), 0,
|
|
|
|
"reports whether the protocol negotiation has been successful", HFILL }},
|
|
|
|
{ &hf_h248_pkg_3GCSD_evt_protres_cause,
|
|
|
|
{ "Possible Failure Cause", "h248.package_3GCSD.protres.cause",
|
|
|
|
FT_UINT32, BASE_DEC, VALS(h248_3GCSD_evt_protres_cause_vals), 0,
|
|
|
|
"indicates the possible failure cause", HFILL }},
|
|
|
|
{ &hf_h248_pkg_3GCSD_evt_ratechg,
|
|
|
|
{ "Rate Change", "h248.package_3GCSD.ratechg",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2007-02-21 00:00:49 +00:00
|
|
|
"This event is used to report a rate change", HFILL }},
|
|
|
|
{ &hf_h248_pkg_3GCSD_evt_ratechg_rate,
|
|
|
|
{ "New Rate", "h248.package_3GCSD.ratechg.rate",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
|
|
|
"reports the new rate for the termination", HFILL }},
|
|
|
|
{ &hf_h248_pkg_3GCSD_sig_actprot,
|
|
|
|
{ "Activate Protocol", "h248.package_3GCSD.actprot",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2007-02-21 00:00:49 +00:00
|
|
|
"Activate the higher layer protocol", HFILL }},
|
|
|
|
{ &hf_h248_pkg_3GCSD_actprot_sig_localpeer,
|
|
|
|
{ "Local Peer Role", "h248.package_3GCSD.actprot.localpeer",
|
|
|
|
FT_UINT32, BASE_DEC, VALS(h248_3GCSD_actprot_sig_localpeer_vals), 0,
|
|
|
|
"It is used to inform the modem whether it should act as originating or terminating peer", HFILL }},
|
2011-02-11 21:27:46 +00:00
|
|
|
|
2007-02-21 00:00:49 +00:00
|
|
|
|
|
|
|
{ &hf_h248_package_3GTFO,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
{ "Tandem Free Operation", "h248.package_3GTFO",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2007-02-21 00:00:49 +00:00
|
|
|
"This package defines events and properties for Tandem Free Operation (TFO) control", HFILL }},
|
|
|
|
{ &hf_h248_pkg_3GTFO_enable,
|
|
|
|
{ "TFO Activity Control", "h248.package_3GTFO.tfoenable",
|
|
|
|
FT_UINT32, BASE_DEC, VALS(tfoenable_vals), 0,
|
|
|
|
"Defines if TFO is enabled or not", HFILL }},
|
|
|
|
{ &hf_h248_pkg_3GTFO_codeclist,
|
|
|
|
{ "TFO Codec List", "h248.package_3GTFO.codeclist",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2007-02-21 00:00:49 +00:00
|
|
|
"List of codecs for use in TFO protocol", HFILL }},
|
2011-02-11 21:27:46 +00:00
|
|
|
|
2007-02-21 00:00:49 +00:00
|
|
|
{ &hf_h248_pkg_3GTFO_evt_codec_modify,
|
|
|
|
{ "Optimal Codec Event", "h248.package_3GTFO.codec_modify",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2007-02-21 00:00:49 +00:00
|
|
|
"The event is used to notify the MGC that TFO negotiation has resulted in an optimal codec type being proposed", HFILL }},
|
|
|
|
{ &hf_h248_pkg_3GTFO_evt_codec_modify_optimalcodec,
|
|
|
|
{ "Optimal Codec Type", "h248.package_3GTFO.codec_modify.optimalcodec",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2007-02-21 00:00:49 +00:00
|
|
|
"indicates which is the proposed codec type for TFO", HFILL }},
|
2011-02-11 21:27:46 +00:00
|
|
|
|
2007-02-21 00:00:49 +00:00
|
|
|
{ &hf_h248_pkg_3GTFO_evt_distant_codec_list,
|
|
|
|
{ "Codec List Event", "h248.package_3GTFO.distant_codec_list",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2007-02-21 00:00:49 +00:00
|
|
|
"The event is used to notify the MGC of the distant TFO partner's supported codec list", HFILL }},
|
2011-02-11 21:27:46 +00:00
|
|
|
|
2007-02-21 00:00:49 +00:00
|
|
|
{ &hf_h248_pkg_3GTFO_evt_distant_codec_list_distlist,
|
|
|
|
{ "Distant Codec List", "h248.package_3GTFO.distant_codec_list.distlist",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2007-02-21 00:00:49 +00:00
|
|
|
"indicates the codec list for TFO", HFILL }},
|
2011-02-11 21:27:46 +00:00
|
|
|
|
2007-02-21 00:00:49 +00:00
|
|
|
{ &hf_h248_pkg_3GTFO_evt_status,
|
|
|
|
{ "TFO Status Event", "h248.package_3GTFO.status",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2007-02-21 00:00:49 +00:00
|
|
|
"The event is used to notify the MGC that a TFO link has been established or broken", HFILL }},
|
|
|
|
{ &hf_h248_pkg_3GTFO_evt_status_tfostatus,
|
|
|
|
{ "TFO Status", "h248.package_3GTFO.status.tfostatus",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BOOLEAN, BASE_NONE, NULL, 0x0,
|
2007-02-21 00:00:49 +00:00
|
|
|
"reports whether TFO has been established or broken", HFILL }},
|
2006-10-03 17:24:28 +00:00
|
|
|
};
|
2011-02-11 21:27:46 +00:00
|
|
|
|
2006-10-03 17:24:28 +00:00
|
|
|
static gint *ett[] = {
|
2007-02-21 00:00:49 +00:00
|
|
|
&ett_h248_package_3GUP,
|
|
|
|
&ett_h248_package_3GCSD,
|
|
|
|
&ett_h248_3GCSD_evt_protres,
|
|
|
|
&ett_h248_3GCSD_evt_ratechg,
|
|
|
|
&ett_h248_package_3GTFO,
|
|
|
|
&ett_h248_3GTFO_evt_status,
|
|
|
|
&ett_h248_3GTFO_evt_distant_codec_list,
|
2007-04-02 21:47:54 +00:00
|
|
|
&ett_h248_3GTFO_evt_codec_modify,
|
|
|
|
&ett_h248_3GTFO_codec_list,
|
2011-02-11 21:27:46 +00:00
|
|
|
&ett_h248_3GTFO_codec,
|
|
|
|
&ett_pkg_3GCSD_sig_actprot
|
2006-10-03 17:24:28 +00:00
|
|
|
};
|
2011-02-11 21:27:46 +00:00
|
|
|
|
2006-10-03 17:24:28 +00:00
|
|
|
hf_h248_package_3GUP = proto_register_protocol(PNAME, PSNAME, PFNAME);
|
2011-02-11 21:27:46 +00:00
|
|
|
|
2006-10-03 17:24:28 +00:00
|
|
|
proto_register_field_array(hf_h248_package_3GUP, hf, array_length(hf));
|
2011-02-11 21:27:46 +00:00
|
|
|
|
2006-10-03 17:24:28 +00:00
|
|
|
proto_register_subtree_array(ett, array_length(ett));
|
2011-02-11 21:27:46 +00:00
|
|
|
|
2012-06-05 10:54:21 +00:00
|
|
|
h248_register_package(&h248_package_3GUP,REPLACE_PKG);
|
|
|
|
h248_register_package(&h248_package_3GCSD, REPLACE_PKG);
|
|
|
|
h248_register_package(&h248_package_3GTFO, REPLACE_PKG);
|
2006-10-03 17:24:28 +00:00
|
|
|
}
|
|
|
|
|