diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-10-04 08:30:36 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-10-04 08:30:36 +0000 |
commit | 3c9efdf4784d22a4a1a04a256acb50a815f59348 (patch) | |
tree | dd8723e71887cc681dd075b04afe17d4455121e7 /wiretap/iptrace.c | |
parent | f52303ffc9a0d12894edca2af06cf064f46a2a91 (diff) |
Use longs as file offsets, so that on platforms with 64-bit "long" we
can handle capture files bigger than 2GB.
svn path=/trunk/; revision=3993
Diffstat (limited to 'wiretap/iptrace.c')
-rw-r--r-- | wiretap/iptrace.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/wiretap/iptrace.c b/wiretap/iptrace.c index dcecd0e082..42dd00b0a2 100644 --- a/wiretap/iptrace.c +++ b/wiretap/iptrace.c @@ -1,6 +1,6 @@ /* iptrace.c * - * $Id: iptrace.c,v 1.33 2001/03/10 06:33:57 guy Exp $ + * $Id: iptrace.c,v 1.34 2001/10/04 08:30:35 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org> @@ -31,12 +31,12 @@ #include "buffer.h" #include "iptrace.h" -static gboolean iptrace_read_1_0(wtap *wth, int *err, int *data_offset); -static int iptrace_seek_read_1_0(wtap *wth, int seek_off, +static gboolean iptrace_read_1_0(wtap *wth, int *err, long *data_offset); +static int iptrace_seek_read_1_0(wtap *wth, long seek_off, union wtap_pseudo_header *pseudo_header, u_char *pd, int packet_size); -static gboolean iptrace_read_2_0(wtap *wth, int *err, int *data_offset); -static int iptrace_seek_read_2_0(wtap *wth, int seek_off, +static gboolean iptrace_read_2_0(wtap *wth, int *err, long *data_offset); +static int iptrace_seek_read_2_0(wtap *wth, long seek_off, union wtap_pseudo_header *pseudo_header, u_char *pd, int packet_size); static int iptrace_read_rec_header(FILE_T fh, guint8 *header, int header_len, @@ -96,7 +96,7 @@ typedef struct { } iptrace_1_0_phdr; /* Read the next packet */ -static gboolean iptrace_read_1_0(wtap *wth, int *err, int *data_offset) +static gboolean iptrace_read_1_0(wtap *wth, int *err, long *data_offset) { int ret; guint32 packet_size; @@ -161,7 +161,7 @@ static gboolean iptrace_read_1_0(wtap *wth, int *err, int *data_offset) return TRUE; } -static int iptrace_seek_read_1_0(wtap *wth, int seek_off, +static int iptrace_seek_read_1_0(wtap *wth, long seek_off, union wtap_pseudo_header *pseudo_header, u_char *pd, int packet_size) { int ret; @@ -204,7 +204,7 @@ typedef struct { } iptrace_2_0_phdr; /* Read the next packet */ -static gboolean iptrace_read_2_0(wtap *wth, int *err, int *data_offset) +static gboolean iptrace_read_2_0(wtap *wth, int *err, long *data_offset) { int ret; guint32 packet_size; @@ -273,7 +273,7 @@ static gboolean iptrace_read_2_0(wtap *wth, int *err, int *data_offset) return TRUE; } -static int iptrace_seek_read_2_0(wtap *wth, int seek_off, +static int iptrace_seek_read_2_0(wtap *wth, long seek_off, union wtap_pseudo_header *pseudo_header, u_char *pd, int packet_size) { int ret; |