aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-12-04 08:26:00 +0000
committerGuy Harris <guy@alum.mit.edu>2001-12-04 08:26:00 +0000
commit8032fa8a1bafcbf76d3cadcedb03480fbfd51ecf (patch)
treea634ca1961bfec804908e381e96ad6d793a7f2b9 /wiretap/wtap.h
parenta1660d6d3afbaeccd77d8e34c695bf65a4f4f09e (diff)
downloadwireshark-8032fa8a1bafcbf76d3cadcedb03480fbfd51ecf.tar.gz
wireshark-8032fa8a1bafcbf76d3cadcedb03480fbfd51ecf.tar.bz2
wireshark-8032fa8a1bafcbf76d3cadcedb03480fbfd51ecf.zip
Make the bytes-written information from Wiretap a long, as we allow
files to get that big. From Thomas Wittwer and Matthias Nyffenegger: Support for "ring buffer mode", wherein there's a ring buffer of N capture files; as each capture file reaches its maximum size (the ring buffer works only with a maximum capture file size specified), Ethereal rolls over to the next capture file in the ring buffer, replacing whatever packets might be in it with new packets. svn path=/trunk/; revision=4323
Diffstat (limited to 'wiretap/wtap.h')
-rw-r--r--wiretap/wtap.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/wiretap/wtap.h b/wiretap/wtap.h
index 8835636079..ff2cc60399 100644
--- a/wiretap/wtap.h
+++ b/wiretap/wtap.h
@@ -1,6 +1,6 @@
/* wtap.h
*
- * $Id: wtap.h,v 1.97 2001/12/04 07:32:05 guy Exp $
+ * $Id: wtap.h,v 1.98 2001/12/04 08:26:00 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
@@ -339,7 +339,8 @@ gboolean wtap_dump(wtap_dumper *, const struct wtap_pkthdr *,
const union wtap_pseudo_header *pseudo_header, const u_char *, int *err);
FILE* wtap_dump_file(wtap_dumper *);
gboolean wtap_dump_close(wtap_dumper *, int *);
-int wtap_get_bytes_dumped(wtap_dumper *);
+long wtap_get_bytes_dumped(wtap_dumper *);
+void wtap_set_bytes_dumped(wtap_dumper *wdh, long bytes_dumped);
/* XXX - needed until "wiretap" can do live packet captures */
int wtap_pcap_encap_to_wtap_encap(int encap);