Changeset 82368 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Dec 4, 2019 9:47:53 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 135199
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r82364 r82368 4535 4535 { 4536 4536 /* Calculate how many bytes we have left in this TCP segment */ 4537 uint 32_t cb = u16MaxPktLen - pThis->u16TxPktLen;4537 uint16_t cb = u16MaxPktLen - pThis->u16TxPktLen; 4538 4538 if (cb > pDesc->data.cmd.u20DTALEN) 4539 4539 { 4540 4540 /* This descriptor fits completely into current segment */ 4541 cb = pDesc->data.cmd.u20DTALEN;4541 cb = (uint16_t)pDesc->data.cmd.u20DTALEN; /* u20DTALEN at this point is guarantied to fit into 16 bits. */ 4542 4542 rc = e1kFallbackAddSegment(pDevIns, pThis, pDesc->data.u64BufAddr, cb, pDesc->data.cmd.fEOP /*fSend*/, fOnWorkerThread); 4543 4543 }
Note:
See TracChangeset
for help on using the changeset viewer.