Ethereal-dev: [Ethereal-dev] Resetting statistics in the reset routine of a tap listener

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Thu, 22 Sep 2005 10:49:37 -0700
lego@xxxxxxxxxxxx wrote:

Instead of checking if this is a new packet at every call to avoid
recounting the packets at every rerun remove the tap listener of this
stats tree.

Shouldn't it, instead, discard the current counts, and leave the tap listener installed? The reset routine is called if, for example, a protocol preference is changed, and that preference might affect the statistics, so the packets *should* be recounted (after throwing away the old counts, so they aren't counted twice) on a re-run.