bgp route refresh/MP capability option.
[obnox/wireshark/wip.git] / follow.h
1 /* follow.h
2  *
3  * $Id: follow.h,v 1.10 2000/08/11 22:18:13 deniel 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 #define MAX_IPADDR_LEN  16
34
35 extern gboolean incomplete_tcp_stream;
36
37 typedef struct _tcp_frag {
38   u_long              seq;
39   u_long              len;
40   u_long              data_len;
41   u_char             *data;
42   struct _tcp_frag   *next;
43 } tcp_frag;
44
45 typedef struct _tcp_stream_chunk {
46   guint8      src_addr[MAX_IPADDR_LEN];
47   guint16     src_port;
48   guint32     dlen;
49 } tcp_stream_chunk;
50
51 char* build_follow_filter( packet_info * );
52 void reassemble_tcp( u_long, u_long, const char*, u_long, int, 
53                      address *, address *, u_int, u_int );
54 void  reset_tcp_reassembly( void );
55
56 typedef struct {
57         guint8          ip_address[2][MAX_IPADDR_LEN];
58         guint32         tcp_port[2];
59         unsigned int    bytes_written[2];
60         gboolean        is_ipv6;
61 } follow_tcp_stats_t;
62
63 void follow_tcp_stats(follow_tcp_stats_t* stats);
64
65 #endif