diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-11-22 01:07:13 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-11-22 09:07:46 +0000 |
commit | 741db4c751b44bfa4ab2dc0cb4bd882d4732c55c (patch) | |
tree | 9594367ff78ecfe47a4429b5ee2d12600c86fa8b /tshark.c | |
parent | c68e77b8447b3323cf308d53d2cf7936714677a1 (diff) | |
download | wireshark-741db4c751b44bfa4ab2dc0cb4bd882d4732c55c.tar.gz wireshark-741db4c751b44bfa4ab2dc0cb4bd882d4732c55c.tar.bz2 wireshark-741db4c751b44bfa4ab2dc0cb4bd882d4732c55c.zip |
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 'tshark.c')
-rw-r--r-- | tshark.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -225,6 +225,8 @@ static void failure_message_cont(const char *msg_format, va_list ap); capture_file cfile; +static GHashTable *output_only_tables = NULL; + struct string_elem { const char *sstr; /* The short string */ const char *lstr; /* The long string */ @@ -3926,7 +3928,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)) |