[PACKET_IO] finish pcap_file mode
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include <sys/queue.h>
|
||||
#include "marsio.h"
|
||||
|
||||
struct packet {
|
||||
/* queue id which the packet belongs to */
|
||||
int qid;
|
||||
void *raw_pkt;
|
||||
uint32_t pkt_len;
|
||||
struct packet *prev;
|
||||
struct packet *next;
|
||||
};
|
||||
|
||||
|
||||
@@ -23,6 +23,11 @@ typedef enum {
|
||||
ST_ERR_PIO_MARSIO_DEVICE,
|
||||
ST_ERR_PIO_PCAP_FILE_DEVICE,
|
||||
ST_ERR_PIO_PCAP_LIVE_DEVICE,
|
||||
ST_ERR_PCAP_OPEN_OFFLINE,
|
||||
ST_ERR_PCAP_FILE_DELETE_FAILED,
|
||||
ST_ERR_PCAP_DISPATCH,
|
||||
ST_ERR_PCAP_FILE_COLLECT_FAILED,
|
||||
ST_ERR_FOPEN,
|
||||
ST_ERR_BPF,
|
||||
ST_ERR_MAX
|
||||
} error_code_t;
|
||||
Reference in New Issue
Block a user