diff options
author | Gerald Combs <gerald@wireshark.org> | 2005-03-11 16:17:41 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2005-03-11 16:17:41 +0000 |
commit | 76ba06d76752d91fe4fc0a2db53b1ec5ee2b2092 (patch) | |
tree | 7fbe8c00ef3e40c6a7ab9bbac88b92cd39c7eae1 /clopts_common.c | |
parent | abe1feed27e19c0a09a588003ca5012b2466db19 (diff) |
Add a "-G decodes" option to ethereal and tethereal which shows the
filter/selector/protocol associations for each dissector. This will be
used to improve our automated tests, but someone with time on their
hands could probably use it to generate a protocol poster using Graphviz.
svn path=/trunk/; revision=13721
Diffstat (limited to 'clopts_common.c')
-rw-r--r-- | clopts_common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clopts_common.c b/clopts_common.c index 12227c4485..31aa75a8b8 100644 --- a/clopts_common.c +++ b/clopts_common.c @@ -30,6 +30,7 @@ #include <string.h> #include <epan/proto.h> +#include <epan/packet.h> #include "clopts_common.h" @@ -52,6 +53,8 @@ handle_dashG_option(int argc, char **argv, char *progname) proto_registrar_dump_protocols(); else if (strcmp(argv[2], "values") == 0) proto_registrar_dump_values(); + else if (strcmp(argv[2], "decodes") == 0) + dissector_dump_decodes(); else { fprintf(stderr, "%s: Invalid \"%s\" option for -G flag\n", progname, argv[2]); |