summaryrefslogtreecommitdiff
path: root/dumpcap.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-06-01 11:42:12 -0400
committerMichael Mann <mmann78@netscape.net>2016-06-02 11:13:42 +0000
commitcad300ec92be2b8a69fbbc42e1d117748c008241 (patch)
tree754c6bca10580a34084e3bdb42e27eb92c4f5aa3 /dumpcap.c
parentb6ace80977acb84c4e3a283f483d0c649553e511 (diff)
downloadwireshark-cad300ec92be2b8a69fbbc42e1d117748c008241.tar.gz
Use file extension when capturing from multiple interfaces.
Also update faq to include new temporary file format. Change-Id: Ie6c318bb359974b89ff3e268155315c22ba7c4e4 Reviewed-on: https://code.wireshark.org/review/15685 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/dumpcap.c b/dumpcap.c
index c38cf63da8..9b99784140 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -2787,7 +2787,11 @@ capture_loop_open_output(capture_options *capture_opts, int *save_file_fd,
/* Choose a random name for the temporary capture buffer */
if (global_capture_opts.ifaces->len > 1) {
prefix = g_strdup_printf("wireshark_%d_interfaces", global_capture_opts.ifaces->len);
- suffix = NULL;
+ if (capture_opts->use_pcapng) {
+ suffix = ".pcapng";
+ }else{
+ suffix = ".pcap";
+ }
} else {
gchar *basename;
basename = g_path_get_basename(g_array_index(global_capture_opts.ifaces, interface_options, 0).console_display_name);