Remove the snaplen check added in r37633: the change in r37634 makes it

unnecessary.

svn path=/trunk/; revision=38155
This commit is contained in:
Jeff Morriss 2011-07-21 21:19:18 +00:00
parent fc3bb80871
commit 8589a0eb1d
1 changed files with 0 additions and 6 deletions

View File

@ -1444,12 +1444,6 @@ main(int argc, char *argv[])
}
}
if((wtap_snapshot_length(wth) != 0) && (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));