Ethereal-dev: Re: [Ethereal-dev] Checking for new capture/loaded file from user code?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 15 Dec 2003 01:35:10 -0800
On Mon, Dec 15, 2003 at 10:27:16AM +0100, Lars Ruoff wrote:
> Is there a way of finding out if the another capture file has been loaded or
> another capture has been run from looking at the global cfile variable?
> I.e. are there any members of the capture_file struct that are garantueed to
> be different for each new capture/loaded file?

Not really.  "filename" is *likely* to be different, but somebody could
conceivably, for example, close a capture file, copy a new file on top
if it (from another machine, for example), and then open that file
again.

What problem are you trying to solve?  There might be a better way to
solve it.