From owner-freebsd-stable Fri Jul 6 13:43:26 2001 Delivered-To: freebsd-stable@freebsd.org Received: from warez.scriptkiddie.org (uswest-dsl-142-38.cortland.com [209.162.142.38]) by hub.freebsd.org (Postfix) with ESMTP id 7BA0D37B401 for ; Fri, 6 Jul 2001 13:43:18 -0700 (PDT) (envelope-from lamont@scriptkiddie.org) Received: from warez.scriptkiddie.org (warez.scriptkiddie.org [209.162.142.38]) by warez.scriptkiddie.org (Postfix) with ESMTP id 0F4C462D02; Fri, 6 Jul 2001 13:43:18 -0700 (PDT) Date: Fri, 6 Jul 2001 13:43:17 -0700 (PDT) From: Lamont Granquist To: John Polstra Cc: , Subject: Re: bpf/libpcap and pthreads In-Reply-To: <20010706121104.U95517-100000@warez.scriptkiddie.org> Message-ID: <20010706133246.W95591-100000@warez.scriptkiddie.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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