diff options
author | Michal Labedzki <michal.labedzki@tieto.com> | 2014-01-18 15:20:02 +0100 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-02-25 17:43:13 +0000 |
commit | 579e7e19ce8e5f1a6e16b75f130ad4b001157ca5 (patch) | |
tree | 423547b0256e93647f98710cf14e15e112f7f73f /capture_info.c | |
parent | b6aae8d5c470aa681b70f33cad064dbb7045b3b7 (diff) | |
download | wireshark-579e7e19ce8e5f1a6e16b75f130ad4b001157ca5.tar.gz wireshark-579e7e19ce8e5f1a6e16b75f130ad4b001157ca5.tar.bz2 wireshark-579e7e19ce8e5f1a6e16b75f130ad4b001157ca5.zip |
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 <michal.labedzki@tieto.com>
Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com>
Reviewed-by: Evan Huus <eapache@gmail.com>
Tested-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'capture_info.c')
-rw-r--r-- | capture_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/capture_info.c b/capture_info.c index ad1028ad3b..2f339b06c2 100644 --- a/capture_info.c +++ b/capture_info.c @@ -221,7 +221,7 @@ gboolean capture_info_new_file(const char *new_filename) wtap_close(info_data.wtap); } - info_data.wtap = wtap_open_offline(new_filename, &err, &err_info, FALSE); + info_data.wtap = wtap_open_offline(new_filename, WTAP_TYPE_AUTO, &err, &err_info, FALSE); if (!info_data.wtap) { err_msg = g_strdup_printf(cf_open_error_message(err, err_info, FALSE, WTAP_FILE_TYPE_SUBTYPE_UNKNOWN), new_filename); |