#include "main.h" using namespace std; //The processing must return 0 to continue packet capturing //Any negative value will end capturing, negative values below ERROR_THERSHOLD are //errors within the packet capturing system. ofstream fout; int DumpHeadersFileOpen() { fout.open("headers.txt"); return 0; } int DumpHeaders(DATA *d) { char head[10]; sprintf(head,"%X %X",d->data[0],d->data[1]); fout << head << '\n'; fout.flush(); return 0; } int DumpHeadersFileClose() { fout.close(); return 0; }