Wireshark-commits: [Wireshark-commits] master 60cc2e0: Clean up timestamp handling.

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 28 Feb 2015 02:23:54 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=60cc2e0e93909c1b19557deecac76e3f2462ab20
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

60cc2e0 by Guy Harris (guy@xxxxxxxxxxxx):

    Clean up timestamp handling.
    
    Use nstime_t rather than struct timeval when we want
    seconds-and-fractions, so that, when writing the file, we can handle
    nanosecond-resolution time stamps.  Calculate the relative time stamp as
    a 64-bit integer rather than using floating-point.
    
    Use time_t rather than struct timeval if we only want seconds.
    
    Have the routines that write out 16-bit and 32-bit numbers convert them
    to little-endian themselves, rather than having to be passed a
    little-endian number.
    
    Have a routine that writes out 48-bit values in little-endian order, and
    use that to write out packet time stamps.
    
    Change-Id: Ia6e047079e48915647502178e0a1c61177010c62
    Reviewed-on: https://code.wireshark.org/review/7438
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  dbbb1d3   We don't need to check for strings.h.
    adds  60cc2e0   Clean up timestamp handling.


Summary of changes:
 wiretap/lanalyzer.c |  134 +++++++++++++++++++++++----------------------------
 1 file changed, 59 insertions(+), 75 deletions(-)