From cd7387d22b7cdc2b66e884d3dcb4c7234c104cef Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Mon, 21 Sep 2015 15:00:35 -0400 Subject: 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 Petri-Dish: Alexis La Goutte Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- tshark.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tshark.c') 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) -- cgit v1.2.3