Wireshark  4.3.0
The Wireshark network protocol analyzer
tap_export_pdu.h
Go to the documentation of this file.
1 
12 #ifndef __TAP_EXPORT_PDU_H__
13 #define __TAP_EXPORT_PDU_H__
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif /* __cplusplus */
18 
19 typedef struct _exp_pdu_t {
20  char* pathname;
21  int pkt_encap;
22  wtap_dumper* wdh;
23  GArray* shb_hdrs;
25  uint32_t framenum;
26 } exp_pdu_t;
27 
38 char *exp_pdu_pre_open(const char *tap_name, const char *filter,
39  exp_pdu_t *exp_pdu_tap_data);
40 
50 bool exp_pdu_open(exp_pdu_t *data, char *pathname, int file_type_subtype,
51  int fd, const char *comment, int *err, char **err_info);
52 
53 /* Stops the PDUs export. */
54 bool exp_pdu_close(exp_pdu_t *exp_pdu_tap_data, int *err, char **err_info);
55 
56 #ifdef __cplusplus
57 }
58 #endif /* __cplusplus */
59 
60 #endif /* __TAP_EXPORT_PDU_H__ */
Definition: tap_export_pdu.h:19
Definition: wtap-int.h:97
Definition: wtap_opttypes.h:218
bool exp_pdu_open(exp_pdu_t *data, char *pathname, int file_type_subtype, int fd, const char *comment, int *err, char **err_info)
Definition: tap_export_pdu.c:85
char * exp_pdu_pre_open(const char *tap_name, const char *filter, exp_pdu_t *exp_pdu_tap_data)
Definition: tap_export_pdu.c:198