Commit graph

5 commits

Author SHA1 Message Date
Guy Harris
68a8e74f22 Get rid of an unused variable.
svn path=/trunk/; revision=10637
2004-04-18 19:52:06 +00:00
Guy Harris
c8b07d8c4b Make "little_endian" local to the routines to parse submessages.
Before checking for the "RTPS" tag, make sure we have at least 4 bytes
in the message.

Use "tvb_reported_length()" to get the length of the message, so we
throw an exception on a packet cut short by a snapshot length.

Put in a comment asking whether the byte order of the "offset to next
submessage" field is little-endian or specified by the E bit.

svn path=/trunk/; revision=10636
2004-04-18 18:55:13 +00:00
Ulf Lamping
110249be63 removed some MSVC warnings
svn path=/trunk/; revision=10633
2004-04-18 06:40:27 +00:00
Guy Harris
47da2aae59 Put "#" in pre-processor keywords at the beginning of the line - I seem
to remember that at least at one point in the history of C, at least one
compiler required that.

Clean up the byte-order stuff - LITTLE_ENDIAN and BIG_ENDIAN aren't
defined by Ethereal or GLib, so we shouldn't use them (some platforms
might define them, but at least some platforms define them *both* as
non-zero values, so they can't be used as "true or false" values for
"e_bit"), and we don't need to worry about the byte order of the machine
running Ethereal - we should just use Ethereal's standard routines to
fetch little-endian or big-endian values.

Get rid of C++ comments.

svn path=/trunk/; revision=10631
2004-04-17 22:11:42 +00:00
Guy Harris
ad8564846e From Lukas Pokorny: RTPS (Real-Time Publish-Subscribe) support.
svn path=/trunk/; revision=10630
2004-04-17 21:43:32 +00:00