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
85 uint64_t bblog_offset_tv_usec;
91typedef bool (*block_reader)(
FILE_T fh, uint32_t block_read,
93 int *err,
char **err_info);
95 const uint8_t *pd,
int *err);
101void register_pcapng_block_type_handler(
unsigned block_type, block_reader reader,
102 block_writer writer);
107typedef bool (*option_parser)(
wtap_block_t block,
bool byte_swapped,
108 unsigned option_length,
109 const uint8_t *option_content,
110 int *err,
char **err_info);
111typedef uint32_t (*option_sizer)(
unsigned option_id,
wtap_optval_t *optval);
112typedef bool (*option_writer)(
wtap_dumper *wdh,
unsigned option_id,
120void register_pcapng_option_handler(
unsigned block_type,
unsigned option_code,
121 option_parser parser,
123 option_writer writer);
140 OPT_SECTION_BYTE_ORDER,
143} pcapng_opt_byte_order_e;
154 unsigned opt_cont_buf_len,
160 pcapng_opt_byte_order_e byte_order,
161 int *err,
char **err_info);
169 uint16_t option_code, uint16_t option_length,
170 const uint8_t *option_content);
175 pcapng_opt_byte_order_e byte_order,
176 uint16_t option_code, uint16_t option_length,
177 const uint8_t *option_content);
182 pcapng_opt_byte_order_e byte_order,
183 uint16_t option_code, uint16_t option_length,
184 const uint8_t *option_content);
189 pcapng_opt_byte_order_e byte_order,
190 uint16_t option_code, uint16_t option_length,
191 const uint8_t *option_content);
196 pcapng_opt_byte_order_e byte_order,
197 uint16_t option_code, uint16_t option_length,
198 const uint8_t *option_content);
201void pcapng_process_string_option(
wtapng_block_t *wblock, uint16_t option_code,
202 uint16_t option_length,
const uint8_t *option_content);
205void pcapng_process_bytes_option(
wtapng_block_t *wblock, uint16_t option_code,
206 uint16_t option_length,
const uint8_t *option_content);
Definition pcapng_module.h:77
uint16_t version_major
Definition pcapng_module.h:79
int64_t shb_off
Definition pcapng_module.h:82
uint32_t bblog_version
Definition pcapng_module.h:83
uint16_t version_minor
Definition pcapng_module.h:80
uint64_t bblog_offset_tv_sec
Definition pcapng_module.h:84
GArray * interfaces
Definition pcapng_module.h:81
bool byte_swapped
Definition pcapng_module.h:78
Definition wtap_opttypes.c:85
Definition file_wrappers.c:215
Definition pcapng_module.h:65
Definition wtap_opttypes.h:423