24void wtap_init_file_type_subtypes(
void);
27int wtap_fstat(
wtap *wth, ws_statb64 *statb,
int *err);
29typedef bool (*subtype_read_func)(
struct wtap*,
wtap_rec *,
30 int *,
char **, int64_t *);
31typedef bool (*subtype_seek_read_func)(
struct wtap*, int64_t,
wtap_rec *,
41 int file_type_subtype;
42 unsigned snapshot_length;
59 void (*subtype_sequential_close)(
struct wtap*);
60 void (*subtype_close)(
struct wtap*);
90 wtap_new_ipv6_callback_t add_new_ipv6;
101typedef void *WFILE_T;
108typedef bool (*subtype_finish_func)(
struct wtap_dumper*,
int*,
char**);
112 int file_type_subtype;
120 ws_compression_type compression_type;
122 int64_t bytes_dumped;
127 subtype_add_idb_func subtype_add_idb;
128 subtype_write_func subtype_write;
129 subtype_finish_func subtype_finish;
151WS_DLL_PUBLIC
bool wtap_dump_file_write(
wtap_dumper *wdh,
const void *buf,
152 size_t bufsize,
int *err);
153WS_DLL_PUBLIC int64_t wtap_dump_file_seek(
wtap_dumper *wdh, int64_t offset,
int whence,
int *err);
154WS_DLL_PUBLIC int64_t wtap_dump_file_tell(
wtap_dumper *wdh,
int *err);
156extern int wtap_num_file_types;
213wtap_read_bytes_or_eof(
FILE_T fh,
void *buf,
unsigned int count,
int *err,
231wtap_read_bytes(
FILE_T fh,
void *buf,
unsigned int count,
int *err,
246wtap_read_bytes_buffer(
FILE_T fh,
Buffer *buf,
unsigned length,
int *err,
254wtap_full_file_read(
wtap *wth,
wtap_rec *rec,
int *err,
char **err_info,
255 int64_t *data_offset);
262wtap_full_file_seek_read(
wtap *wth, int64_t seek_off,
wtap_rec *rec,
263 int *err,
char **err_info);
290wtap_register_compatibility_file_subtype_name(
const char *old_name,
291 const char *new_name);
294wtap_register_backwards_compatibility_lua_name(
const char *name,
int ft);
302const GArray *get_backwards_compatibility_lua_table(
void);
Definition wtap-int.h:296
Definition wtap_opttypes.h:272
Definition wtap-int.h:110
unsigned dpibs_growing_written
Definition wtap-int.h:148
unsigned nrbs_growing_written
Definition wtap-int.h:145
GArray * dsbs_initial
Definition wtap-int.h:135
GArray * interface_data
Definition wtap-int.h:134
const GArray * dsbs_growing
Definition wtap-int.h:142
const GArray * mevs_growing
Definition wtap-int.h:143
unsigned mevs_growing_written
Definition wtap-int.h:147
const GArray * shb_iface_to_global
Definition wtap-int.h:133
const GArray * dpibs_growing
Definition wtap-int.h:144
unsigned dsbs_growing_written
Definition wtap-int.h:146
addrinfo_lists_t * addrinfo_lists
Definition wtap-int.h:131
const GArray * nrbs_growing
Definition wtap-int.h:141
Definition file_wrappers.c:97
GArray * interface_data
Definition wtap-int.h:45
bool ispipe
Definition wtap-int.h:40
nstime_t file_start_ts
Definition wtap-int.h:77
unsigned next_dpib_id
Definition wtap-int.h:51
int file_tsprec
Definition wtap-int.h:67
subtype_read_func subtype_read
Definition wtap-int.h:57
nstime_t file_end_ts
Definition wtap-int.h:83
GArray * shb_iface_to_global
Definition wtap-int.h:44
subtype_seek_read_func subtype_seek_read
Definition wtap-int.h:58
int file_encap
Definition wtap-int.h:61
FILE_T random_fh
Definition wtap-int.h:39
FILE_T fh
Definition wtap-int.h:38
unsigned next_interface_data
Definition wtap-int.h:46
GArray * nrbs
Definition wtap-int.h:47
GArray * dpibs
Definition wtap-int.h:50
char * pathname
Definition wtap-int.h:52
GArray * meta_events
Definition wtap-int.h:49
void * priv
Definition wtap-int.h:54
void * wslua_data
Definition wtap-int.h:55
GArray * dsbs
Definition wtap-int.h:48
void wtapng_process_nrb(wtap *wth, wtap_block_t nrb)
Definition wtap.c:1710
void wtapng_process_dsb(wtap *wth, wtap_block_t dsb)
Definition wtap.c:1734
wtap_block_t wtap_rec_generate_idb(const wtap_rec *rec)
Generate an IDB, given a packet record, using the records's encapsulation type and time stamp resolut...
Definition wtap.c:2049
GArray * wtap_file_get_shb_for_new_file(wtap *wth)
Gets new section header block for new file, based on existing info.
Definition wtap.c:164
wtap_block_t wtap_dump_params_generate_idb(const wtap_dump_params *params)
Generate an IDB, given a set of dump parameters, using the parameters' encapsulation type,...
Definition wtap.c:651
WS_DLL_PUBLIC void wtap_add_generated_idb(wtap *wth)
Generate an IDB, given a wiretap handle for the file, using the file's encapsulation type,...
Definition wtap.c:382
void wtap_add_dpib(wtap *wth, wtap_block_t dpib)
Definition wtap.c:306
void wtap_add_idb(wtap *wth, wtap_block_t idb)
Definition wtap.c:300
GArray * wtap_file_get_nrb_for_new_file(wtap *wth)
Gets new name resolution info for new file, based on existing info.
Definition wtap.c:552
void(* wtap_new_secrets_callback_t)(uint32_t secrets_type, const void *secrets, unsigned size)
Definition wtap.h:1927
void(* wtap_new_ipv4_callback_t)(const unsigned addr, const char *name, const bool static_entry)
Definition wtap.h:1915