Wireshark-commits: [Wireshark-commits] rev 43102: /trunk/wiretap/ /trunk/wiretap/: file_wrappers.c

Date: Tue, 05 Jun 2012 07:24:17 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=43102

User: guy
Date: 2012/06/05 12:24 AM

Log:
 From Jakub Zawadzki: when seeking backwards, if the seek will put you at
 a position that's in our data buffer, just reposition within the
 buffer, don't do any seeks or I/O on the underlying file.  This lets us
 do some backwards seeking on a pipe, to allow the rewind-and-try scheme
 we use to try to identify capture file types to work, at least for some
 capture file formats (those that have magic numbers at the beginning or
 have heuristics that don't require much data), on pipes, allowing, for
 example, TShark to read those formats from a pipe.

Directory: /trunk/wiretap/
  Changes    Path               Action
  +13 -1     file_wrappers.c    Modified