Wireshark-commits: [Wireshark-commits] master 54b733c: Make the time stamp resolution per-packet.

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sun, 28 Sep 2014 18:38:21 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=54b733ce9a0d1cd4ab9b142479368a5e696360be
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

54b733c by Guy Harris (guy@xxxxxxxxxxxx):

    Make the time stamp resolution per-packet.
    
    Pcap-ng files don't have a per-file time stamp resolution, they have a
    per-interface time stamp resolution.  Add new time stamp resolution
    types of "unknown" and "per-packet", add the time stamp resolution to
    struct wtap_pkthdr, have the libwiretap core initialize it to the
    per-file time stamp resolution, and have pcap-ng do the same thing with
    the resolution that it does with the packet encapsulation.
    
    Get rid of the TS_PREC_AUTO_XXX values; just have TS_PREC_AUTO, which
    means "use the packet's resolution to determine how many significant
    digits to display".  Rename all the WTAP_FILE_TSPREC_XXX values to
    WTAP_TSPREC_XXX, as they're also used for per-packet values.
    
    Change-Id: If9fd8f799b19836a5104aaa0870a951498886c69
    Reviewed-on: https://code.wireshark.org/review/4349
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  efea8ce   CMake: Conditional build fixes and updates.
    adds  54b733c   Make the time stamp resolution per-packet.


Summary of changes:
 epan/column-utils.c           |  295 ++++++++++++++++++++++++++++-------------
 epan/column.c                 |   35 +----
 epan/frame_data.c             |    1 +
 epan/frame_data.h             |    1 +
 epan/timestamp.c              |    2 +-
 epan/timestamp.h              |   20 +--
 epan/wslua/wslua_file.c       |   12 +-
 file.c                        |   34 -----
 rawshark.c                    |   29 ----
 tshark.c                      |   28 ----
 ui/gtk/main_menubar.c         |   12 +-
 ui/qt/main.cpp                |    2 +-
 wiretap/5views.c              |    2 +-
 wiretap/aethra.c              |    2 +-
 wiretap/ascendtext.c          |    2 +-
 wiretap/ber.c                 |    2 +-
 wiretap/btsnoop.c             |    6 +-
 wiretap/camins.c              |    2 +-
 wiretap/catapult_dct2000.c    |    2 +-
 wiretap/commview.c            |    2 +-
 wiretap/cosine.c              |    2 +-
 wiretap/csids.c               |    2 +-
 wiretap/daintree-sna.c        |    2 +-
 wiretap/dbs-etherwatch.c      |    2 +-
 wiretap/dct3trace.c           |    2 +-
 wiretap/erf.c                 |    4 +-
 wiretap/eyesdn.c              |    2 +-
 wiretap/file_access.c         |    2 +-
 wiretap/hcidump.c             |    2 +-
 wiretap/i4btrace.c            |    2 +-
 wiretap/ipfix.c               |    2 +-
 wiretap/iptrace.c             |    4 +-
 wiretap/iseries.c             |    4 +-
 wiretap/k12.c                 |    2 +-
 wiretap/k12text.l             |    2 +-
 wiretap/lanalyzer.c           |    2 +-
 wiretap/libpcap.c             |   26 ++--
 wiretap/logcat.c              |    4 +-
 wiretap/logcat_text.c         |    2 +-
 wiretap/mime_file.c           |    2 +-
 wiretap/mp2t.c                |    2 +-
 wiretap/mpeg.c                |    2 +-
 wiretap/netmon.c              |    4 +-
 wiretap/netscaler.c           |    2 +-
 wiretap/netscreen.c           |    2 +-
 wiretap/nettl.c               |    2 +-
 wiretap/network_instruments.c |    2 +-
 wiretap/netxray.c             |   10 +-
 wiretap/ngsniffer.c           |    2 +-
 wiretap/packetlogger.c        |    2 +-
 wiretap/pcapng.c              |   76 ++++++++---
 wiretap/peekclassic.c         |    2 +-
 wiretap/peektagged.c          |    2 +-
 wiretap/pppdump.c             |    2 +-
 wiretap/radcom.c              |    2 +-
 wiretap/snoop.c               |    2 +-
 wiretap/stanag4607.c          |    2 +-
 wiretap/tnef.c                |    2 +-
 wiretap/toshiba.c             |    2 +-
 wiretap/visual.c              |    2 +-
 wiretap/vms.c                 |    2 +-
 wiretap/vwr.c                 |    2 +-
 wiretap/wtap-int.h            |   16 ++-
 wiretap/wtap.c                |    7 +-
 wiretap/wtap.h                |   20 +--
 65 files changed, 390 insertions(+), 344 deletions(-)