diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-05-25 09:00:24 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-05-25 09:00:24 +0000 |
commit | 8af330852d2b00e0b65470dacea4eba20c5c1418 (patch) | |
tree | 478701f3e502f55a478b5f216eecf2025695c99d /wiretap/wtap-int.h | |
parent | 99efdc9fba37a7498e25e96dc4f3f4515852a5a4 (diff) |
Support for reading compressed Sniffer files, from Tim Farley, Joerg
Mayer, and yours truly.
svn path=/trunk/; revision=2002
Diffstat (limited to 'wiretap/wtap-int.h')
-rw-r--r-- | wiretap/wtap-int.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/wiretap/wtap-int.h b/wiretap/wtap-int.h index 5429769868..4f94594a85 100644 --- a/wiretap/wtap-int.h +++ b/wiretap/wtap-int.h @@ -1,6 +1,6 @@ /* wtap-int.h * - * $Id: wtap-int.h,v 1.1 2000/05/19 23:07:04 gram Exp $ + * $Id: wtap-int.h,v 1.2 2000/05/25 09:00:23 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org> @@ -47,10 +47,21 @@ #include "wtap.h" +/* Information for a compressed Sniffer data stream. */ +typedef struct { + unsigned char *file_outbuf; + unsigned char *nextout; + size_t outbuf_nbytes; + long offset; +} ngsniffer_comp_stream_t; + typedef struct { double timeunit; time_t start; int is_atm; + ngsniffer_comp_stream_t seq; /* sequential access */ + ngsniffer_comp_stream_t rand; /* random access */ + long data_offset; /* start of possibly-compressed stuff */ } ngsniffer_t; typedef struct { @@ -126,6 +137,7 @@ struct wtap { subtype_read_func subtype_read; subtype_seek_read_func subtype_seek_read; + void (*subtype_sequential_close)(struct wtap*); void (*subtype_close)(struct wtap*); int file_encap; /* per-file, for those file formats that have |