aboutsummaryrefslogtreecommitdiffstats
path: root/packet-h245.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-08-26 21:44:35 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-08-26 21:44:35 +0000
commitb91e76964d8d5e585c5b7e6d78859bad7d3c47d9 (patch)
treeb5a4216c8a57f22d32a78129737d135b9e1fe592 /packet-h245.c
parentec660f2051b1f8680bfaeb4fcee17167221c421a (diff)
The definition of NonStandardParameter is different between H.225 and H.245
Create an alternative NonStandardParameter dissector that matches the definition that H.225 needs. svn path=/trunk/; revision=8277
Diffstat (limited to 'packet-h245.c')
-rw-r--r--packet-h245.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/packet-h245.c b/packet-h245.c
index 01e0914843..0e85f04751 100644
--- a/packet-h245.c
+++ b/packet-h245.c
@@ -4,7 +4,7 @@
* with great support with testing and providing capturefiles
* from Martin Regner
*
- * $Id: packet-h245.c,v 1.30 2003/08/21 18:00:21 guy Exp $
+ * $Id: packet-h245.c,v 1.31 2003/08/26 21:44:34 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -13130,6 +13130,23 @@ dissect_h245_NonStandardParameter(tvbuff_t *tvb, int offset, packet_info *pinfo,
return offset;
}
+static per_sequence_t NonStandardParameter_with_extension_sequence[] = {
+ { "nonStandardIdentifier", EXTENSION_ROOT, NOT_OPTIONAL,
+ dissect_h245_NonStandardIdentifier },
+ { "data", EXTENSION_ROOT, NOT_OPTIONAL,
+ dissect_h245_NonStandardParameterData },
+ { NULL, 0, 0, NULL }
+};
+int
+dissect_h245_NonStandardParameter_with_extension_marker(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree)
+{
+ nsp_handle = NULL;
+
+ offset=dissect_per_sequence(tvb, offset, pinfo, tree, hf_h245_NonStandardParameter, ett_h245_NonStandardParameter, NonStandardParameter_with_extension_sequence);
+
+ return offset;
+}
+