aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-10-14 16:39:17 -0700
committerGuy Harris <guy@alum.mit.edu>2014-10-14 23:39:55 +0000
commit44204614e8c177f84acf39b976f272d86ef03c6a (patch)
treee980c73dd812d1fd5f2f6ac62549fd030803b2da /capture_opts.h
parent4a6e31309cc82d05cb0be5451cfd4daa538bb958 (diff)
Don't assume pcap_read_block() returns the number of bytes read.
Recent changes must have made it not do so in some cases, and our current version of file_tell(), unlike ftell() around which the older file_tell() was a wrapper, is known to be cheap (ftell() would make a system call to get the position). Just use file_tell() before each read. (Further cleanup is called for.) Bug: 10568 Change-Id: Ib92057b2b87ec6eb16fd612bc91baeb668d1e1c7 Reviewed-on: https://code.wireshark.org/review/4691 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'capture_opts.h')
0 files changed, 0 insertions, 0 deletions