Commit Graph

8 Commits

Author SHA1 Message Date
Guy Harris 8afbfc0c60 Handle the case where "ssh_dissect_protocol()", for the first packet,
didn't determine the version number.

svn path=/trunk/; revision=9432
2003-12-23 21:16:27 +00:00
Guy Harris 911f43b874 Use "tvb_ensure_length_remaining()" when checking how much data there is
in the packet when doing reassembly checks, as is done in other places
where we do TCP segment reassembly.

The return value of "tvb_reported_length_remaining()" can be negative -
it's a "gint"; assign it to a "gint", so that if we go past the end of
the packet in the main loop, we break out of that loop (and do so
elsewhere, just for cleanliness' sake).

Get rid the check in the loop to make sure we make no more than 20
iterations - all the routines that parse packets should either advance
the offset by at least one byte or return a "desegmentation required"
indication; the former means we make progress and eventually exit the
loop, the latter means we immediately exit the loop.

Use "int" variables, not "guint" variables, for packet offsets.

svn path=/trunk/; revision=7475
2003-04-17 07:39:18 +00:00
Gerald Combs 628be571bd From Markus Friedl: Remove duplicate code in packet-ssh.c.
svn path=/trunk/; revision=7327
2003-03-08 22:15:41 +00:00
Guy Harris f2861263ec FT_STRING and FT_STRINGZ have no base, so use BASE_NONE.
The payload isn't a text string, it's an array of bytes; make it
FT_BYTES, not FT_STRING.

svn path=/trunk/; revision=7042
2003-01-30 08:11:20 +00:00
Guy Harris 297fa30af2 From Huagang Xie: more robust parsing for illegal SSH packet.
svn path=/trunk/; revision=7032
2003-01-29 07:03:39 +00:00
Guy Harris 77b96651e2 From Huagang Xie: SSH version 1 support.
svn path=/trunk/; revision=7019
2003-01-28 16:21:26 +00:00
Guy Harris 89cabdabfa From Huagang Xu: treat all SSH sesions where the version cannot be
determined as having an unknown version of SSH rather than as using
SSHv1.

svn path=/trunk/; revision=7005
2003-01-27 19:40:55 +00:00
Guy Harris ff9fece331 SSH dissector, from Huagang Xie.
svn path=/trunk/; revision=7001
2003-01-25 00:22:50 +00:00