From owner-freebsd-hackers Fri Aug 3 10:51:37 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id 749CD37B407 for ; Fri, 3 Aug 2001 10:51:31 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.11.3/8.11.3) with ESMTP id f73HpN472848; Fri, 3 Aug 2001 13:51:23 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20010803102640.A11972@torb.pix.net> References: <20010803102640.A11972@torb.pix.net> Date: Fri, 3 Aug 2001 13:51:20 -0400 To: Josh M Osborne , hackers@FreeBSD.ORG From: Garance A Drosihn Subject: Re: Does /dev/bpf work with kevent? Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 10:26 AM -0400 8/3/01, Josh M Osborne wrote: >I'm attempting to use kevent with /dev/bpf to check to see if it >is ready for reads, but it seems to always return ready to read, >but the reads get EAGAIN. > >Does /dev/bpf not work with kevent? Or should I look elsewhere >for my bug (like forgetting some random ioctl)? > >If you can't use /dev/bpf can ng_bpf and ng_socket somehow be used? >Any examples of either, or both laying around somewhere? (I've >never used the netgraph stuff before -- as cool as netgraph looks >I haven't had the need) Are you trying this on current or stable? current has a bug fix to bpf which still hasn't been merged to stable. -- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message