17#ifndef PROTOCORE_PCAP_H
18#define PROTOCORE_PCAP_H
20#include "endian/endian.h"
25#define PROTOCORE_PCAP_GLOBAL_HDR_LEN 24
26#define PROTOCORE_PCAP_REC_HDR_LEN 16
29#define PROTOCORE_DLT_IEEE802_11 105
30#define PROTOCORE_DLT_CAN_SOCKETCAN 227
31#define PROTOCORE_DLT_ETHERNET 1
32#define PROTOCORE_DLT_IEEE802_15_4_NOFCS 230
33#define PROTOCORE_DLT_IEEE802_15_4_TAP 283
34#define PROTOCORE_DLT_RAW 101
77 void (*
const global_header)(uint8_t *work);
78 void (*
const record_header)(uint8_t *work);
90static const PcapNs Pcap __attribute__((unused)) = {
void protocore_pcap_global_header(uint8_t *work)
void protocore_pcap_record_header(uint8_t *work)
PcapVars PcapV
The operands and the outcome.
Where a header is written, and the link type the file declares.
uint32_t linktype
the DLT_* link type of the frames that follow
size_t cap
how much room it has
uint8_t * out
where the header lands
void(*const global_header)(uint8_t *work)
What one captured frame's record header states.
uint32_t origlen
octets the frame had on the wire
uint32_t ts_sec
capture time, whole seconds
uint32_t ts_usec
and microseconds within that second
uint32_t caplen
octets actually stored