#include "sniff.h" extern FILE *rawtcp; void ifOpen(void) { struct pcap_file_header fh; rawtcp=popen(TCPDUMPER,"r"); fread(&fh,24,1,rawtcp); }