printf("Reading file: %s\n", fname);
net = 0;
mask = 0;
handle = pcap_open_offline(fname, errbuf);
if (handle == NULL) {
fprintf(stderr, "Couldn't open pcap file '%s': %s\n", ifname, errbuf);
return(2);
}
It should be FNAME and not IFNAME for the error message.
Fixed in #41:
http://pcapsipdump.svn.sourceforge.net/viewvc/pcapsipdump/trunk/pcapsipdump.cpp?r1=41&r2=40&pathrev=41
Thank you for reporting!