Changeset 28202 in vbox
- Timestamp:
- Apr 12, 2010 12:52:20 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
r28161 r28202 533 533 pShInfo->gso_segs = PDMNetGsoCalcSegmentCount(&pSG->GsoCtx, pSG->cbTotal); 534 534 535 /** @todo figure out the checksum bit... We're checksumming way too much here536 * I hope. */537 535 if (fDstWire) 538 536 { 539 /** @todo check skb_partial_csum_set status code. */ 537 Assert(skb_headlen(pPkt) >= pSG->GsoCtx.cbHdrs); 538 pPkt->ip_summed = CHECKSUM_PARTIAL; 539 pPkt->csum_start = skb_headroom(pPkt) + pSG->GsoCtx.offHdr2; 540 540 if (fGsoType & (SKB_GSO_TCPV4 | SKB_GSO_TCPV6)) 541 skb_partial_csum_set(pPkt, pSG->GsoCtx.offHdr2, RT_OFFSETOF(RTNETTCP, th_sum));541 pPkt->csum_offset = RT_OFFSETOF(RTNETTCP, th_sum); 542 542 else 543 skb_partial_csum_set(pPkt, pSG->GsoCtx.offHdr2, RT_OFFSETOF(RTNETUDP, uh_sum));543 pPkt->csum_offset = RT_OFFSETOF(RTNETUDP, uh_sum); 544 544 } 545 545 else
Note:
See TracChangeset
for help on using the changeset viewer.