1
0
Fork 0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-05-26 12:06:10 +02:00

Some refactoring work inside pcap code

This commit is contained in:
Pavel Odintsov 2015-08-17 14:32:39 +02:00
parent 1ef940423d
commit fd61b7aad3

View File

@ -36,6 +36,19 @@ struct fastnetmon_pcap_file_header {
bpf_u_int32 linktype; /* data link type (LINKTYPE_*) */
};
/*
TODO: move to this code, get rid any bpf* custom types
struct fastnetmon_pcap_file_header {
uint32_t magic;
uint16_t version_major;
uint16_t version_minor;
int32_t thiszone;
uint32_t sigfigs;
uint32_t snaplen;
uint32_t linktype;
};
*/
// We can't use pcap_pkthdr from upstream because it uses 16 bytes timeval instead of 8 byte and
// broke everything