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
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