Re: Does /dev/bpf work with kevent?

2001-08-03 Thread Garrett Rooney

On Fri, Aug 03, 2001 at 01:51:20PM -0400, Garance A Drosihn wrote:
 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.

sorry, i know i said i'd get you that patch, but my FreeBSD machines still
aren't hooked up to the net, so i haven't had a chance to update to -STABLE in
a long time...

guess it'll have to wait until after 4.4 ;-(

unfortunately, i don't think that'll effect kevent.  it seemed to be pretty
localized to select, although i must admit, i don't know all that much about
how kevent works under the hood.

-- 
garrett rooney Unix was not designed to stop you from 
[EMAIL PROTECTED]   doing stupid things, because that would  
http://electricjellyfish.net/  stop you from doing clever things.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: Does /dev/bpf work with kevent?

2001-08-03 Thread Josh M Osborne

On Fri, Aug 03, 2001 at 01:51:20PM -0400, Garance A Drosihn wrote:
[.../dev/bpf...kevent...EAGAIN...]
 Are you trying this on current or stable?  current has a bug fix
 to bpf which still hasn't been merged to stable.

4.3-RELEASE, and 4.3-STABLE

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Does /dev/bpf work with kevent?

2001-08-03 Thread Josh M Osborne

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)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message