Ethereal-dev: Re: [ethereal-dev] Visited is zero after a filter operation ...

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Wed, 23 Aug 2000 23:30:03 -0700
On Wed, Aug 23, 2000 at 01:12:27PM -0400, Gilbert Ramirez wrote:
> If rescan_packets() accepted another argument, a boolean indicating
> whether or not to destroy the packet state info, then redissect_packets()
> and colorize_packets could say "don't destroy the data", while filter_packets()
> could say "destroy the data".
> 
> Would that work?

It might not do the right thing - "filter_packets()" *shouldn't* destroy
the data, as it shouldn't cause the dissector to dissect the frame
differently, but "redissect_packets()" *should* destroy the data, as
somebody might have changed some preference in such a fashion as to
change the behavior of the dissector.

I'll add another argument to "rescan_packets()", and put back into it
the code to reinit the information and clear the "visited" flag, *BUT*
do it only if that additional argument is true.