aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2017-12-10 17:29:40 +0000
committerJoão Valverde <j@v6e.pt>2017-12-11 02:52:28 +0000
commit5fc43fe63a07062587bc3d76256f4240221e8bc7 (patch)
tree8508ce04e5aec4e0e23ad958f9ec6a5102f93fc0 /tshark.c
parent224e24884a8b37732105bd40a0ee85d5feaaeab1 (diff)
Rewrite make-tap-reg.py in C
Change-Id: Ief5b1fffecc9712c01ff10292c403b7c84a5908a Reviewed-on: https://code.wireshark.org/review/24756 Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tshark.c b/tshark.c
index a8fefc2682..c8e3d97c8d 100644
--- a/tshark.c
+++ b/tshark.c
@@ -72,6 +72,7 @@
#ifdef HAVE_LIBPCAP
#include "ui/capture_ui_utils.h"
#endif
+#include "ui/taps.h"
#include "ui/util.h"
#include "ui/ws_ui_util.h"
#include "ui/decode_as_utils.h"
@@ -933,7 +934,10 @@ main(int argc, char *argv[])
#ifdef HAVE_EXTCAP
extcap_register_preferences();
#endif
- register_all_tap_listeners();
+ /* Register all tap listeners. */
+ for (tap_reg_t *t = tap_reg_listener; t->cb_func != NULL; t++) {
+ t->cb_func();
+ }
conversation_table_set_gui_info(init_iousers);
hostlist_table_set_gui_info(init_hostlists);
srt_table_iterate_tables(register_srt_tables, NULL);