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

Ethereal-dev: [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: "Li Haijiang" <lhjiang@xxxxxx>
Date: Mon, 14 Jun 2004 15:37:25 +0800
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 */
  }
------------




--------------------------------------------------
Lihaijiang