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
|
|
||
1271 |
|
1271 |
|
1272 |
|
1272 |
|
1273 |
|
1273 |
|
1274 |
|
|
|
1275 |
|
|
|
|
1274 |
|
|
|
1275 |
|
|
|
1276 |
|
|
|
1277 |
|
|
|
1278 |
|
|
|
1279 |
|
|
|
1280 |
|
|
|
1281 |
|
|
|
1282 |
|
|
1276 |
|
1283 |
|
1277 |
|
1284 |
|
1278 |
|
1285 |
|
|
|
||
1283 |
|
1290 |
|
1284 |
|
1291 |
|
1285 |
|
1292 |
|
1286 |
|
|
|
|
1293 |
|
|
1287 |
|
1294 |
|
1288 |
|
1295 |
|
1289 |
|
1296 |
|