diff options
author | Michael Knudsen <mk@cvs.openbsd.org> | 2011-03-31 17:06:26 +0000 |
---|---|---|
committer | Michael Knudsen <mk@cvs.openbsd.org> | 2011-03-31 17:06:26 +0000 |
commit | 4224e4b777f716b64dec8ecae9f63e6456a3cd7d (patch) | |
tree | c307156336a0eeb83bf386cccd05f29263c3c9e8 /sbin/ping | |
parent | 7a16c72e8c7a64ac7fea50c52bb65bf25e597258 (diff) |
Don't process packets where the USB xfer length is shorter than a packet
header, and don't process packets where the packet header length field
says the packet is longer than the size of the USB xfer.
While there, fix a debug print that was missing the device name from the
parameter list, causing it to crash when enabled.
Also, use correct MTU from datasheet.
From Loganaden Velvindrom with input from me.
Tested by kili.
ok jasper sthen (with a whitespace nit)
Diffstat (limited to 'sbin/ping')
0 files changed, 0 insertions, 0 deletions