aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-02-13 19:33:14 +0000
committerGuy Harris <guy@alum.mit.edu>2004-02-13 19:33:14 +0000
commit027cf5a5749aafc493a123a5733d7a0d926c346b (patch)
tree0666820c83be43c3630d1eacb1e060846ea9eba6
parentb5881ce528b64bceec7fe97283877101f1fb45c7 (diff)
From Anders Broman: fix the offsets usd when adding the manufacturer info.
svn path=/trunk/; revision=10060
-rw-r--r--packet-h225.c4
-rw-r--r--packet-h245.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/packet-h225.c b/packet-h225.c
index aceeda99b3..ab3dee2e27 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.30 2004/02/11 20:55:02 guy Exp $
+ * $Id: packet-h225.c,v 1.31 2004/02/13 19:33:14 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1940,7 +1940,7 @@ dissect_h225_h221NonStandard(tvbuff_t *tvb, int offset, packet_info *pinfo, prot
h221NonStandard = ((t35CountryCode * 256) + t35Extension) * 65536 + manufacturerCode;
- proto_tree_add_uint(tree, hf_h221Manufacturer, tvb, (offset-3)>>3,4,h221NonStandard);
+ proto_tree_add_uint(tree, hf_h221Manufacturer, tvb, (offset>>3)-4,4,h221NonStandard);
return offset;
}
diff --git a/packet-h245.c b/packet-h245.c
index 50be7a098c..00c89351af 100644
--- a/packet-h245.c
+++ b/packet-h245.c
@@ -7,7 +7,7 @@
*
* Maintained by Andreas Sikkema (andreas.sikkema@philips.com)
*
- * $Id: packet-h245.c,v 1.44 2004/01/10 13:49:52 jmayer Exp $
+ * $Id: packet-h245.c,v 1.45 2004/02/13 19:33:14 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -7598,7 +7598,7 @@ dissect_h245_h221NonStandard(tvbuff_t *tvb, int offset, packet_info *pinfo, prot
h221NonStandard = ((t35CountryCode * 256) + t35Extension) * 65536 + manufacturerCode;
- proto_tree_add_uint(tree, hf_h245_h221Manufacturer, tvb, (offset-3)>>3,4,h221NonStandard);
+ proto_tree_add_uint(tree, hf_h245_h221Manufacturer, tvb, (offset>>3)-4 ,4,h221NonStandard);
return offset;
}