diff options
Diffstat (limited to 'wiretap/file.c')
-rw-r--r-- | wiretap/file.c | 8 |
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; +} |