aboutsummaryrefslogtreecommitdiffstats
path: root/follow.h
diff options
context:
space:
mode:
authordeniel <deniel@f5534014-38df-0310-8fa8-9805f1628bb7>1999-03-23 20:25:50 +0000
committerdeniel <deniel@f5534014-38df-0310-8fa8-9805f1628bb7>1999-03-23 20:25:50 +0000
commita398602b88f3aaee7e2ae311c8f79d5c850d5411 (patch)
treece128627d0709569356b166701630d4cc15c295d /follow.h
parentf3d90df82d8af4cbefa496e6538778c80ff20eab (diff)
Fixes to the TCP reassembly code to correctly handle too short
caplen or incomplete data (avoid crashes or erroneous display). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@227 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'follow.h')
-rw-r--r--follow.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/follow.h b/follow.h
index 68bf2aef61..cffcd5e01b 100644
--- a/follow.h
+++ b/follow.h
@@ -1,6 +1,6 @@
/* follow.h
*
- * $Id: follow.h,v 1.2 1998/09/27 22:12:26 gerald Exp $
+ * $Id: follow.h,v 1.3 1999/03/23 20:25:50 deniel Exp $
*
* Copyright 1998 Mike Hall <mlh@io.com>
*
@@ -30,15 +30,18 @@
#include "packet.h"
+extern gboolean incomplete_tcp_stream;
+
typedef struct _tcp_frag {
u_long seq;
u_long len;
+ u_long data_len;
u_char *data;
struct _tcp_frag *next;
} tcp_frag;
char* build_follow_filter( packet_info * );
-void reassemble_tcp( u_long, u_long, const char*, int, u_long );
+void reassemble_tcp( u_long, u_long, const char*, u_long, int, u_long );
int check_fragments( int );
void reset_tcp_reassembly( void );
void write_packet_data( const u_char *, int );