Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
tap_export_pdu.h
Go to the documentation of this file.
1
11
12#ifndef __TAP_EXPORT_PDU_H__
13#define __TAP_EXPORT_PDU_H__
14
15#ifdef __cplusplus
16extern "C" {
17#endif /* __cplusplus */
18
30
41char *exp_pdu_pre_open(const char *tap_name, const char *filter,
42 exp_pdu_t *exp_pdu_tap_data);
43
59bool exp_pdu_open(exp_pdu_t *data, char *pathname, int file_type_subtype,
60 int fd, const char *comment, int *err, char **err_info);
61
62/* Stops the PDUs export. */
71bool exp_pdu_close(exp_pdu_t *exp_pdu_tap_data, int *err, char **err_info);
72
73#ifdef __cplusplus
74}
75#endif /* __cplusplus */
76
77#endif /* __TAP_EXPORT_PDU_H__ */
Holds the state and metadata required to export PDUs to a pcapng output file.
Definition tap_export_pdu.h:22
GArray * shb_hdrs
Definition tap_export_pdu.h:26
wtap_dumper * wdh
Definition tap_export_pdu.h:25
char * pathname
Definition tap_export_pdu.h:23
int pkt_encap
Definition tap_export_pdu.h:24
uint32_t framenum
Definition tap_export_pdu.h:28
wtapng_iface_descriptions_t * idb_inf
Definition tap_export_pdu.h:27
Wiretap dumper handle and associated state.
Definition wtap_module.h:163
char * exp_pdu_pre_open(const char *tap_name, const char *filter, exp_pdu_t *exp_pdu_tap_data)
Registers the tap listener which will add matching packets to the exported file. Must be called befor...
Definition tap_export_pdu.c:196
bool exp_pdu_open(exp_pdu_t *data, char *pathname, int file_type_subtype, int fd, const char *comment, int *err, char **err_info)
Use the given file descriptor for writing an output file. Can only be called once and exp_pdu_pre_ope...
Definition tap_export_pdu.c:83
bool exp_pdu_close(exp_pdu_t *exp_pdu_tap_data, int *err, char **err_info)
Closes an exported PDU tap.
Definition tap_export_pdu.c:181
struct _exp_pdu_t exp_pdu_t
Holds the state and metadata required to export PDUs to a pcapng output file.
struct wtapng_iface_descriptions_s wtapng_iface_descriptions_t