diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-10-02 06:00:07 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-10-02 06:00:07 +0000 |
commit | b34d0437c9ffa0aa38c8620fb703c28266c6b865 (patch) | |
tree | 61c6f54c874430931d2547fc9f9638d3786427bd /capture.h | |
parent | 60f385ac019e440d7892bd83c7ecfe6787d6b02a (diff) |
A child process for a "-S" or "-F" capture should *always* exit when the
capture is done; make it do so, and don't bother passing it a "-Q" flag
to tell it to do so.
"capture()" is called in two places; in one place, it's in a child
process, and it shouldn't read in the capture file. Move the reading of
the capture file out of "capture()" itself to the place where we
*should* read in the capture file after it returns. Also, have it
return an indication of whether it succeeded or failed, so we know
whether we should read in the capture file.
svn path=/trunk/; revision=747
Diffstat (limited to 'capture.h')
-rw-r--r-- | capture.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* capture.h * Definitions for packet capture windows * - * $Id: capture.h,v 1.17 1999/09/30 06:49:54 guy Exp $ + * $Id: capture.h,v 1.18 1999/10/02 06:00:07 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -60,7 +60,7 @@ void do_capture(void); void run_capture(void); /* Do the low-level work of a capture. */ -void capture(void); +int capture(void); #endif /* HAVE_LIBPCAP */ #endif /* capture.h */ |