*
* $Id$
*
- * Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@ethereal.com>
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* Shows display filter byte-code, for debugging dfilter routines.
#include <epan/timestamp.h>
#include <epan/plugins.h>
#include <epan/filesystem.h>
+#include <epan/privileges.h>
#include <epan/prefs.h>
#include "util.h"
#include "epan/dfilter/dfilter.h"
e_prefs *prefs;
dfilter_t *df;
+ /*
+ * Get credential information for later use.
+ */
+ get_credential_info();
+
timestamp_set_type(TS_RELATIVE);
/* register all dissectors; we must do this before checking for the
printf("\n\n");
- dfilter_dump(df);
+ if (df == NULL)
+ printf("Filter is empty\n");
+ else
+ dfilter_dump(df);
epan_cleanup();
exit(0);