1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/sys/compat
Bill Paul 8f0387a278 Correct the behavior of ndis_adjust_buflen(): the NDIS spec says
it's an error to set the buffer bytecount to anything larger than
the buffer's original allocation size, but anything less than that
is ok.

Also, in ndis_ptom(), use the same logic: if the bytecount is
larger than the allocation size, consider the bytecount invalid
and the allocation size as the packet fragment length (m_len)
instead of the bytecount.

This corrects a consistency problem between the Broadcom wireless
driver and some of the ethernet drivers I've tested: the ethernet
drivers all report the packet frag sizes in buf->nb_bytecount, but
the Broadcom wireless driver reports them in buf->nb_size. This
seems like a bug to me, but it clearly must work in Windows, so
we have to deal with it here too.
2003-12-12 08:54:48 +00:00
..
freebsd32 regen 2003-12-11 02:36:37 +00:00
ia32 Move the ia32_sigtramp.S file back under amd64/. This interfaces closely 2003-12-11 01:09:51 +00:00
linprocfs Use mp_ncpus instead of the hw.ncpu sysctl. 2003-12-07 17:38:20 +00:00
linux Do not call VOP_GETATTR in getdents function. It does not serve any 2003-11-19 04:12:32 +00:00
ndis Correct the behavior of ndis_adjust_buflen(): the NDIS spec says 2003-12-12 08:54:48 +00:00
netbsd Don't include <sys/buf.h> needlessly. 2003-04-01 09:02:58 +00:00
pecoff Add sysentvec->sv_fixlimits() hook so that we can catch cases on 64 bit 2003-09-25 01:10:26 +00:00
svr4 Do not call VOP_GETATTR in getdents function. It does not serve any 2003-11-19 04:12:32 +00:00