URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=9b03a0ee74bf4b5e88fa8a94da734deb43d2ca98
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-1.12
Repository: wireshark
Commits:
9b03a0e 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>
(cherry picked from commit 1b6cc6320ee8d07293b3741738ee601bc86ba068)
Reviewed-on: https://code.wireshark.org/review/1776
Actions performed:
from 2310c43 Allow wtap_read() and wtap_seek_read() to return records other than packets.
adds 9b03a0e 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%)