diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-07-17 06:55:29 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-07-17 06:55:29 +0000 |
commit | fc616618cac99301b5e51d05a94a9582c37c3dca (patch) | |
tree | e3040460a5348a10bfe0cba753a7eec70fb5349b /packet-telnet.c | |
parent | 60f24595ad782fcd02f0179dbf6b84ecb8b26a36 (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5891 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-telnet.c')
-rw-r--r-- | packet-telnet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-telnet.c b/packet-telnet.c index 846af252bb..41bc328e4b 100644 --- a/packet-telnet.c +++ b/packet-telnet.c @@ -2,7 +2,7 @@ * Routines for telnet packet dissection * Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com> * - * $Id: packet-telnet.c,v 1.29 2002/01/24 09:20:52 guy Exp $ + * $Id: packet-telnet.c,v 1.30 2002/07/17 06:55:20 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -311,7 +311,7 @@ telnet_add_text(proto_tree *tree, tvbuff_t *tvb, int offset, int len) /* * Find the end of the line. */ - linelen = tvb_find_line_end(tvb, offset, len, &next_offset); + linelen = tvb_find_line_end(tvb, offset, len, &next_offset, FALSE); len -= next_offset - offset; /* subtract out the line's characters */ /* |