From Arsen Chaloyan: fix offsets in "proto_tree_add" calls.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 27 Nov 2003 21:20:47 +0000 (21:20 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 27 Nov 2003 21:20:47 +0000 (21:20 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9103 f5534014-38df-0310-8fa8-9805f1628bb7

AUTHORS
doc/ethereal.pod
packet-rtp-events.c

diff --git a/AUTHORS b/AUTHORS
index 9a4288421ed4c0d37773a270df0760a4d80b7301..b3f98ce847be1f2da1b6a413da9896082ae15682 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -1963,6 +1963,7 @@ And assorted fixes and enhancements by the people listed above and by:
        Eric Wedel <ewedel [AT] bluearc.com>
        Reinhard Speyerer <rspmn [AT] arcor.de>
        Patrick Kursawe <phosphan [AT] gentoo.org>
+       Arsen Chaloyan <achaloyan [AT] yahoo.com>
 
 Alain Magloire <alainm[AT]rcsm.ece.mcgill.ca> was kind enough to
 give his permission to use his version of snprintf.c.
index 199ecef59f5a0e5dfa0a367926801502959e62ba..81003e91e968adf6bcde607f0bfff34746e75966 100644 (file)
@@ -2083,6 +2083,7 @@ B<http://www.ethereal.com>.
   Eric Wedel               <ewedel [AT] bluearc.com>
   Reinhard Speyerer        <rspmn [AT] arcor.de>
   Patrick Kursawe          <phosphan [AT] gentoo.org>
+  Arsen Chaloyan           <achaloyan [AT] yahoo.com>
 
 Alain Magloire <alainm[AT]rcsm.ece.mcgill.ca> was kind enough to give his
 permission to use his version of snprintf.c.
index 83696b5fa6b1655bbf11792b9dfca47fa5f73dae..77980e8aa9d90b682c82900e3fa6d3e4c2f75a43 100644 (file)
@@ -3,7 +3,7 @@
  * Routines for RFC 2833 RTP Events dissection
  * Copyright 2003, Kevin A. Noll <knoll[AT]poss.com>
  *
- * $Id: packet-rtp-events.c,v 1.2 2003/09/19 04:27:48 guy Exp $
+ * $Id: packet-rtp-events.c,v 1.3 2003/11/27 21:20:46 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -108,11 +108,11 @@ dissect_rtp_events( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
            proto_tree_add_uint ( rtp_events_tree, hf_rtp_events_event, tvb, offset, 1, rtp_evt);
 
            octet = tvb_get_guint8(tvb, offset +1 );
-           proto_tree_add_boolean (rtp_events_tree, hf_rtp_events_end, tvb, offset, 1, octet);
-           proto_tree_add_boolean (rtp_events_tree, hf_rtp_events_reserved, tvb, offset, 1, octet);
-           proto_tree_add_uint ( rtp_events_tree, hf_rtp_events_volume, tvb, offset, 1, octet);
+           proto_tree_add_boolean (rtp_events_tree, hf_rtp_events_end, tvb, offset+1, 1, octet);
+           proto_tree_add_boolean (rtp_events_tree, hf_rtp_events_reserved, tvb, offset+1, 1, octet);
+           proto_tree_add_uint ( rtp_events_tree, hf_rtp_events_volume, tvb, offset+1, 1, octet);
 
-           proto_tree_add_item ( rtp_events_tree, hf_rtp_events_duration, tvb, offset, 2, FALSE);
+           proto_tree_add_item ( rtp_events_tree, hf_rtp_events_duration, tvb, offset+2, 2, FALSE);
          }
 }