Heikki Vatiainen's patch to add a flag to control whether to interpret
[obnox/wireshark/wip.git] / follow.h
1 /* follow.h
2  *
3  * $Id: follow.h,v 1.7 1999/11/28 03:35:09 gerald Exp $
4  *
5  * Copyright 1998 Mike Hall <mlh@io.com>
6  *
7  * Ethereal - Network traffic analyzer
8  * By Gerald Combs <gerald@zing.org>
9  * Copyright 1998 Gerald Combs
10  *
11  * 
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License
14  * as published by the Free Software Foundation; either version 2
15  * of the License, or (at your option) any later version.
16  * 
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  * 
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25  *
26  */
27
28 #ifndef __FOLLOW_H__
29 #define __FOLLOW_H__
30
31 #include "packet.h"
32
33 extern gboolean incomplete_tcp_stream;
34
35 typedef struct _tcp_frag {
36   u_long              seq;
37   u_long              len;
38   u_long              data_len;
39   u_char             *data;
40   struct _tcp_frag   *next;
41 } tcp_frag;
42
43 typedef struct _tcp_stream_chunk {
44   guint32     src_addr;
45   guint16     src_port;
46   guint32     secs, usecs;
47   guint32     dlen;
48 } tcp_stream_chunk;
49
50 char* build_follow_filter( packet_info * );
51 void reassemble_tcp( u_long, u_long, const char*, u_long, int, 
52                      address *, address *, u_int, u_int, guint32, guint32 );
53 void  reset_tcp_reassembly( void );
54
55 #endif