freebsd-dev/sys/dev/fxp
Pyun YongHyeon 991ae908e3 Normally fxp(4) does not receive bad frames but promiscuous mode
makes controller to receive bad frames and i82557 will also receive
bad frames since fxp(4) have to receive VLAN oversized frames. If
fxp(4) encounter DMA overrun error, the received frame size would
be 0 so the actual frame size after checksum field extraction the
length would be negative(-2). Due to signed/unsigned comparison
used in driver, frame length check did not work for DMA overrun
frames. Correct this by casting it to int.
While I'm here explicitly check DMA overrun error and discard the
frame regardless of result of received frame length check.

Reported by:	n_hibma
Tested by:	n_hibma
MFC after:	1 week
2011-03-28 16:58:48 +00:00
..
if_fxp.c Normally fxp(4) does not receive bad frames but promiscuous mode 2011-03-28 16:58:48 +00:00
if_fxpreg.h Fix and implement missing parts of flow control support. This also removes 2010-11-26 21:52:33 +00:00
if_fxpvar.h Fix and implement missing parts of flow control support. This also removes 2010-11-26 21:52:33 +00:00
rcvbundl.h