From 9441909f03b313b6f97224cc60249d6370aa526f Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Mon, 1 Dec 2014 23:08:50 -0500 Subject: 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 --- dftest.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'dftest.c') diff --git a/dftest.c b/dftest.c index bb941ea994..5c28cc6eeb 100644 --- a/dftest.c +++ b/dftest.c @@ -35,7 +35,9 @@ #include #include +#ifdef HAVE_PLUGINS #include +#endif #include #include #include @@ -79,6 +81,15 @@ main(int argc, char **argv) timestamp_set_type(TS_RELATIVE); 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 "-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, -- cgit v1.2.1