| 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
16 extern "C" {
17#endif /* __cplusplus */
18
22 typedef struct _exp_pdu_t {
23 char *pathname;
24 int pkt_encap;
25 wtap_dumper *wdh;
26 GArray *shb_hdrs;
27 wtapng_iface_descriptions_t *idb_inf;
28 uint32_t framenum;
29} exp_pdu_t;
30
41 char *exp_pdu_pre_open(const char *tap_name, const char *filter,
42 exp_pdu_t *exp_pdu_tap_data);
43
59 bool 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. */
71 bool 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__ */
_exp_pdu_t
Holds the state and metadata required to export PDUs to a pcapng output file.
Definition tap_export_pdu.h:22
_exp_pdu_t::shb_hdrs
GArray * shb_hdrs
Definition tap_export_pdu.h:26
_exp_pdu_t::wdh
wtap_dumper * wdh
Definition tap_export_pdu.h:25
_exp_pdu_t::pathname
char * pathname
Definition tap_export_pdu.h:23
_exp_pdu_t::pkt_encap
int pkt_encap
Definition tap_export_pdu.h:24
_exp_pdu_t::framenum
uint32_t framenum
Definition tap_export_pdu.h:28
_exp_pdu_t::idb_inf
wtapng_iface_descriptions_t * idb_inf
Definition tap_export_pdu.h:27
wtap_dumper
Wiretap dumper handle and associated state.
Definition wtap_module.h:163
exp_pdu_pre_open
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
exp_pdu_open
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
exp_pdu_close
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
exp_pdu_t
struct _exp_pdu_t exp_pdu_t
Holds the state and metadata required to export PDUs to a pcapng output file.
wtapng_iface_descriptions_t
struct wtapng_iface_descriptions_s wtapng_iface_descriptions_t