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;
58 void (*subtype_sequential_close)(
struct wtap*);
59 void (*subtype_close)(
struct wtap*);
77 wtap_new_ipv6_callback_t add_new_ipv6;
95typedef bool (*subtype_finish_func)(
struct wtap_dumper*,
int*,
char**);
99 int file_type_subtype;
107 wtap_compression_type compression_type;
109 int64_t bytes_dumped;
114 subtype_add_idb_func subtype_add_idb;
115 subtype_write_func subtype_write;
116 subtype_finish_func subtype_finish;
136WS_DLL_PUBLIC
bool wtap_dump_file_write(
wtap_dumper *wdh,
const void *buf,
137 size_t bufsize,
int *err);
138WS_DLL_PUBLIC int64_t wtap_dump_file_seek(
wtap_dumper *wdh, int64_t offset,
int whence,
int *err);
139WS_DLL_PUBLIC int64_t wtap_dump_file_tell(
wtap_dumper *wdh,
int *err);
141extern int wtap_num_file_types;
198wtap_read_bytes_or_eof(
FILE_T fh,
void *buf,
unsigned int count,
int *err,
216wtap_read_bytes(
FILE_T fh,
void *buf,
unsigned int count,
int *err,
231wtap_read_bytes_buffer(
FILE_T fh,
Buffer *buf,
unsigned length,
int *err,
239wtap_full_file_read(
wtap *wth,
wtap_rec *rec,
int *err,
char **err_info,
240 int64_t *data_offset);
247wtap_full_file_seek_read(
wtap *wth, int64_t seek_off,
wtap_rec *rec,
248 int *err,
char **err_info);
269wtap_register_compatibility_file_subtype_name(
const char *old_name,
270 const char *new_name);
273wtap_register_backwards_compatibility_lua_name(
const char *name,
int ft);
281const GArray *get_backwards_compatibility_lua_table(
void);
Definition wtap-int.h:275
Definition wtap_opttypes.h:229
unsigned nrbs_growing_written
Definition wtap-int.h:131
GArray * dsbs_initial
Definition wtap-int.h:122
GArray * interface_data
Definition wtap-int.h:121
const GArray * dsbs_growing
Definition wtap-int.h:129
const GArray * mevs_growing
Definition wtap-int.h:130
unsigned mevs_growing_written
Definition wtap-int.h:133
const GArray * shb_iface_to_global
Definition wtap-int.h:120
unsigned dsbs_growing_written
Definition wtap-int.h:132
addrinfo_lists_t * addrinfo_lists
Definition wtap-int.h:118
const GArray * nrbs_growing
Definition wtap-int.h:128
Definition file_wrappers.c:215
GArray * interface_data
Definition wtap-int.h:45
bool ispipe
Definition wtap-int.h:40
int file_tsprec
Definition wtap-int.h:66
subtype_read_func subtype_read
Definition wtap-int.h:56
GArray * shb_iface_to_global
Definition wtap-int.h:44
subtype_seek_read_func subtype_seek_read
Definition wtap-int.h:57
int file_encap
Definition wtap-int.h:60
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
char * pathname
Definition wtap-int.h:51
GArray * meta_events
Definition wtap-int.h:49
void * priv
Definition wtap-int.h:53
void * wslua_data
Definition wtap-int.h:54
GArray * dsbs
Definition wtap-int.h:48
void wtapng_process_nrb(wtap *wth, wtap_block_t nrb)
Definition wtap.c:1675
void wtapng_process_dsb(wtap *wth, wtap_block_t dsb)
Definition wtap.c:1699
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:2014
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:152
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:620
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:353
void wtap_add_idb(wtap *wth, wtap_block_t idb)
Definition wtap.c:277
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:523
void(* wtap_new_secrets_callback_t)(uint32_t secrets_type, const void *secrets, unsigned size)
Definition wtap.h:1908
void(* wtap_new_ipv4_callback_t)(const unsigned addr, const char *name, const bool static_entry)
Definition wtap.h:1896