diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-07-17 06:55:29 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-07-17 06:55:29 +0000 |
commit | 47b147ffd119809198871932874f6fc5b7e6e836 (patch) | |
tree | e3040460a5348a10bfe0cba753a7eec70fb5349b /packet-rsh.c | |
parent | cc00331455604ca51fa743a4f73f5c899c023a67 (diff) |
Add an extra argument to "tvb_find_line_end()", which specifies what it
should do if it doesn't find an EOL; if FALSE, it behaves as before,
returning values that treat the line as ending at the end of the tvbuff,
and if TRUE, it returns -1, so its caller can do segment reassembly
until it gets the EOL.
Add an option to the SMTP dissector to do segment reassembly, and do
segment reassembly of the first line.
svn path=/trunk/; revision=5891
Diffstat (limited to 'packet-rsh.c')
-rw-r--r-- | packet-rsh.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packet-rsh.c b/packet-rsh.c index f604edf81b..1e760c8d16 100644 --- a/packet-rsh.c +++ b/packet-rsh.c @@ -4,7 +4,7 @@ * Robert Tsai <rtsai@netapp.com> * Liberally copied from packet-http.c, by Guy Harris <guy@alum.mit.edu> * - * $Id: packet-rsh.c,v 1.17 2002/04/14 23:04:04 guy Exp $ + * $Id: packet-rsh.c,v 1.18 2002/07/17 06:55:20 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -57,7 +57,7 @@ dissect_rsh(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) col_set_str(pinfo->cinfo, COL_PROTOCOL, "RSH"); if (check_col(pinfo->cinfo, COL_INFO)) { /* Put the first line from the buffer into the summary. */ - tvb_find_line_end(tvb, offset, -1, &next_offset); + tvb_find_line_end(tvb, offset, -1, &next_offset, FALSE); linelen = next_offset - offset; /* include the line terminator */ /* @@ -82,7 +82,8 @@ dissect_rsh(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* * Find the end of the line. */ - tvb_find_line_end(tvb, offset, -1, &next_offset); + tvb_find_line_end(tvb, offset, -1, &next_offset, + FALSE); /* * Put this line. |