9 #ifndef __PCAP_MODULE_H__
10 #define __PCAP_MODULE_H__
18 #define BLOCK_TYPE_SHB 0x0A0D0D0A
19 #define BLOCK_TYPE_IDB 0x00000001
20 #define BLOCK_TYPE_PB 0x00000002
21 #define BLOCK_TYPE_SPB 0x00000003
22 #define BLOCK_TYPE_NRB 0x00000004
23 #define BLOCK_TYPE_ISB 0x00000005
24 #define BLOCK_TYPE_EPB 0x00000006
25 #define BLOCK_TYPE_IRIG_TS 0x00000007
26 #define BLOCK_TYPE_ARINC_429 0x00000008
27 #define BLOCK_TYPE_SYSTEMD_JOURNAL_EXPORT 0x00000009
28 #define BLOCK_TYPE_DSB 0x0000000A
29 #define BLOCK_TYPE_SYSDIG_MI 0x00000201
30 #define BLOCK_TYPE_SYSDIG_PL_V1 0x00000202
31 #define BLOCK_TYPE_SYSDIG_FDL_V1 0x00000203
32 #define BLOCK_TYPE_SYSDIG_EVENT 0x00000204
33 #define BLOCK_TYPE_SYSDIG_IL_V1 0x00000205
34 #define BLOCK_TYPE_SYSDIG_UL_V1 0x00000206
35 #define BLOCK_TYPE_SYSDIG_PL_V2 0x00000207
36 #define BLOCK_TYPE_SYSDIG_EVF 0x00000208
37 #define BLOCK_TYPE_SYSDIG_PL_V3 0x00000209
38 #define BLOCK_TYPE_SYSDIG_PL_V4 0x00000210
39 #define BLOCK_TYPE_SYSDIG_PL_V5 0x00000211
40 #define BLOCK_TYPE_SYSDIG_PL_V6 0x00000212
41 #define BLOCK_TYPE_SYSDIG_PL_V7 0x00000213
42 #define BLOCK_TYPE_SYSDIG_PL_V8 0x00000214
43 #define BLOCK_TYPE_SYSDIG_PL_V9 0x00000215
44 #define BLOCK_TYPE_SYSDIG_EVENT_V2 0x00000216
45 #define BLOCK_TYPE_SYSDIG_EVF_V2 0x00000217
46 #define BLOCK_TYPE_SYSDIG_FDL_V2 0x00000218
47 #define BLOCK_TYPE_SYSDIG_IL_V2 0x00000219
48 #define BLOCK_TYPE_SYSDIG_UL_V2 0x00000220
49 #define BLOCK_TYPE_SYSDIG_EVENT_V2_LARGE 0x00000221
50 #define BLOCK_TYPE_SYSDIG_EVF_V2_LARGE 0x00000222
51 #define BLOCK_TYPE_CB_COPY 0x00000BAD
52 #define BLOCK_TYPE_CB_NO_COPY 0x40000BAD
86 uint64_t bblog_offset_tv_usec;
92 typedef bool (*block_reader)(
FILE_T fh, uint32_t block_read,
95 int *err,
char **err_info);
97 const uint8_t *pd,
int *err);
103 void register_pcapng_block_type_handler(
unsigned block_type, block_reader reader,
104 block_writer writer);
111 unsigned option_length,
112 const uint8_t *option_content,
113 int *err,
char **err_info);
114 typedef uint32_t (*option_sizer)(
unsigned option_id,
wtap_optval_t *optval);
115 typedef bool (*option_writer)(
wtap_dumper *wdh,
unsigned option_id,
123 void register_pcapng_option_handler(
unsigned block_type,
unsigned option_code,
124 option_parser parser,
126 option_writer writer);
143 OPT_SECTION_BYTE_ORDER,
146 } pcapng_opt_byte_order_e;
157 unsigned opt_cont_buf_len,
163 pcapng_opt_byte_order_e byte_order,
164 int *err,
char **err_info);
172 uint16_t option_code, uint16_t option_length,
173 const uint8_t *option_content);
178 pcapng_opt_byte_order_e byte_order,
179 uint16_t option_code, uint16_t option_length,
180 const uint8_t *option_content);
185 pcapng_opt_byte_order_e byte_order,
186 uint16_t option_code, uint16_t option_length,
187 const uint8_t *option_content);
192 pcapng_opt_byte_order_e byte_order,
193 uint16_t option_code, uint16_t option_length,
194 const uint8_t *option_content);
199 pcapng_opt_byte_order_e byte_order,
200 uint16_t option_code, uint16_t option_length,
201 const uint8_t *option_content);
204 void pcapng_process_string_option(
wtapng_block_t *wblock, uint16_t option_code,
205 uint16_t option_length,
const uint8_t *option_content);
208 void pcapng_process_bytes_option(
wtapng_block_t *wblock, uint16_t option_code,
209 uint16_t option_length,
const uint8_t *option_content);
Definition: pcapng_module.h:78
uint16_t version_major
Definition: pcapng_module.h:80
int64_t shb_off
Definition: pcapng_module.h:83
uint32_t bblog_version
Definition: pcapng_module.h:84
uint16_t version_minor
Definition: pcapng_module.h:81
uint64_t bblog_offset_tv_sec
Definition: pcapng_module.h:85
GArray * interfaces
Definition: pcapng_module.h:82
bool byte_swapped
Definition: pcapng_module.h:79
Definition: wtap_opttypes.c:85
Definition: wtap-int.h:97
Definition: file_wrappers.c:163
Definition: pcapng_module.h:65
Definition: wtap_opttypes.h:423