aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-h248_q1950.c
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2007-02-23 20:57:22 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2007-02-23 20:57:22 +0000
commit4211d0dba258656a1c47495aa080438332abd9a4 (patch)
treea7618957318c3e089821169d5637db26a1079712 /epan/dissectors/packet-h248_q1950.c
parent5b9457a1045b08add6fe136867a1e8290e8d5167 (diff)
fix some bugs introduced in the latest releases and add value_strings for param, evt, sig and stat ids s well as "sub-parameters".
svn path=/trunk/; revision=20908
Diffstat (limited to 'epan/dissectors/packet-h248_q1950.c')
-rw-r--r--epan/dissectors/packet-h248_q1950.c34
1 files changed, 23 insertions, 11 deletions
diff --git a/epan/dissectors/packet-h248_q1950.c b/epan/dissectors/packet-h248_q1950.c
index 8e5e4d737b..8852bf9c67 100644
--- a/epan/dissectors/packet-h248_q1950.c
+++ b/epan/dissectors/packet-h248_q1950.c
@@ -38,7 +38,6 @@ static int proto_q1950 = -1;
/* A.3 Bearer characteristics package */
static int hf_h248_pkg_BCP = -1;
-static int hf_h248_pkg_BCP_param = -1;
static int hf_h248_pkg_BCP_BNCChar = -1;
static int ett_h248_pkg_BCP = -1;
@@ -50,6 +49,11 @@ static const value_string h248_pkg_BCP_parameters[] = {
{0, NULL}
};
+static const value_string h248_pkg_BCP_props_vals[] = {
+ {1,"BNCChar"},
+ {0,NULL}
+};
+
/* Properties */
h248_pkg_param_t h248_pkg_BCP_props[] = {
{ 0x0001, &hf_h248_pkg_BCP_BNCChar, h248_param_ber_integer, &implicit },
@@ -60,13 +64,21 @@ h248_pkg_param_t h248_pkg_BCP_props[] = {
static h248_package_t h248_pkg_BCP = {
0x001e,
&hf_h248_pkg_BCP,
- &hf_h248_pkg_BCP_param,
&ett_h248_pkg_BCP,
+ h248_pkg_BCP_props_vals,
+ NULL,
+ NULL,
+ NULL,
h248_pkg_BCP_props, /* Properties */
NULL, /* signals */
NULL, /* events */
NULL /* statistics */
};
+
+/* A.4 Bearer Network connection cut-through package */
+
+/* A.5 Bearer Reuse Idle Package */
+
/* A.6 Generic bearer connection package
Package Name: GB
Package ID: 0x0021
@@ -76,7 +88,6 @@ static h248_package_t h248_pkg_BCP = {
static dissector_handle_t sdp_dissector = NULL;
static int hf_h248_pkg_bct = -1;
-static int hf_h248_pkg_bct_param = -1;
static int hf_h248_pkg_bct_tind = -1;
static gint ett_h248_pkg_bct = -1;
@@ -95,7 +106,7 @@ static void dissect_bct_tind_bit(proto_tree* tree, tvbuff_t* tvb, packet_info* p
dissect_ber_octet_string(FALSE, pinfo, tree, tvb, 0, hfid, &sdp_tvb);
if (sdp_tvb) {
- /* XXX: is it realy sdp? */
+ /* XXX: are we sure it is always sdp? */
call_dissector(sdp_dissector,sdp_tvb,pinfo,tree);
}
} else {
@@ -120,8 +131,11 @@ static h248_pkg_evt_t h248_pkg_bct_events[] = {
static h248_package_t h248_pkg_bct = {
0x0022,
&hf_h248_pkg_bct,
- &hf_h248_pkg_bct_param,
&ett_h248_pkg_bct,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
NULL, /* Properties */
NULL, /* signals */
h248_pkg_bct_events, /* events */
@@ -130,7 +144,6 @@ static h248_package_t h248_pkg_bct = {
/* A.8 Basic call progress tones generator with directionality */
static int hf_h248_pkg_bcg = -1;
-static int hf_h248_pkg_bcg_param = -1;
static int hf_h248_pkg_bcg_sig_bdt_par_btd = -1;
static int hf_h248_pkg_bcg_sig_bdt = -1;
static int hf_h248_pkg_bcg_sig_brt = -1;
@@ -177,8 +190,11 @@ static h248_pkg_sig_t h248_pkg_bcg_signals[] = {
static h248_package_t h248_pkg_bcg = {
0x0023,
&hf_h248_pkg_bcg,
- &hf_h248_pkg_bcg_param,
&ett_h248_pkg_bcg,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
NULL, /* Properties */
h248_pkg_bcg_signals, /* signals */
NULL, /* events */
@@ -194,10 +210,6 @@ void proto_register_q1950(void) {
{ "BCP (Bearer characteristics package)", "h248.pkg.BCP",
FT_BYTES, BASE_HEX, NULL, 0, "", HFILL }
},
- { &hf_h248_pkg_BCP_param,
- { "Parameter", "h248.package_bcp.parameter",
- FT_UINT16, BASE_HEX, VALS(h248_pkg_BCP_parameters), 0, "Parameter", HFILL }
- },
{ &hf_h248_pkg_BCP_BNCChar,
{ "BNCChar (BNC Characteristics)", "h248.pkg.bcp.bncchar",
FT_UINT32, BASE_HEX, VALS(bearer_network_connection_characteristics_vals), 0, "BNC Characteristics", HFILL }