diff options
author | Michael Mann <mmann78@netscape.net> | 2016-06-01 11:42:12 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-06-02 11:13:42 +0000 |
commit | cad300ec92be2b8a69fbbc42e1d117748c008241 (patch) | |
tree | 754c6bca10580a34084e3bdb42e27eb92c4f5aa3 /dumpcap.c | |
parent | b6ace80977acb84c4e3a283f483d0c649553e511 (diff) |
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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |