aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2018-12-16 22:00:45 +0100
committerAnders Broman <a.broman58@gmail.com>2018-12-17 05:19:45 +0000
commit052d6a1d4344a30e511d636c38094902b9ce4358 (patch)
treee915f06bce1c71c621e2ba603a72be74768d2b86 /ui
parent74bd75baa58f9d569c856493df396e9f813539f5 (diff)
Qt: import hexdump into a pcapng file
When creating the temporary capture file to store the imported data in the file is created with the pcap format. To conform to the change to using pcapng format by default it is only reasonable to generated a temporary pcapng format file as well. Change-Id: I842431c1449751f8f2f3b85a47cab731de794c8a Signed-off-by: Jaap Keuter <jaap.keuter@xs4all.nl> Reviewed-on: https://code.wireshark.org/review/31066 Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/import_text_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/import_text_dialog.cpp b/ui/qt/import_text_dialog.cpp
index d55010fdc3..3dcf7d84d4 100644
--- a/ui/qt/import_text_dialog.cpp
+++ b/ui/qt/import_text_dialog.cpp
@@ -125,7 +125,7 @@ void ImportTextDialog::convertTextFile() {
params.encap = import_info_.encapsulation;
params.snaplen = import_info_.max_frame_length;
/* Use a random name for the temporary import buffer */
- import_info_.wdh = wtap_dump_open_tempfile(&tmpname, "import", WTAP_FILE_TYPE_SUBTYPE_PCAP, WTAP_UNCOMPRESSED, &params, &err);
+ import_info_.wdh = wtap_dump_open_tempfile(&tmpname, "import", WTAP_FILE_TYPE_SUBTYPE_PCAPNG, WTAP_UNCOMPRESSED, &params, &err);
capfile_name_.append(tmpname ? tmpname : "temporary file");
qDebug() << capfile_name_ << ":" << import_info_.wdh << import_info_.encapsulation << import_info_.max_frame_length;
if (import_info_.wdh == NULL) {