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 --- reordercap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'reordercap.c') diff --git a/reordercap.c b/reordercap.c index 57741e9cea..b9c0763f8a 100644 --- a/reordercap.c +++ b/reordercap.c @@ -221,8 +221,10 @@ int main(int argc, char *argv[]) exit(1); } + init_open_routines(); + /* Open infile */ - wth = wtap_open_offline(infile, &err, &err_info, TRUE); + wth = wtap_open_offline(infile, WTAP_TYPE_AUTO, &err, &err_info, TRUE); if (wth == NULL) { fprintf(stderr, "reordercap: Can't open %s: %s\n", infile, wtap_strerror(err)); -- cgit v1.2.3