summaryrefslogtreecommitdiffstats
path: root/secure
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2011-03-28 16:58:48 +0000
committeryongari <yongari@FreeBSD.org>2011-03-28 16:58:48 +0000
commit8dd663c1cb578e5ad309cae4296ab3fe72d4e2c9 (patch)
tree56ad743c3c214db7b293de6b647e2bf128352d5b /secure
parent0529b2424abf64a3d2364b0b8be426467cb1439d (diff)
downloadFreeBSD-src-8dd663c1cb578e5ad309cae4296ab3fe72d4e2c9.zip
FreeBSD-src-8dd663c1cb578e5ad309cae4296ab3fe72d4e2c9.tar.gz
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
Diffstat (limited to 'secure')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud