aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-12-04 02:04:18 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-12-04 02:04:18 +0000
commite829856c0c03666c5b9b917fba4716b88fd580e6 (patch)
treee287961aad0a7a10a11809797eec33b4c5fadd30 /capture_sync.c
parentf856dbafa830a562da34b1aaf636fb941aa5a7c9 (diff)
move the complete functionality of the capture info dialog from capture_loop.c to capture_info.c and call it from capture.c (instead of capture_loop.c).
This way, the capture child don't need to now any of the packet_counter things (no epan/packet.h and all alike). Currently the capture_info code will always open another wiretap file instance to build it's own counter values. This isn't optimized for now (next step: use data from cf_continue_tail() somehow). svn path=/trunk/; revision=16669
Diffstat (limited to 'capture_sync.c')
-rw-r--r--capture_sync.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/capture_sync.c b/capture_sync.c
index 888f4dbceb..d291df4886 100644
--- a/capture_sync.c
+++ b/capture_sync.c
@@ -112,25 +112,8 @@ static void sync_pipe_wait_for_child(capture_options *capture_opts);
*/
#define SP_MAX_MSG_LEN 4096
-/* Size of buffer to hold decimal representation of
- signed/unsigned 64-bit int */
-#define SP_DECISIZE 20
-/*
- * Indications sent out on the sync pipe (from child to parent).
- */
-#define SP_FILE 'F' /* the name of the recently opened file */
-#define SP_ERROR_MSG 'E' /* error message */
-#define SP_PACKET_COUNT 'P' /* count of packets captured since last message */
-#define SP_DROPS 'D' /* count of packets dropped in capture */
-/*
- * Win32 only: Indications sent out on the signal pipe (from parent to child)
- * (UNIX-like sends signals for this)
- */
-#define SP_QUIT 'Q' /* "gracefully" capture quit message (SIGUSR1) */
-
-
-/* write a message to the recipient pipe in the standard format
+ /* write a message to the recipient pipe in the standard format
(3 digit message length (excluding length and indicator field),
1 byte message indicator and the rest is the message) */
static void