diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-06-05 07:24:17 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-06-05 07:24:17 +0000 |
commit | 7ed3d0e959c466d46c2e8328c9cfa553c09ccd56 (patch) | |
tree | 2a1c0404eaa9aa7c48da222653f4843be9508508 /dumpcap.c | |
parent | 9fe3d4b4f356084e8631a972e0217f02e344ff3e (diff) |
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.
svn path=/trunk/; revision=43102
Diffstat (limited to 'dumpcap.c')
0 files changed, 0 insertions, 0 deletions