diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-10-16 16:42:40 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-10-16 16:42:40 +0200 |
commit | 52fc6d50d49b95e4598e2c9bb65e15e37035bf28 (patch) | |
tree | a0a812ce48085b0cdefa1de6180ba25a43d8fa5b /sparc/include/u.h | |
parent | 965bb2d2480363bf02ad0c10f92b7a6b4962e38f (diff) | |
download | plan9front-52fc6d50d49b95e4598e2c9bb65e15e37035bf28.tar.xz |
nusb/ether: fix wrong size check causing odd sized packets to be discarded (thanks mischief!)
ethernet packets with sizes that where not multiples of 4 where
discarded because the check uses the smsc frame size instead of
the payload size. when a usb read returns just one packet, theres
no next frame header and the calculated frame size is bigger than
the usb read which caused the whole packet to be discarded as invalid.
thanks to mischief for testing and debugging!
Diffstat (limited to 'sparc/include/u.h')
0 files changed, 0 insertions, 0 deletions