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/nettl.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/nettl.c')
-rw-r--r-- | wiretap/nettl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wiretap/nettl.c b/wiretap/nettl.c index 5c75358bba..c19b219d4f 100644 --- a/wiretap/nettl.c +++ b/wiretap/nettl.c @@ -1,6 +1,6 @@ /* nettl.c * - * $Id: nettl.c,v 1.19 2001/03/10 06:33:57 guy Exp $ + * $Id: nettl.c,v 1.20 2001/10/04 08:30:36 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org> @@ -66,8 +66,8 @@ struct nettlrec_ns_ls_ip_hdr { /* header is followed by data and once again the total length (2 bytes) ! */ -static gboolean nettl_read(wtap *wth, int *err, int *data_offset); -static int nettl_seek_read(wtap *wth, int seek_off, +static gboolean nettl_read(wtap *wth, int *err, long *data_offset); +static int nettl_seek_read(wtap *wth, long seek_off, union wtap_pseudo_header *pseudo_header, u_char *pd, int length); static int nettl_read_rec_header(wtap *wth, FILE_T fh, struct wtap_pkthdr *phdr, union wtap_pseudo_header *pseudo_header, @@ -124,7 +124,7 @@ int nettl_open(wtap *wth, int *err) } /* Read the next packet */ -static gboolean nettl_read(wtap *wth, int *err, int *data_offset) +static gboolean nettl_read(wtap *wth, int *err, long *data_offset) { int ret; @@ -150,7 +150,7 @@ static gboolean nettl_read(wtap *wth, int *err, int *data_offset) } static int -nettl_seek_read(wtap *wth, int seek_off, +nettl_seek_read(wtap *wth, long seek_off, union wtap_pseudo_header *pseudo_header, u_char *pd, int length) { int ret; |