User: ulfl
Date: 2006/02/11 05:25 PM
Log:
the point of no return ...
using dumpcap as the capture child for Ethereal.
dumpcap is a plain console application now, even for Win32 (so no WinMain, create_console and special piping stuff reguired). The undocumented command line option -Z will switch dumpcap into "child mode", using binary instead of plain text output messages to communicate with a parent Ethereal.
Ethereal's main.c no longer needs to distinguish between child mode or not, so some simplifying here.
capture_sync.c has to call dumpcap in a "hidden window" mode using CreateProcess instead of spawnvp, otherwise an uggly console window would appear. The handles created by _pipe doesn't seem to be inheritable for this function, using CreatePipe instead.
The file capture_loop.c is only needed by dumpcap, removed from Ethereal link objects.
Some debugging aid added and other minor cleanup done.
Directory: /trunk/gtk/
Changes Path Action
+5 -73 main.c Modified
Directory: /trunk/
Changes Path Action
+0 -1 Makefile.common Modified
+9 -6 capture_loop.c Modified
+2 -72 capture_opts.c Modified
+1 -1 capture_opts.h Modified
+116 -163 capture_sync.c Modified
+0 -3 capture_sync.h Modified
+16 -175 dumpcap.c Modified
http://anonsvn.ethereal.com/viewcvs/viewcvs.py?rev=17256&view=rev