X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=editcap.c;h=e74946ec822a5627091d3aca1d34cf0d349a7f40;hb=085e8e4ea1c3b838ff5019fb4e500d87831a5bd5;hp=8481e7367361eeb758ee8d1886ef534ad22c3d5a;hpb=ef553754a401717d380d1ea11177b3efe5d9f7e6;p=obnox%2Fwireshark%2Fwip.git diff --git a/editcap.c b/editcap.c index 8481e73673..e74946ec82 100644 --- a/editcap.c +++ b/editcap.c @@ -42,9 +42,7 @@ #include "wtap.h" -#ifdef HAVE_GETOPT_H -#include -#else +#ifndef HAVE_GETOPT #include "wsutil/wsgetopt.h" #endif @@ -1444,12 +1442,6 @@ main(int argc, char *argv[]) } } - 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));