Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jul 2001 13:43:17 -0700 (PDT)
From:      Lamont Granquist <lamont@scriptkiddie.org>
To:        John Polstra <jdp@polstra.com>
Cc:        <stable@freebsd.org>, <jdp@wall.polstra.com>
Subject:   Re: bpf/libpcap and pthreads
Message-ID:  <20010706133246.W95591-100000@warez.scriptkiddie.org>
In-Reply-To: <20010706121104.U95517-100000@warez.scriptkiddie.org>

next in thread | previous in thread | raw e-mail | index | archive | help

okay, i did some more debugging.  it looks like it is correctly capturing
all the packets.  the difference comes in that when its linked with
-pthreads it calls bpfread() and then goes into poll().  it then hangs in
poll() for a good long time.  it does not hang in bpfpoll().  turns out
that i wasn't waiting long enough earlier and that it does eventually
timeout and i get what looks like expected output.

i'll keep playing with it and see what else i can find...



On Fri, 6 Jul 2001, Lamont Granquist wrote:
> On Fri, 6 Jul 2001, John Polstra wrote:
> > Yes, I did merge the fix into -stable January 5, 2001.  It is in
> > "src/sys/net/bpf.c" revision 1.59.2.5.
>
>  * $FreeBSD: src/sys/net/bpf.c,v 1.59.2.5 2001/01/05 04:49:09 jdp Exp $
>
> is what i'm using.
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message
>
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010706133246.W95591-100000>