Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jan 1999 14:13:50 -0800 (PST)
From:      Doug White <dwhite@pond.net>
To:        hackers@FreeBSD.ORG
Subject:   bpf select() broke?
Message-ID:  <Pine.BSF.3.96.990105134526.11697A-100000@guppy.pond.net>

next in thread | raw e-mail | index | archive | help
Hello all ...

I'm posting this again since I didn't get much reply last time, and I hope
to cull the BPF-meister from his hole ...

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.

The code in /sys/net/bpf.c appears to support it but since I'm no kernel
hacker I'm not going to trace what's going on, at least not yet.  I'll try
compiling my code on a relatively CURRENT box at home, but I'm not sure
it's set up enough to fully test the condition.

Thanx for any help.

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.990105134526.11697A-100000>