aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2015-09-21 15:00:35 -0400
committerAnders Broman <a.broman58@gmail.com>2015-09-23 04:38:01 +0000
commitcd7387d22b7cdc2b66e884d3dcb4c7234c104cef (patch)
treeace4eae1736fbc6cf70be2b11ebd274e7af66a68 /tshark.c
parente64c81609fd213e1c3e1c1f51e70fcaadaf18982 (diff)
Add a "fieldcount" report to tshark -G to let us easily see how many fields
are registered. Change-Id: I06f10d96916640cb9a782cae87898a5dd6c9c6e3 Reviewed-on: https://code.wireshark.org/review/10601 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
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 cf80430cf2..ff37f85557 100644
--- a/tshark.c
+++ b/tshark.c
@@ -446,6 +446,7 @@ glossary_option_help(void)
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 fieldcount dump count of header fields and exit\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");
@@ -1275,6 +1276,8 @@ DIAG_ON(cast-qual)
write_prefs(NULL);
else if (strcmp(argv[2], "dissector-tables") == 0)
dissector_dump_dissector_tables();
+ else if (strcmp(argv[2], "fieldcount") == 0)
+ proto_registrar_dump_fieldcount();
else if (strcmp(argv[2], "fields") == 0)
proto_registrar_dump_fields();
else if (strcmp(argv[2], "ftypes") == 0)