diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-08-26 21:44:35 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-08-26 21:44:35 +0000 |
commit | f78e69b7e4e481499041ccb7b1b097e254dfe6d6 (patch) | |
tree | b5a4216c8a57f22d32a78129737d135b9e1fe592 /packet-h245.c | |
parent | 6da7a60332b1c197b4be1ffad9ad794abe2e52b0 (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8277 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-h245.c')
-rw-r--r-- | packet-h245.c | 19 |
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; +} + |