There is no way for the hardware to give us an invalid length in the LRH, since it must have parsed this length field in order to perform header splitting. However, this is difficult to prove conclusively. Add an unnecessary length check to explicitly reject any packets larger than the posted receive I/O buffer. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
1507 |
|
1507 |
|
1508 |
|
1508 |
|
1509 |
|
1509 |
|
1510 |
|
|
|
1511 |
|
|
|
|
1510 |
|
|
|
1511 |
|
|
|
1512 |
|
|
|
1513 |
|
|
|
1514 |
|
|
|
1515 |
|
|
|
1516 |
|
|
|
1517 |
|
|
|
1518 |
|
|
1512 |
|
1519 |
|
1513 |
|
1520 |
|
1514 |
|
1521 |
|
|
|
||
1519 |
|
1526 |
|
1520 |
|
1527 |
|
1521 |
|
1528 |
|
1522 |
|
|
|
|
1529 |
|
|
1523 |
|
1530 |
|
1524 |
|
1531 |
|
1525 |
|
1532 |
|