aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2011-12-27 20:35:41 +0000
committerGerald Combs <gerald@wireshark.org>2011-12-27 20:35:41 +0000
commit3c1b8a6ca13f6c0d0ce035859b12f0be9daca4f7 (patch)
tree97a0a11cc063f2d0fccb3a6a439870ee0b1fa999 /tshark.c
parent727046dc35c535c13c06ac82d1132618d0f24ad0 (diff)
Add a "-G ftypes" option, which dumps our supprted FT_… names and
descriptions. Captitalize and fix up the descriptions. Use its output to create the field type list in the wireshark-filter man page. svn path=/trunk/; revision=40306
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 d33aa3b711..d9d038d864 100644
--- a/tshark.c
+++ b/tshark.c
@@ -349,6 +349,7 @@ glossary_option_help(void)
fprintf(output, " -G fields3 dump glossary in format 3 and exit\n");
fprintf(output, " -G protocols dump protocols in registration database and exit\n");
fprintf(output, " -G values dump value, range, true/false strings and exit\n");
+ fprintf(output, " -G ftypes dump field type basic and descriptive names\n");
fprintf(output, " -G decodes dump \"layer type\"/\"decode as\" associations and exit\n");
fprintf(output, "\n");
fprintf(output, "Preference reports:\n");
@@ -993,6 +994,8 @@ main(int argc, char *argv[])
proto_registrar_dump_protocols();
else if (strcmp(argv[2], "values") == 0)
proto_registrar_dump_values();
+ else if (strcmp(argv[2], "ftypes") == 0)
+ proto_registrar_dump_ftypes();
else if (strcmp(argv[2], "decodes") == 0)
dissector_dump_decodes();
else if (strcmp(argv[2], "defaultprefs") == 0)