9#ifndef __PCAP_MODULE_H__
10#define __PCAP_MODULE_H__
12#include "ws_symbol_export.h"
24#define BLOCK_TYPE_SHB 0x0A0D0D0A
25#define BLOCK_TYPE_IDB 0x00000001
26#define BLOCK_TYPE_PB 0x00000002
27#define BLOCK_TYPE_SPB 0x00000003
28#define BLOCK_TYPE_NRB 0x00000004
29#define BLOCK_TYPE_ISB 0x00000005
30#define BLOCK_TYPE_EPB 0x00000006
31#define BLOCK_TYPE_IRIG_TS 0x00000007
32#define BLOCK_TYPE_ARINC_429 0x00000008
33#define BLOCK_TYPE_SYSTEMD_JOURNAL_EXPORT 0x00000009
34#define BLOCK_TYPE_DSB 0x0000000A
35#define BLOCK_TYPE_HP_MIB 0x00000101
36#define BLOCK_TYPE_HP_CEB 0x00000102
37#define BLOCK_TYPE_SYSDIG_MI 0x00000201
38#define BLOCK_TYPE_SYSDIG_PL_V1 0x00000202
39#define BLOCK_TYPE_SYSDIG_FDL_V1 0x00000203
40#define BLOCK_TYPE_SYSDIG_EVENT 0x00000204
41#define BLOCK_TYPE_SYSDIG_IL_V1 0x00000205
42#define BLOCK_TYPE_SYSDIG_UL_V1 0x00000206
43#define BLOCK_TYPE_SYSDIG_PL_V2 0x00000207
44#define BLOCK_TYPE_SYSDIG_EVF 0x00000208
45#define BLOCK_TYPE_SYSDIG_PL_V3 0x00000209
46#define BLOCK_TYPE_SYSDIG_PL_V4 0x00000210
47#define BLOCK_TYPE_SYSDIG_PL_V5 0x00000211
48#define BLOCK_TYPE_SYSDIG_PL_V6 0x00000212
49#define BLOCK_TYPE_SYSDIG_PL_V7 0x00000213
50#define BLOCK_TYPE_SYSDIG_PL_V8 0x00000214
51#define BLOCK_TYPE_SYSDIG_PL_V9 0x00000215
52#define BLOCK_TYPE_SYSDIG_EVENT_V2 0x00000216
53#define BLOCK_TYPE_SYSDIG_EVF_V2 0x00000217
54#define BLOCK_TYPE_SYSDIG_FDL_V2 0x00000218
55#define BLOCK_TYPE_SYSDIG_IL_V2 0x00000219
56#define BLOCK_TYPE_SYSDIG_UL_V2 0x00000220
57#define BLOCK_TYPE_SYSDIG_EVENT_V2_LARGE 0x00000221
58#define BLOCK_TYPE_SYSDIG_EVF_V2_LARGE 0x00000222
59#define BLOCK_TYPE_CB_COPY 0x00000BAD
60#define BLOCK_TYPE_CB_NO_COPY 0x40000BAD
94 uint64_t bblog_offset_tv_usec;
100typedef bool (*block_reader)(
FILE_T fh, uint32_t block_read,
102 int *err,
char **err_info);
104 int *err,
char **err_info);
110void register_pcapng_block_type_handler(
unsigned block_type, block_reader reader,
111 block_writer writer);
116typedef bool (*option_parser)(
wtap_block_t block,
bool byte_swapped,
117 unsigned option_length,
118 const uint8_t *option_content,
119 int *err,
char **err_info);
120typedef uint32_t (*option_sizer)(
unsigned option_id,
wtap_optval_t *optval);
121typedef bool (*option_writer)(
wtap_dumper *wdh,
unsigned option_id,
129void register_pcapng_option_handler(
unsigned block_type,
unsigned option_code,
130 option_parser parser,
132 option_writer writer);
149 OPT_SECTION_BYTE_ORDER,
152} pcapng_opt_byte_order_e;
163 unsigned opt_cont_buf_len,
169 pcapng_opt_byte_order_e byte_order,
170 int *err,
char **err_info);
178 uint16_t option_code, uint16_t option_length,
179 const uint8_t *option_content);
184 pcapng_opt_byte_order_e byte_order,
185 uint16_t option_code, uint16_t option_length,
186 const uint8_t *option_content);
191 pcapng_opt_byte_order_e byte_order,
192 uint16_t option_code, uint16_t option_length,
193 const uint8_t *option_content);
198 pcapng_opt_byte_order_e byte_order,
199 uint16_t option_code, uint16_t option_length,
200 const uint8_t *option_content);
205 pcapng_opt_byte_order_e byte_order,
206 uint16_t option_code, uint16_t option_length,
207 const uint8_t *option_content);
210void pcapng_process_string_option(
wtapng_block_t *wblock, uint16_t option_code,
211 uint16_t option_length,
const uint8_t *option_content);
214void pcapng_process_bytes_option(
wtapng_block_t *wblock, uint16_t option_code,
215 uint16_t option_length,
const uint8_t *option_content);
222 compute_option_size_func compute_option_size;
226uint32_t pcapng_compute_options_size(
wtap_block_t block, compute_option_size_func compute_option_size);
Definition pcapng_module.h:220
Definition pcapng_module.h:86
uint16_t version_major
Definition pcapng_module.h:88
int64_t shb_off
Definition pcapng_module.h:91
uint32_t bblog_version
Definition pcapng_module.h:92
uint16_t version_minor
Definition pcapng_module.h:89
uint64_t bblog_offset_tv_sec
Definition pcapng_module.h:93
GArray * interfaces
Definition pcapng_module.h:90
bool byte_swapped
Definition pcapng_module.h:87
Definition wtap_opttypes.c:85
Definition file_wrappers.c:215
Definition pcapng_module.h:74
Definition wtap_opttypes.h:433