aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/file.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-12-04 07:32:05 +0000
committerGuy Harris <guy@alum.mit.edu>2001-12-04 07:32:05 +0000
commita1660d6d3afbaeccd77d8e34c695bf65a4f4f09e (patch)
tree20e71ed2ee0399b430f10ab92177fb1d5fc7e953 /wiretap/file.c
parent9426c4ad15826cee237cc1f822c8a758d01473f6 (diff)
Support for stopping capture at specified capture file size or capture
duration, from Thomas Wittwer and Matthias Nyffenegger. svn path=/trunk/; revision=4322
Diffstat (limited to 'wiretap/file.c')
-rw-r--r--wiretap/file.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/wiretap/file.c b/wiretap/file.c
index 6af9dc5536..edc3fd076c 100644
--- a/wiretap/file.c
+++ b/wiretap/file.c
@@ -1,6 +1,6 @@
/* file.c
*
- * $Id: file.c,v 1.74 2001/11/13 23:55:43 gram Exp $
+ * $Id: file.c,v 1.75 2001/12/04 07:32:05 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
@@ -544,6 +544,7 @@ static wtap_dumper* wtap_dump_alloc_wdh(int filetype, int encap, int snaplen,
wdh->file_type = filetype;
wdh->snaplen = snaplen;
wdh->encap = encap;
+ wdh->bytes_dumped = 0;
wdh->dump.opaque = NULL;
wdh->subtype_write = NULL;
wdh->subtype_close = NULL;
@@ -604,3 +605,8 @@ gboolean wtap_dump_close(wtap_dumper *wdh, int *err)
g_free(wdh);
return ret;
}
+
+int wtap_get_bytes_dumped(wtap_dumper *wdh)
+{
+ return wdh->bytes_dumped;
+}