summaryrefslogtreecommitdiff
path: root/tshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-11-16 18:25:56 -0800
committerGuy Harris <guy@alum.mit.edu>2014-11-17 02:26:57 +0000
commit25f950eca945dde38bdbeb96c2c5dc4e9ea72029 (patch)
tree6f794521f0fb2f12859ef7ffa62ec8032d847d60 /tshark.c
parent57b72275b7f5c5ef99208fbcf7aa6647451f4c4d (diff)
downloadwireshark-25f950eca945dde38bdbeb96c2c5dc4e9ea72029.tar.gz
Add tshark -G dissector-tables to dump a list of dissector tables.
That list doesn't show the entries in the dissector tables, just information about the tables themselves. Clean up some tshark man page issues while we're at it. Change-Id: I70beee34110f5c0d58105944dd71105a8400f5ca Reviewed-on: https://code.wireshark.org/review/5360 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index 0cdbb901fb..10dbb5f6d9 100644
--- a/tshark.c
+++ b/tshark.c
@@ -417,6 +417,7 @@ glossary_option_help(void)
fprintf(output, "Glossary table reports:\n");
fprintf(output, " -G column-formats dump column format codes and exit\n");
fprintf(output, " -G decodes dump \"layer type\"/\"decode as\" associations and exit\n");
+ fprintf(output, " -G dissector-tables dump dissector table names, types, and properties\n");
fprintf(output, " -G fields dump fields glossary and exit\n");
fprintf(output, " -G ftypes dump field type basic and descriptive names\n");
fprintf(output, " -G heuristic-decodes dump heuristic dissector tables\n");
@@ -1227,6 +1228,8 @@ main(int argc, char *argv[])
dissector_dump_decodes();
else if (strcmp(argv[2], "defaultprefs") == 0)
write_prefs(NULL);
+ else if (strcmp(argv[2], "dissector-tables") == 0)
+ dissector_dump_dissector_tables();
else if (strcmp(argv[2], "fields") == 0)
proto_registrar_dump_fields();
else if (strcmp(argv[2], "ftypes") == 0)