ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: Re: [Ethereal-dev] what does sync_mode mean??

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Tue, 15 Jun 2004 00:42:38 +0200
Li Haijiang wrote:

I found the struct capture_options have the item of sync_mode in the capture.h.
but i don't know when it is in the sync_mode or in the normally mode and then code
in the capture.c file have two different function to call.
-----------the code in the capture.c
if (capture_opts.sync_mode) {	
   /* sync mode: do the capture in a child process */
   return sync_pipe_do_capture(is_tempfile);
   /* capture is still running */
 } else {
   /* normal mode: do the capture synchronously */
   return normal_do_capture(is_tempfile);
   /* capture is finished here */
 }
------------


Please have a look at doc/README.capture, I tried to explain it there (although I didn't implemented it).

Regards, ULFL