Subject: CVS commit: src/sys/net
To: None <source-changes@NetBSD.org>
From: Darren Reed <darrenr@netbsd.org>
List: source-changes
Date: 04/14/2004 21:34:26
Module Name:	src
Committed By:	darrenr
Date:		Wed Apr 14 21:34:26 UTC 2004

Modified Files:
	src/sys/net: bpf.c

Log Message:
* from bpf 1.2a1, use the IO_NDELAY flag in bpfread() to indicate whether or
  not a read operation should be allowed to sleep.  This allows the use of
  bd_rtout with a value of "-1" to be eliminated (signed comparison and
  assignment to an unsigned long.)
* in 1.91, a change was introduced that had bpfpoll() returning POLLRDNORM
  set when the timeout expired.  This impacted poorly on performance as well
  as causing select to return an fd available for reading when it wasn't.
  Change the behaviour here to only allow the possibility of POLLIN being
  returned as active in the event of a timeout.


To generate a diff of this commit:
cvs rdiff -r1.92 -r1.93 src/sys/net/bpf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.