Ethereal-users: Re: [Ethereal-users] Freebsd, UI hangs, select and BPF

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: Sat, 17 Jul 2004 04:18:51 -0700
On Thu, Jul 15, 2004 at 07:03:36AM -0700, Mike Harding wrote:
> I've been a happy Ethereal user for a while.  Sometime this year
> Ethereal started behaving badly for me, mainly hanging/locking up if I
> specified any capture filters.  After digging around for a bit I found
> some code/comments in capture.c as extracted below.
> 
> I commented out the FreeBSD check and Ethereal seems to be back to the
> old, better behavior.

If you specify capture filters, what packet arrival rate do you get?

This might be a case where the BPF timeout isn't working, so that
Ethereal doesn't respond to user input until enough packets arrive.

What happens if, for example, you run tcpdump or Tethereal with the same
filter?  If it doesn't print out packets within a second or so after
they arrive, this is a BPF bug.