diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-07-16 07:15:09 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-07-16 07:15:09 +0000 |
commit | 44d19627efccd1b7461d38a6ba6eb25a98ed66ac (patch) | |
tree | 9a9121589e31a5c3981ca9d943da7f385c731afd /capture.c | |
parent | 41dc7b1b59bef7521b9e6febc7a482e2f32017fe (diff) | |
download | wireshark-44d19627efccd1b7461d38a6ba6eb25a98ed66ac.tar.gz wireshark-44d19627efccd1b7461d38a6ba6eb25a98ed66ac.tar.bz2 wireshark-44d19627efccd1b7461d38a6ba6eb25a98ed66ac.zip |
From Graeme Hewson:
Allow "-" as the output file name in Wiretap, referring to the
standard error.
Optimize the capture loop.
Fix some of the error-message printing code in Ethereal and Tethereal.
Have Wiretap check whether it can seek on a file descriptor, and pass
the results of that test to the file-type-specific "open for output"
routine. Have the "open for output" routines for files where we need to
seek when writing the file return an error if seeks don't work.
svn path=/trunk/; revision=5884
Diffstat (limited to 'capture.c')
-rw-r--r-- | capture.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* capture.c * Routines for packet capture windows * - * $Id: capture.c,v 1.185 2002/07/16 05:43:39 guy Exp $ + * $Id: capture.c,v 1.186 2002/07/16 07:15:04 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -333,7 +333,7 @@ do_capture(char *capfile_name) ringbuf_error_cleanup(); } simple_dialog(ESD_TYPE_CRIT, NULL, - file_open_error_message(errno, TRUE), capfile_name); + file_open_error_message(errno, TRUE, WTAP_FILE_PCAP), capfile_name); } return; } |