From 579e7e19ce8e5f1a6e16b75f130ad4b001157ca5 Mon Sep 17 00:00:00 2001 From: Michal Labedzki Date: Sat, 18 Jan 2014 15:20:02 +0100 Subject: Wireshark: Add option to choose format type of capture file The best heuristic can fail, so add possibility to manually choose capture file format type, so not correctly recognize file format can be loaded in Wireshark. On the other side now it is possible to open capture file as file format to be dissected. Change-Id: I5a9f662b32ff7e042f753a92eaaa86c6e41f400a Reviewed-on: https://code.wireshark.org/review/16 Reviewed-by: Michal Labedzki Reviewed-by: Hadriel Kaplan Reviewed-by: Evan Huus Tested-by: Evan Huus --- captype.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'captype.c') diff --git a/captype.c b/captype.c index 885cff4d18..42341e7b4f 100644 --- a/captype.c +++ b/captype.c @@ -112,6 +112,7 @@ main(int argc, char *argv[]) * Get credential information for later use. */ init_process_policies(); + init_open_routines(); #ifdef HAVE_PLUGINS if ((init_progfile_dir_error = init_progfile_dir(argv[0], main))) { @@ -143,7 +144,7 @@ main(int argc, char *argv[]) overall_error_status = 0; for (i = 1; i < argc; i++) { - wth = wtap_open_offline(argv[i], &err, &err_info, FALSE); + wth = wtap_open_offline(argv[i], WTAP_TYPE_AUTO, &err, &err_info, FALSE); if(wth) { printf("%s: %s\n", argv[i], wtap_file_type_subtype_short_string(wtap_file_type_subtype(wth))); -- cgit v1.2.3