Tvbuffify the RIP and OSPF dissectors.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 27 Dec 2000 12:48:27 +0000 (12:48 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 27 Dec 2000 12:48:27 +0000 (12:48 +0000)
commitf2d8ecfbef84b03fc87c77a753f5b7268e398196
tree59f34d6fc9106348a77f954051a59fae762e0c90
parent8c3deca05aa58a2f62243f3e48ecd1c1d27cc9e4
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()".

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2787 f5534014-38df-0310-8fa8-9805f1628bb7
Makefile.am
epan/tvbuff.c
epan/tvbuff.h
packet-ospf.c
packet-ospf.h [deleted file]
packet-rip.c
packet-rip.h [deleted file]
packet-rtsp.c