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
+2
View File
@@ -284,6 +284,8 @@ uint16_t bip_receive(
pdu_len -= 4; /* BVLC header */
if (pdu_len < max_pdu)
memmove(&pdu[0],&buf[4],pdu_len);
// ignore packets that are too large
// clients should check my max-apdu first
else
pdu_len = 0;
}