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;
92typedef bool (*block_reader)(
FILE_T fh, uint32_t block_read,
94 int *err,
char **err_info);
96 const uint8_t *pd,
int *err);
102void register_pcapng_block_type_handler(
unsigned block_type, block_reader reader,
103 block_writer writer);
108typedef bool (*option_parser)(
wtap_block_t block,
bool byte_swapped,
109 unsigned option_length,
110 const uint8_t *option_content,
111 int *err,
char **err_info);
112typedef uint32_t (*option_sizer)(
unsigned option_id,
wtap_optval_t *optval);
113typedef bool (*option_writer)(
wtap_dumper *wdh,
unsigned option_id,
121void register_pcapng_option_handler(
unsigned block_type,
unsigned option_code,
122 option_parser parser,
124 option_writer writer);
141 OPT_SECTION_BYTE_ORDER,
144} pcapng_opt_byte_order_e;
155 unsigned opt_cont_buf_len,
161 pcapng_opt_byte_order_e byte_order,
162 int *err,
char **err_info);
170 uint16_t option_code, uint16_t option_length,
171 const uint8_t *option_content);
176 pcapng_opt_byte_order_e byte_order,
177 uint16_t option_code, uint16_t option_length,
178 const uint8_t *option_content);
183 pcapng_opt_byte_order_e byte_order,
184 uint16_t option_code, uint16_t option_length,
185 const uint8_t *option_content);
190 pcapng_opt_byte_order_e byte_order,
191 uint16_t option_code, uint16_t option_length,
192 const uint8_t *option_content);
197 pcapng_opt_byte_order_e byte_order,
198 uint16_t option_code, uint16_t option_length,
199 const uint8_t *option_content);
202void pcapng_process_string_option(
wtapng_block_t *wblock, uint16_t option_code,
203 uint16_t option_length,
const uint8_t *option_content);
206void pcapng_process_bytes_option(
wtapng_block_t *wblock, uint16_t option_code,
207 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 file_wrappers.c:222
Definition pcapng_module.h:65
Definition wtap_opttypes.h:423