From 0011bb6a4c628b14f706288f58a056b7378f3c53 Mon Sep 17 00:00:00 2001 From: John Thacker Date: Mon, 17 Jan 2022 19:26:27 -0500 Subject: Qt: Allow omitting secondary data sources when printing Add a checkbox to the packet format group box to allow the hexdump to only have the main frame instead of secondary data sources as well, so that Print and Export Packet Dissections can be used for input to text2pcap. --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index b1c9160020..c26a0a359d 100644 --- a/file.c +++ b/file.c @@ -2467,7 +2467,7 @@ print_packet(capture_file *cf, frame_data *fdata, wtap_rec *rec, Buffer *buf, goto fail; } /* Print the full packet data as hex. */ - if (!print_hex_data(args->print_args->stream, &args->edt, HEXDUMP_SOURCE_MULTI | HEXDUMP_ASCII_INCLUDE)) + if (!print_hex_data(args->print_args->stream, &args->edt, args->print_args->hexdump_options)) goto fail; /* Print a blank line if we print anything after this (aka more than one packet). */ -- cgit v1.2.3