Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jan 1999 10:52:48 +0200 (SAT)
From:      Graham Wheeler <gram@cdsec.com>
To:        dwhite@pond.net (Doug White)
Cc:        hackers@FreeBSD.ORG
Subject:   Re: bpf select() broke?
Message-ID:  <199901060852.KAA00920@cdsec.com>
In-Reply-To: <Pine.BSF.3.96.990105134526.11697A-100000@guppy.pond.net> from "Doug White" at Jan 5, 99 02:13:50 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 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).

-- 
Dr Graham Wheeler                          E-mail: gram@cdsec.com
Citadel Data Security                      Phone:  +27(21)423-6065/6/7
Firewalls/Virtual Private Networks         Fax:    +27(21)24-3656
Internet/Intranet Network Specialists      
Data Security Products                     WWW:    http://www.cdsec.com/




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?199901060852.KAA00920>