Wireshark-commits: [Wireshark-commits] master 1b6cc63: Add support for plugins to handle pcap-ng bl
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 24 May 2014 20:57:58 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=1b6cc6320ee8d07293b3741738ee601bc86ba068
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

1b6cc63 by Guy Harris (guy@xxxxxxxxxxxx):

    Add support for plugins to handle pcap-ng block types.
    
    We rename "file format" plugins to "libwiretap" plugins, as they can
    register as read handlers for a new file type, read/write handlers for a
    pcap-ng block type (or both).
    
    To register as a pcap-ng block type handler, in the
    register_wtap_module() routine of your plugin, call
    register_pcapng_block_type_handler() with the pcap-ng block type and
    pointers to your routines to read and write those blocks.  Those
    routines should read and write REC_TYPE_FILE_TYPE_SPECIFIC records, with
    the block type in the pseudo-header for the record in the struct
    wtap_pkthdr structure, with time stamps stored in that structure, and
    with a blob of data for the rest of the record.
    
    This is for bug 8590.
    
    Change-Id: I71847d834854a29ceb85894fd094c2ae91a04273
    Reviewed-on: https://code.wireshark.org/review/1775
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  6db77b0   Allow wtap_read() and wtap_seek_read() to return records other than packets.
    adds  1b6cc63   Add support for plugins to handle pcap-ng block types.


Summary of changes:
 wiretap/Makefile.common            |    1 +
 wiretap/pcapng.c                   |  118 ++++++++++++++++++++++++++++++++----
 wiretap/{atm.h => pcapng_module.h} |   28 +++++----
 wiretap/wtap.c                     |    2 +-
 wiretap/wtap.h                     |    6 ++
 5 files changed, 128 insertions(+), 27 deletions(-)
 copy wiretap/{atm.h => pcapng_module.h} (56%)