aboutsummaryrefslogtreecommitdiffstats
path: root/tfshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-11-22 01:07:13 -0800
committerGuy Harris <guy@alum.mit.edu>2014-11-22 09:07:46 +0000
commit741db4c751b44bfa4ab2dc0cb4bd882d4732c55c (patch)
tree9594367ff78ecfe47a4429b5ee2d12600c86fa8b /tfshark.c
parentc68e77b8447b3323cf308d53d2cf7936714677a1 (diff)
Get rid of another global in the print code.
Pass the "output only these protocols" hash table as an argument, instead. Change-Id: Id8540943037e7b9bbfe377120c3f60dbe54fe0f1 Reviewed-on: https://code.wireshark.org/review/5440 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tfshark.c')
-rw-r--r--tfshark.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tfshark.c b/tfshark.c
index 2efaad0011..2d4315d9a2 100644
--- a/tfshark.c
+++ b/tfshark.c
@@ -172,6 +172,8 @@ static void failure_message_cont(const char *msg_format, va_list ap);
capture_file cfile;
+static GHashTable *output_only_tables = NULL;
+
#if 0
struct string_elem {
const char *sstr; /* The short string */
@@ -2476,7 +2478,7 @@ print_packet(capture_file *cf, epan_dissect_t *edt)
print_args.print_hex = print_hex;
print_args.print_dissections = print_details ? print_dissections_expanded : print_dissections_none;
- if (!proto_tree_print(&print_args, edt, print_stream))
+ if (!proto_tree_print(&print_args, edt, output_only_tables, print_stream))
return FALSE;
if (!print_hex) {
if (!print_line(print_stream, 0, separator))