aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2022-01-17 19:26:27 -0500
committerJohn Thacker <johnthacker@gmail.com>2022-02-10 23:28:53 -0500
commit0011bb6a4c628b14f706288f58a056b7378f3c53 (patch)
treeaa5e74e4c5087b8cbad798841537739b166c2ce6 /file.c
parentfc3f061829aa4ba20589bd4caa802aee1756f083 (diff)
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.
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
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). */