Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-commits: [Wireshark-commits] rev 42249: /trunk/wiretap/ /trunk/wiretap/: vwr.c

Date: Thu, 26 Apr 2012 03:06:35 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=42249

User: guy
Date: 2012/04/25 08:06 PM

Log:
 If you get an I/O error when looking for the FPGA version, return -1, so
 we know we had a real problem with the file.  If we just get a short
 read, return 0, as it means the file is probably not a VWR file.
 
 If we get an invalid message length when reading packets (rather than
 when looking for the FPGA version), return WTAP_ERR_BAD_FILE and an
 "Invalid message record length" indication, not a generic fallback
 "can't read the file" error.
 
 For file_tell() errors, fetch the error code with file_error().
 
 For file_seek() errors, use the error file_seek returned.

Directory: /trunk/wiretap/
  Changes    Path          Action
  +23 -16    vwr.c         Modified