forked from egorovandreyrm/pcapng_dsb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pcapng.h
25 lines (20 loc) · 1.02 KB
/
pcapng.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include <stdint.h>
#include <stddef.h>
// if out_buffer is NULL, the function does nothing but return the size that is required to save the data.
size_t pcapng_write_section_header_block(uint8_t *out_buffer, size_t out_buffer_len);
// if out_buffer is NULL, the function does nothing but return the size that is required to save the data.
size_t pcapng_write_network_interfaces_description_block(
uint32_t snapshot_max_len, uint8_t *out_buffer, size_t out_buffer_len);
// if out_buffer is NULL, the function does nothing but return the size that is required to save the data.
size_t pcapng_write_enhanced_packet_block(
const uint8_t *packet,
size_t packet_len,
uint8_t *out_buffer,
size_t out_buffer_len);
// if out_buffer is NULL, the function does nothing but return the size that is required to save the data.
size_t pcapng_write_decryption_secrets_block(
const char *tls_key_log,
size_t tls_key_log_len,
uint8_t *out_buffer,
size_t out_buffer_len);