diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-05-24 13:57:11 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-05-24 20:57:57 +0000 |
commit | 1b6cc6320ee8d07293b3741738ee601bc86ba068 (patch) | |
tree | f35044e157310e4207ddbd0fca6c090b8770268a /wiretap/wtap.c | |
parent | 6db77b000fe58173eeed23b91b32c92c681feda2 (diff) | |
download | wireshark-1b6cc6320ee8d07293b3741738ee601bc86ba068.tar.gz |
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@alum.mit.edu>
Diffstat (limited to 'wiretap/wtap.c')
-rw-r--r-- | wiretap/wtap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/wtap.c b/wiretap/wtap.c index a0117ab784..f193a04ea8 100644 --- a/wiretap/wtap.c +++ b/wiretap/wtap.c @@ -89,7 +89,7 @@ check_for_wtap_plugin(GModule *handle) void wtap_register_plugin_types(void) { - add_plugin_type("file format", check_for_wtap_plugin); + add_plugin_type("libwiretap", check_for_wtap_plugin); } static void |