Changeset 90175 in vbox for trunk/include/VBox
- Timestamp:
- Jul 14, 2021 8:48:27 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145691
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmnetinline.h
r86535 r90175 414 414 * Figure out where the payload is and where the header starts before we 415 415 * do the protocol specific carving. 416 * 417 * UDP GSO uses IPv4 fragmentation, meaning that UDP header is present in 418 * the first fragment only. When computing the total frame size of the 419 * first fragment we need to use PDMNETWORKGSO::cbHdrsTotal instead of 420 * PDMNETWORKGSO::cbHdrsSeg. In case of TCP GSO both cbHdrsTotal and 421 * cbHdrsSeg have the same value, so it will work as well. 416 422 */ 417 423 uint8_t * const pbSegHdrs = pbFrame + pGso->cbMaxSeg * iSeg; 418 424 uint8_t * const pbSegPayload = pbSegHdrs + pGso->cbHdrsSeg; 419 425 uint32_t const cbSegPayload = pdmNetSegPayloadLen(pGso, iSeg, cSegs, (uint32_t)cbFrame); 420 uint32_t const cbSegFrame = cbSegPayload + pGso->cbHdrsSeg;426 uint32_t const cbSegFrame = cbSegPayload + (iSeg ? pGso->cbHdrsSeg : pGso->cbHdrsTotal); 421 427 422 428 /*
Note:
See TracChangeset
for help on using the changeset viewer.