the point of no return ...
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 11 Feb 2006 23:25:11 +0000 (23:25 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 11 Feb 2006 23:25:11 +0000 (23:25 +0000)
commit00996b000fec3d6aefc99041e47e6f86faeb8057
tree1c665d6e6c1ad304187017b4cdbe4ecc3aba2532
parent25c73eed89d187a1e8d0344f5ffbbf24495233d8
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.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17256 f5534014-38df-0310-8fa8-9805f1628bb7
Makefile.common
capture_loop.c
capture_opts.c
capture_opts.h
capture_sync.c
capture_sync.h
dumpcap.c
gtk/main.c