aboutsummaryrefslogtreecommitdiffstats
path: root/packet-h225.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-11-10 21:42:38 +0000
committerGuy Harris <guy@alum.mit.edu>2003-11-10 21:42:38 +0000
commitd2987f0b6f775398a6985e00b0ff160331340dff (patch)
tree7d59e12416b8cdb0e307dc89ad4ba7d8fac1541f /packet-h225.c
parent28ecc3eecb4e11f9467707a4793081c217664f9c (diff)
From Martin Regner:
"aliasAddress", in an EndPoint sequence, is a sequence of aliasAddresses. Don't update the Info or Protocol columns in a pdu_item. svn path=/trunk/; revision=8930
Diffstat (limited to 'packet-h225.c')
-rw-r--r--packet-h225.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/packet-h225.c b/packet-h225.c
index 656cfe2cb7..4d04e6a800 100644
--- a/packet-h225.c
+++ b/packet-h225.c
@@ -4,7 +4,7 @@
*
* Maintained by Andreas Sikkema (andreas.sikkema@philips.com)
*
- * $Id: packet-h225.c,v 1.23 2003/10/31 19:48:29 guy Exp $
+ * $Id: packet-h225.c,v 1.24 2003/11/10 21:42:38 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -523,6 +523,7 @@ static int hf_h225_nonStandardData = -1;
static int hf_h225_nonStandard = -1;
static int hf_h225_nonStandardReason = -1;
static int hf_h225_nonStandardAddress = -1;
+static int hf_h225_aliasAddress_sequence = -1;
/*aaa*/
static gint ett_h225 = -1;
@@ -788,6 +789,7 @@ static gint ett_h225_user_data = -1;
static gint ett_h225_H221NonStandard = -1;
static gint ett_h225_NonStandardIdentifier = -1;
static gint ett_h225_NonStandardParameter = -1;
+static gint ett_h225_aliasAddress_sequence = -1;
/*bbb*/
/* Subdissector tables */
@@ -5495,6 +5497,14 @@ dissect_h225_remoteExtensionAddress(tvbuff_t *tvb, int offset, packet_info *pinf
return offset;
}
+
+static int
+dissect_h225_aliasAddress_sequence(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree)
+{
+ offset=dissect_per_sequence_of(tvb, offset, pinfo, tree, hf_h225_aliasAddress_sequence, ett_h225_aliasAddress_sequence, dissect_h225_AliasAddress);
+ return offset;
+}
+
static int
dissect_h225_rasAddress_sequence(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree)
{
@@ -5514,7 +5524,7 @@ static per_sequence_t EndPoint_sequence[] = {
{ "nonStandardData", ASN1_EXTENSION_ROOT, ASN1_OPTIONAL,
dissect_h225_nonStandardData },
{ "aliasAddress", ASN1_EXTENSION_ROOT, ASN1_OPTIONAL,
- dissect_h225_AliasAddress },
+ dissect_h225_aliasAddress_sequence },
{ "callSignalAddress", ASN1_EXTENSION_ROOT, ASN1_OPTIONAL,
dissect_h225_callSignalAddress },
{ "rasAddress", ASN1_EXTENSION_ROOT, ASN1_OPTIONAL,
@@ -8096,7 +8106,13 @@ static per_sequence_t pdu_item_sequence[] = {
static int
dissect_h225_pdu_item(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree)
{
+ gboolean save_info;
+
+ /* dont update the INFO or PROTOCOL fields of the summary */
+ save_info=col_get_writable(pinfo->cinfo);
+ col_set_writable(pinfo->cinfo, FALSE);
offset=dissect_per_sequence(tvb, offset, pinfo, tree, hf_h225_pdu_item, ett_h225_pdu_item, pdu_item_sequence);
+ col_set_writable(pinfo->cinfo, save_info);
return offset;
}
@@ -9419,6 +9435,9 @@ proto_register_h225(void)
{ &hf_h225_remoteExtensionAddress,
{ "remoteExtensionAddress", "h225.remoteExtensionAddress", FT_NONE, BASE_NONE,
NULL, 0, "remoteExtensionAddress sequence of", HFILL }},
+ { &hf_h225_aliasAddress_sequence,
+ { "aliasAddress_sequence", "h225.aliasAddress_sequence", FT_NONE, BASE_NONE,
+ NULL, 0, "aliasAddress_sequence sequence of", HFILL }},
{ &hf_h225_rasAddress_sequence,
{ "rasAddress_sequence", "h225.rasAddress_sequence", FT_NONE, BASE_NONE,
NULL, 0, "rasAddress_sequence sequence of", HFILL }},
@@ -10150,6 +10169,7 @@ proto_register_h225(void)
&ett_h225_H221NonStandard,
&ett_h225_NonStandardIdentifier,
&ett_h225_NonStandardParameter,
+ &ett_h225_aliasAddress_sequence,
/*eee*/
};
module_t *h225_module;