path: root/packet-rtsp.c
diff options
authorGuy Harris <guy@alum.mit.edu>2000-12-27 12:48:27 +0000
committerGuy Harris <guy@alum.mit.edu>2000-12-27 12:48:27 +0000
commit11b24c6094890d541fccc0601d10c130026a420e (patch)
tree59f34d6fc9106348a77f954051a59fae762e0c90 /packet-rtsp.c
parent7e8b1d3a10a078eaf651f4521a495ac372b09b0a (diff)
Tvbuffify the RIP and OSPF dissectors.
Change them to use facilities in Ethereal that were probably not present when they were originally written, e.g. routines to fetch 24-bit integers and to dump a bunch of raw bytes in hex. Redo them to extract data from the packet as they dissect it, rather than extracting an entire data structure at once; that way, it may be able to dissect a structure not all of which is in the packet. Dissect a bit more of the type-of-service metrics etc. in OSPF packets. Make "tvb_length_remaining()" return a "gint", not a "guint"; it returns -1 if the offset is past the end of the tvbuff. Add a "tvb_reported_length_remaining()" routine, similar to "tvb_length_remaining()". Use it instead of just subtracting an offset from "tvb_reported_length()". svn path=/trunk/; revision=2787
Diffstat (limited to 'packet-rtsp.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-rtsp.c b/packet-rtsp.c
index c889203e81..debd9b41f0 100644
--- a/packet-rtsp.c
+++ b/packet-rtsp.c
@@ -4,7 +4,7 @@
* Jason Lango <jal@netapp.com>
* Liberally copied from packet-http.c, by Guy Harris <guy@alum.mit.edu>
- * $Id: packet-rtsp.c,v 1.29 2000/12/02 06:05:29 guy Exp $
+ * $Id: packet-rtsp.c,v 1.30 2000/12/27 12:48:25 guy Exp $
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -446,7 +446,7 @@ dissect_rtspmessage(tvbuff_t *tvb, int offset, packet_info *pinfo,
* boundaries, we'll need to remember the actual
* content length.
- reported_datalen = tvb_reported_length(tvb) - offset;
+ reported_datalen = tvb_reported_length_remaining(tvb, offset);
if (content_length > reported_datalen)
content_length = reported_datalen;