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-rtsp.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-rtsp.c')
-rw-r--r-- | packet-rtsp.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packet-rtsp.c b/packet-rtsp.c index 7d9eda7f52..4b11d986ed 100644 --- a/packet-rtsp.c +++ b/packet-rtsp.c @@ -4,7 +4,7 @@ * Jason Lango <jal@netapp.com> * Liberally copied from packet-http.c, by Guy Harris <guy@alum.mit.edu> * - * $Id: packet-rtsp.c,v 1.47 2002/01/21 07:36:41 guy Exp $ + * $Id: packet-rtsp.c,v 1.48 2002/07/17 06:55:20 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -425,7 +425,8 @@ dissect_rtspmessage(tvbuff_t *tvb, int offset, packet_info *pinfo, * line terminator). * Otherwise, just call it a continuation. */ - linelen = tvb_find_line_end(tvb, offset, -1, &next_offset); + linelen = tvb_find_line_end(tvb, offset, -1, &next_offset, + FALSE); line = tvb_get_ptr(tvb, offset, linelen); switch (is_rtsp_request_or_reply(line, linelen)) { @@ -458,7 +459,8 @@ dissect_rtspmessage(tvbuff_t *tvb, int offset, packet_info *pinfo, /* * Find the end of the line. */ - linelen = tvb_find_line_end(tvb, offset, -1, &next_offset); + linelen = tvb_find_line_end(tvb, offset, -1, &next_offset, + FALSE); /* * Get a buffer that refers to the line. |