forked from osmocom/wireshark
dftest: load plugins so plugin display filters can also be tested.
Change-Id: Ideab88b525cf58b05502f11fb1cf0f58b2864c42 Reviewed-on: https://code.wireshark.org/review/5566 Reviewed-by: Bill Meier <wmeier@newsguy.com>
This commit is contained in:
parent
d643325d28
commit
9441909f03
11
dftest.c
11
dftest.c
|
@ -35,7 +35,9 @@
|
||||||
#include <epan/prefs.h>
|
#include <epan/prefs.h>
|
||||||
#include <epan/dfilter/dfilter.h>
|
#include <epan/dfilter/dfilter.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_PLUGINS
|
||||||
#include <wsutil/plugins.h>
|
#include <wsutil/plugins.h>
|
||||||
|
#endif
|
||||||
#include <wsutil/filesystem.h>
|
#include <wsutil/filesystem.h>
|
||||||
#include <wsutil/privileges.h>
|
#include <wsutil/privileges.h>
|
||||||
#include <wsutil/report_err.h>
|
#include <wsutil/report_err.h>
|
||||||
|
@ -79,6 +81,15 @@ main(int argc, char **argv)
|
||||||
timestamp_set_type(TS_RELATIVE);
|
timestamp_set_type(TS_RELATIVE);
|
||||||
timestamp_set_seconds_type(TS_SECONDS_DEFAULT);
|
timestamp_set_seconds_type(TS_SECONDS_DEFAULT);
|
||||||
|
|
||||||
|
#ifdef HAVE_PLUGINS
|
||||||
|
/* Register all the plugin types we have. */
|
||||||
|
epan_register_plugin_types(); /* Types known to libwireshark */
|
||||||
|
|
||||||
|
/* Scan for plugins. This does *not* call their registration routines;
|
||||||
|
that's done later. */
|
||||||
|
scan_plugins();
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Register all dissectors; we must do this before checking for the
|
/* Register all dissectors; we must do this before checking for the
|
||||||
"-g" flag, as the "-g" flag dumps a list of fields registered
|
"-g" flag, as the "-g" flag dumps a list of fields registered
|
||||||
by the dissectors, and we must do it before we read the preferences,
|
by the dissectors, and we must do it before we read the preferences,
|
||||||
|
|
Loading…
Reference in New Issue