hexagram/include/hexagram/pcapng/block.h
2019-01-24 00:20:55 -06:00

23 lines
589 B
C

#ifndef _HEXAGRAM_PCAPNG_BLOCK_H
#define _HEXAGRAM_PCAPNG_BLOCK_H
/*
* pcapng block types and structure
*/
typedef enum {
HEXAGRAM_PCAPNG_BLOCK_SECTION = 0x0a0d0d0a,
HEXAGRAM_PCAPNG_BLOCK_IF = 0x1,
HEXAGRAM_PCAPNG_BLOCK_IF_STATS = 0x5,
HEXAGRAM_PCAPNG_BLOCK_PACKET = 0x6
} hexagram_pcapng_block_type;
typedef struct _hexagram_pcapng_block_header {
uint32_t type,
length;
} hexagram_pcapng_block_header;
typedef struct _hexagram_pcapng_block_footer {
uint32_t length;
} hexagram_pcapng_block_footer;
#endif /* _HEXAGRAM_PCAPNG_BLOCK_H */