Wireshark-commits: [Wireshark-commits] master 8a7e1f4: Don't assume all packets have time stamps.
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 23 May 2014 18:53:46 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=8a7e1f48799eb39628a2f5fd3a5bf40c263db8c8
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

8a7e1f4 by Guy Harris (guy@xxxxxxxxxxxx):

    Don't assume all packets have time stamps.
    
    Pcap-ng files might have Simple Packet Blocks, which don't have time
    stamps, and some other file formats might not have time stamps as well.
    
    Only check the time stamp if we have one, and don't use "the start time
    stamp is unset" as an indication that we've just read the first packet,
    use "the count of packets we've read is 1" as an indication that we've
    just read the first packet.
    
    Change-Id: I097c54867655efb5c343fb880a113b3583736bbd
    Reviewed-on: https://code.wireshark.org/review/1757
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  8ce793c   file_seek() sets the error variable; no need to set it ourselves.
    adds  8a7e1f4   Don't assume all packets have time stamps.


Summary of changes:
 editcap.c |  294 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 155 insertions(+), 139 deletions(-)