Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jul 2001 01:47:25 -0700
From:      Guy Harris <gharris@sonic.net>
To:        Joerg Micheel <joerg@cs.waikato.ac.nz>
Cc:        Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>, freebsd-hackers@freebsd.org
Subject:   Re: libpcap and pthreads
Message-ID:  <20010719014725.A344@quadrajet.sonic.net>

next in thread | raw e-mail | index | archive | help
> > Is it possible to use libpcap with pthreads?
> > (I want to use just pcap_dispatch() function)
> 
> I very much doubt so. It's not possible to use it in any kind of
> multithreaded applications, even with select() scenarios.

That's a BPF problem, not a libpcap problem; see PR kern/22063 "bpf when
used with the select system call with timeout doesn't forward packets on
timeout", which includes a patch (although it's uuencoded and, at least
when you view that PR over the Web, the uuencoded text doesn't appear to
be valid).

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




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