aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/pppdump.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-10-04 08:30:36 +0000
committerGuy Harris <guy@alum.mit.edu>2001-10-04 08:30:36 +0000
commit3c9efdf4784d22a4a1a04a256acb50a815f59348 (patch)
treedd8723e71887cc681dd075b04afe17d4455121e7 /wiretap/pppdump.c
parentf52303ffc9a0d12894edca2af06cf064f46a2a91 (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/pppdump.c')
-rw-r--r--wiretap/pppdump.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/wiretap/pppdump.c b/wiretap/pppdump.c
index 1ed11e5ef4..ce3d3c8a65 100644
--- a/wiretap/pppdump.c
+++ b/wiretap/pppdump.c
@@ -1,6 +1,6 @@
/* pppdump.c
*
- * $Id: pppdump.c,v 1.8 2001/03/10 06:33:58 guy Exp $
+ * $Id: pppdump.c,v 1.9 2001/10/04 08:30:36 guy Exp $
*
* Copyright (c) 2000 by Gilbert Ramirez <gram@xiexie.org>
*
@@ -93,8 +93,8 @@ typedef enum {
DIRECTION_RECV
} direction_enum;
-static gboolean pppdump_read(wtap *wth, int *err, int *data_offset);
-static int pppdump_seek_read(wtap *wth, int seek_off,
+static gboolean pppdump_read(wtap *wth, int *err, long *data_offset);
+static int pppdump_seek_read(wtap *wth, long seek_off,
union wtap_pseudo_header *pseudo_header, guint8 *pd, int len);
typedef struct {
@@ -222,7 +222,7 @@ pppdump_open(wtap *wth, int *err)
/* Find the next packet and parse it; called from wtap_loop(). */
static gboolean
-pppdump_read(wtap *wth, int *err, int *data_offset)
+pppdump_read(wtap *wth, int *err, long *data_offset)
{
gboolean retval;
int num_bytes;
@@ -517,7 +517,7 @@ collate(pppdump_t* state, FILE_T fh, int *err, guint8 *pd, int *num_bytes,
/* Used to read packets in random-access fashion */
static int
pppdump_seek_read (wtap *wth,
- int seek_off,
+ long seek_off,
union wtap_pseudo_header *pseudo_header,
guint8 *pd,
int len)