Wireshark-commits: [Wireshark-commits] master c0c480d: Allow wtap_read() and wtap_seek_read() to re

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 23 May 2014 03:02:33 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=c0c480d08c175eed4524ea9e73ec86298f468cf4
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

c0c480d by Guy Harris (guy@xxxxxxxxxxxx):

    Allow wtap_read() and wtap_seek_read() to return non-packet records.
    
    This is the first step towards implementing the mechanisms requestd in
    bug 8590; currently, we don't return any records other than packet
    records from libwiretap, and just ignore non-packet records in the rest
    of Wireshark, but this at least gets the ball rolling.
    
    Change-Id: I34a45b54dd361f69fdad1a758d8ca4f42d67d574
    Reviewed-on: https://code.wireshark.org/review/1736
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  6287efb   tvb parameter should not be NULL as the lengths are nonzero.
    adds  c0c480d   Allow wtap_read() and wtap_seek_read() to return non-packet records.


Summary of changes:
 capinfos.c                    |   87 ++++---
 capture.c                     |    6 +-
 capture_info.c                |   26 +-
 capture_info.h                |    4 +-
 capture_sync.c                |    2 +-
 capture_sync.h                |    4 +-
 editcap.c                     |  576 +++++++++++++++++++++--------------------
 file.c                        |   87 ++++---
 file.h                        |   31 +--
 frame_tvbuff.c                |    2 +-
 proto_hier_stats.c            |    2 +-
 reordercap.c                  |   29 ++-
 tfshark.c                     |    2 +-
 tshark.c                      |  243 +++++++++--------
 ui/gtk/capture_file_dlg.c     |   35 +--
 ui/gtk/iax2_analysis.c        |    2 +-
 ui/gtk/main.c                 |    4 +-
 ui/gtk/packet_list_store.c    |    2 +-
 ui/gtk/packet_win.c           |    2 +-
 ui/gtk/rlc_lte_graph.c        |    2 +-
 ui/gtk/rtp_analysis.c         |    2 +-
 ui/gtk/sctp_assoc_analyse.c   |    2 +-
 ui/qt/capture_file_dialog.cpp |   35 +--
 ui/qt/packet_list.cpp         |    2 +-
 ui/qt/packet_list_model.cpp   |    2 +-
 ui/tap-tcp-stream.c           |    2 +-
 ui/win32/file_dlg_win32.c     |   41 +--
 wiretap/5views.c              |   28 +-
 wiretap/aethra.c              |   22 +-
 wiretap/ascendtext.c          |   20 +-
 wiretap/ber.c                 |   24 +-
 wiretap/btsnoop.c             |   22 +-
 wiretap/camins.c              |   16 +-
 wiretap/catapult_dct2000.c    |   32 +--
 wiretap/commview.c            |   24 +-
 wiretap/cosine.c              |   26 +-
 wiretap/csids.c               |   20 +-
 wiretap/daintree-sna.c        |   32 +--
 wiretap/dbs-etherwatch.c      |   48 ++--
 wiretap/dct3trace.c           |   26 +-
 wiretap/erf.c                 |   34 +--
 wiretap/eyesdn.c              |   28 +-
 wiretap/hcidump.c             |   16 +-
 wiretap/i4btrace.c            |   24 +-
 wiretap/ipfix.c               |   18 +-
 wiretap/iptrace.c             |   28 +-
 wiretap/iseries.c             |   28 +-
 wiretap/k12.c                 |   20 +-
 wiretap/k12text.l             |   16 +-
 wiretap/lanalyzer.c           |   20 +-
 wiretap/libpcap.c             |   18 +-
 wiretap/logcat.c              |   16 +-
 wiretap/mime_file.c           |   20 +-
 wiretap/mp2t.c                |   16 +-
 wiretap/mpeg.c                |   16 +-
 wiretap/netmon.c              |   32 +--
 wiretap/netscaler.c           |   94 +++----
 wiretap/netscreen.c           |   26 +-
 wiretap/nettl.c               |   18 +-
 wiretap/network_instruments.c |   30 +--
 wiretap/netxray.c             |   32 +--
 wiretap/ngsniffer.c           |   26 +-
 wiretap/packetlogger.c        |   26 +-
 wiretap/pcapng.c              |   16 +-
 wiretap/peekclassic.c         |   30 +--
 wiretap/peektagged.c          |   20 +-
 wiretap/pppdump.c             |   22 +-
 wiretap/radcom.c              |   22 +-
 wiretap/snoop.c               |   20 +-
 wiretap/stanag4607.c          |   25 +-
 wiretap/tnef.c                |   26 +-
 wiretap/toshiba.c             |   22 +-
 wiretap/visual.c              |   22 +-
 wiretap/vms.c                 |   18 +-
 wiretap/vwr.c                 |   25 +-
 wiretap/wtap-int.h            |    8 +-
 wiretap/wtap.c                |   22 +-
 wiretap/wtap.h                |   21 +-
 78 files changed, 1308 insertions(+), 1187 deletions(-)