Changeset 41820 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jun 19, 2012 7:37:40 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevVirtioNet.cpp
r41809 r41820 1141 1141 pGso->cbHdrsTotal = Hdr.u16CSumStart + 1142 1142 ((PRTNETTCP)(((uint8_t*)pSgBuf->aSegs[0].pvSeg) + Hdr.u16CSumStart))->th_off * 4; 1143 pGso->cbHdrsSeg = pGso->cbHdrsTotal; 1143 1144 break; 1144 1145 case PDMNETWORKGSOTYPE_IPV4_UDP: 1145 1146 pGso->cbHdrsTotal = Hdr.u16CSumStart + sizeof(RTNETUDP); 1147 pGso->cbHdrsSeg = Hdr.u16CSumStart; 1146 1148 break; 1147 1149 } 1148 1150 /* Update GSO structure embedded into the frame */ 1149 1151 ((PPDMNETWORKGSO)pSgBuf->pvUser)->cbHdrsTotal = pGso->cbHdrsTotal; 1152 ((PPDMNETWORKGSO)pSgBuf->pvUser)->cbHdrsSeg = pGso->cbHdrsTotal; 1150 1153 Log4(("%s vnetTransmitPendingPackets: adjusted HdrLen to %d.\n", 1151 1154 INSTANCE(pState), pGso->cbHdrsTotal));
Note:
See TracChangeset
for help on using the changeset viewer.