aboutsummaryrefslogtreecommitdiffstats
path: root/follow.h
diff options
context:
space:
mode:
authorLaurent Deniel <laurent.deniel@free.fr>2000-08-11 22:18:22 +0000
committerLaurent Deniel <laurent.deniel@free.fr>2000-08-11 22:18:22 +0000
commit281e8929396fc609987ad2f953403fd13f6e5f5c (patch)
tree2ddbc9007efeca4547e729d4b707ff3fb7672331 /follow.h
parente18d6c34c9c6e3bb341ded481ebad4730d1d527d (diff)
- add ipv6.addr for the source and destination addresses (like ipv4)
- implement the TCP follow feature for TCP over IPv6 svn path=/trunk/; revision=2258
Diffstat (limited to 'follow.h')
-rw-r--r--follow.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/follow.h b/follow.h
index 3d6afb9dda..02c8236fe1 100644
--- a/follow.h
+++ b/follow.h
@@ -1,6 +1,6 @@
/* follow.h
*
- * $Id: follow.h,v 1.9 2000/08/09 05:18:38 gram Exp $
+ * $Id: follow.h,v 1.10 2000/08/11 22:18:13 deniel Exp $
*
* Copyright 1998 Mike Hall <mlh@io.com>
*
@@ -30,6 +30,8 @@
#include "packet.h"
+#define MAX_IPADDR_LEN 16
+
extern gboolean incomplete_tcp_stream;
typedef struct _tcp_frag {
@@ -41,7 +43,7 @@ typedef struct _tcp_frag {
} tcp_frag;
typedef struct _tcp_stream_chunk {
- guint32 src_addr;
+ guint8 src_addr[MAX_IPADDR_LEN];
guint16 src_port;
guint32 dlen;
} tcp_stream_chunk;
@@ -52,9 +54,10 @@ void reassemble_tcp( u_long, u_long, const char*, u_long, int,
void reset_tcp_reassembly( void );
typedef struct {
- guint32 ip_address[2];
+ guint8 ip_address[2][MAX_IPADDR_LEN];
guint32 tcp_port[2];
unsigned int bytes_written[2];
+ gboolean is_ipv6;
} follow_tcp_stats_t;
void follow_tcp_stats(follow_tcp_stats_t* stats);