Ethereal-dev: Re: [ethereal-dev] Captures of the loop-back driver causes all sorts of problems

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

From: David Santinoli <u235@xxxxxxxxx>
Date: Thu, 14 Sep 2000 21:41:46 +0200
What about discarding the annoying duplicates from the loopback interface by
naively adding few lines in capture_pcap_cb:

    loop_data *ld = (loop_data *) user;
    int err;
-   static int ee=0;
  
-   if(++ee==2) { ee=0; return; }
    if ((++ld->counts.total >= ld->max) && (ld->max > 0)) 
    {

Of course the skip should be conditioned somehow to the fact that we are
actually capturing live from loopback; moreover, the user should be able to
force the skip (by ticking a checkbox in some config panel) in order to beautify
the display of captured files.

Regards,
 David Santinoli