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/netmon.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/netmon.c')
-rw-r--r-- | wiretap/netmon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/netmon.c b/wiretap/netmon.c index 76cf224640..aa3ebf9872 100644 --- a/wiretap/netmon.c +++ b/wiretap/netmon.c @@ -1,6 +1,6 @@ /* netmon.c * - * $Id: netmon.c,v 1.40 2001/08/25 03:18:48 guy Exp $ + * $Id: netmon.c,v 1.41 2001/10/04 08:30:36 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org> @@ -93,7 +93,7 @@ struct netmonrec_2_x_hdr { guint32 incl_len; /* number of octets captured in file */ }; -static gboolean netmon_read(wtap *wth, int *err, int *data_offset); +static gboolean netmon_read(wtap *wth, int *err, long *data_offset); static void netmon_close(wtap *wth); static gboolean netmon_dump(wtap_dumper *wdh, const struct wtap_pkthdr *phdr, const union wtap_pseudo_header *pseudo_header, const u_char *pd, int *err); @@ -276,7 +276,7 @@ int netmon_open(wtap *wth, int *err) } /* Read the next packet */ -static gboolean netmon_read(wtap *wth, int *err, int *data_offset) +static gboolean netmon_read(wtap *wth, int *err, long *data_offset) { netmon_t *netmon = wth->capture.netmon; guint32 packet_size = 0; |