Ethereal-dev: Re: [Ethereal-dev] RFC: move packet count code (capture info dialog) from captur

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: Sat, 03 Dec 2005 15:19:47 +0100
Thomas Steffen wrote:


I completely agree, but I would like to add one point:

The capture child should be a separate executable. There is no reason
to load all of GTK, initialise the plugins etc, if you only want to
capture packets from the network. Especially because the capture
process usually has to run as root, making it small should be better.
Well, yes. That's the reason why I've started dumpcap(.c) as a work in current progress. It's basically a stripped down version of the capture child related parts from main.c.

All the work I'm currently doing is exactly to strip down some dependencies from capture_loop.c, which is currently used by Ethereal and will be used in future by dumpcap (or whatever name we want to give it, it's only the working title for now).

The current step is to move the (optional) capture info dialog from capture_loop.c into main.c (or somewhere "around it"), so we can drop the GTK dependency for capture_loop.c and therefore for dumpcap too.

So sometimes the future is nearer than you may think ;-)

Regards, ULFL