#include "wtap.h"
-#ifdef HAVE_GETOPT_H
-#include <getopt.h>
-#else
+#ifndef HAVE_GETOPT
#include "wsutil/wsgetopt.h"
#endif
}
}
- if(phdr->caplen > wtap_snapshot_length(wth)) {
- fprintf(stderr, "Warning: packet %d too big for file type, skipping it...\n", count);
- count++;
- continue;
- }
-
if (!wtap_dump(pdh, phdr, wtap_pseudoheader(wth), buf, &err)) {
fprintf(stderr, "editcap: Error writing to %s: %s\n",
filename, wtap_strerror(err));