aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/h248/packet-h248-template.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2009-09-10 05:57:30 +0000
committerAnders Broman <anders.broman@ericsson.com>2009-09-10 05:57:30 +0000
commit8a23b29c91d1e57c5c6b18a8a767ed77a1cc081b (patch)
tree40000abb2e8e755f0015df8fc4c981169cec5873 /asn1/h248/packet-h248-template.c
parentc6c330b092caaa12f42b865600d2377e0a977ffc (diff)
downloadwireshark-8a23b29c91d1e57c5c6b18a8a767ed77a1cc081b.tar.gz
wireshark-8a23b29c91d1e57c5c6b18a8a767ed77a1cc081b.tar.bz2
wireshark-8a23b29c91d1e57c5c6b18a8a767ed77a1cc081b.zip
From Alex Lindberg:
Add H248V1 suport. (H248 dissector fails on poorly formed AuditReply packet from Media Gateway) https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3953 svn path=/trunk/; revision=29835
Diffstat (limited to 'asn1/h248/packet-h248-template.c')
-rw-r--r--asn1/h248/packet-h248-template.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/asn1/h248/packet-h248-template.c b/asn1/h248/packet-h248-template.c
index 994e4cc35f..e373407c12 100644
--- a/asn1/h248/packet-h248-template.c
+++ b/asn1/h248/packet-h248-template.c
@@ -63,6 +63,9 @@ static int hf_h248_param = -1;
static int hf_h248_serviceChangeReasonStr = -1;
+/* h248v1 support */
+static int hf_h248_auditValueReplyV1 = -1;
+
#include "packet-h248-hf.c"
/* Initialize the subtree pointers */
@@ -106,6 +109,12 @@ static dissector_handle_t h248_tpkt_handle;
/* Forward declarations */
static int dissect_h248_ServiceChangeReasonStr(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index);
+/* h248v1 support */
+static int dissect_h248_AuditReplyV1(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index);
+static int dissect_h248_ValueV1(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index);
+static int dissect_h248_EventParameterV1(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index);
+static int dissect_h248_PropertyParmV1(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index);
+
/* http://www.iana.org/assignments/megaco-h248 last updated 2007-11-28*/
static const value_string package_name_vals[] = {
{ 0x0000, "Media stream properties H.248.1 Annex C" },
@@ -659,6 +668,7 @@ static const value_string wildcard_levels[] = {
static h248_curr_info_t curr_info = {NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL};
static guint32 error_code;
+static guint32 h248_version = 0; /* h248v1 support */
static gcp_wildcard_t wild_term;
static guint8 wild_card = 0xFF; /* place to store wildcardField */
@@ -1422,6 +1432,12 @@ void proto_register_h248(void) {
FT_STRING, BASE_NONE, NULL, 0,
"h248.IA5String", HFILL }},
+/* h248v1 support */
+ { &hf_h248_auditValueReplyV1,
+ { "auditValueReplyV1", "h248.auditValueReplyV1",
+ FT_NONE, BASE_NONE, NULL, 0,
+ NULL, HFILL }},
+
#include "packet-h248-hfarr.c"
GCP_HF_ARR_ELEMS("h248",h248_arrel)