char *erbuffer=ebuf;
char *sfile=NULL;
char *dfile=NULL;
+ pcap_t* tmp;
/*parse commandline options*/
if(argc > 9){
}
/*attempt to open input file*/
- in=pcap_open_offline(dfile, erbuffer);
+ in=pcap_open_offline(sfile, erbuffer);
if(in==NULL){
dbgprintf(0,"Error opening input file\n");
exit(1);
}
/*attempt to open output file*/
- out=pcap_dump_open(in,dfile);
+ tmp=pcap_open_dead(DLT_RAW,65535);
+ out=pcap_dump_open(tmp,dfile);
if(out==NULL){
dbgprintf(0,"Error opening output file\n");
exit(1);
/*close files*/
pcap_close(in);
+ pcap_close(tmp);
pcap_dump_close(out);
return 0;
}