Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jan 1999 15:51:23 -0800 (PST)
From:      Doug White <dwhite@pond.net>
To:        Graham Wheeler <gram@cdsec.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: bpf select() broke?
Message-ID:  <Pine.BSF.3.96.990106154927.22525A-100000@guppy.pond.net>
In-Reply-To: <199901060852.KAA00920@cdsec.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 6 Jan 1999, Graham Wheeler wrote:

> > Do Berkeley packet filter devices (/dev/bpfX) supposed to respond like
> > normal files and devices to a select() system call? 
> > 
> > My experimentation (based on 2.2.7-RELEASE) shows that they don't.  They
> > don't return when they have data waiting to read and they don't return
> > when they're ready to be written to.  The bpf fd is definitely in the fd
> > list going into the select(), so don't try to pin pilot error on this one.
> 
> We use select on read on BPF devices for all our BPF code on 2.2.7, and it 
> works for us. Select on write definitely doesn't work (it isn't implemented).

Select on write doesn't work, eh?  I'll try that.  Thanks for the
information!

Doug White                    | Pacific Crest Networks
Internet:  dwhite@pond.net    | http://www.pond.net/


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?Pine.BSF.3.96.990106154927.22525A-100000>