#ifndef PROTOCOL_H #define PROTOCOL_H typedef unsigned int uint32; typedef unsigned short uint16; typedef unsigned char uint8; typedef int int32; struct pcap_hdr { uint32 magic; uint16 majorVersion; uint16 minorVersion; int32 zoneCorrection; uint32 sigFlags; uint32 snapLen; uint32 network; }; typedef struct pcap_hdr pcap_hdr_t; struct pcap_rec { uint32 ts_sec; uint32 ts_usec; uint32 file_len; uint32 orig_len; }; typedef struct pcap_rec pcap_rec_t; #endif