corrected data link receive of large packets that were reporting a actual PDU length but not loading the PDU.

This commit is contained in:
skarg
2005-05-05 10:39:07 +00:00
parent 0c5809cc37
commit 3fb559b60a
5 changed files with 14 additions and 4 deletions
+4
View File
@@ -357,6 +357,10 @@ uint16_t ethernet_receive(
// copy the buffer into the PDU
if (pdu_len < max_pdu)
memmove(&pdu[0],&buf[17],pdu_len);
// ignore packets that are too large
else
pdu_len = 0;
return pdu_len;
}