Changeset 28135 in vbox
- Timestamp:
- Apr 9, 2010 10:09:00 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 59858
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r28131 r28135 1954 1954 switch (uEtherType) 1955 1955 { 1956 /* @todo1956 /** @todo 1957 1957 * It is not safe to bypass checksum verification for packets coming 1958 1958 * from real wire. We currently unable to tell where packets are … … 2865 2865 2866 2866 /* IPv4 checksum offset. */ 2867 if (RT_UNLIKELY( pCtx->dw2.fIP && pCtx->ip.u8CSO - pCtx->ip.u8CSS != RT_UOFFSETOF(RTNETIPV4, ip_sum) ))2867 if (RT_UNLIKELY( pCtx->dw2.fIP && (size_t)pCtx->ip.u8CSO - pCtx->ip.u8CSS != RT_UOFFSETOF(RTNETIPV4, ip_sum) )) 2868 2868 { 2869 2869 E1kLog(("e1kSetupGsoCtx: IPCSO=%#x IPCSS=%#x\n", pCtx->ip.u8CSO, pCtx->ip.u8CSS)); … … 2872 2872 2873 2873 /* TCP/UDP checksum offsets. */ 2874 if (RT_UNLIKELY( pCtx->tu.u8CSO - pCtx->tu.u8CSS != ( pCtx->dw2.fTCP 2875 ? RT_UOFFSETOF(RTNETTCP, th_sum) 2876 : RT_UOFFSETOF(RTNETUDP, uh_sum) ) )) 2874 if (RT_UNLIKELY( (size_t)pCtx->tu.u8CSO - pCtx->tu.u8CSS 2875 != ( pCtx->dw2.fTCP 2876 ? RT_UOFFSETOF(RTNETTCP, th_sum) 2877 : RT_UOFFSETOF(RTNETUDP, uh_sum) ) )) 2877 2878 { 2878 2879 E1kLog(("e1kSetupGsoCtx: TUCSO=%#x TUCSS=%#x TCP=%d\n", pCtx->ip.u8CSO, pCtx->ip.u8CSS, pCtx->dw2.fTCP)); … … 4410 4411 case 0x04: /* IODATA */ 4411 4412 rc = e1kRegRead(pState, pState->uSelectedReg, pu32, cb); 4412 /* @todo wrong return code triggers assertions in the debug build; fix please */4413 /** @todo wrong return code triggers assertions in the debug build; fix please */ 4413 4414 if (rc == VINF_IOM_HC_MMIO_READ) 4414 4415 rc = VINF_IOM_HC_IOPORT_READ; … … 4464 4465 E1kLog2(("%s e1kIOPortOut: IODATA(4), writing to selected register %#010x, value=%#010x\n", szInst, pState->uSelectedReg, u32)); 4465 4466 rc = e1kRegWrite(pState, pState->uSelectedReg, &u32, cb); 4466 /* @todo wrong return code triggers assertions in the debug build; fix please */4467 /** @todo wrong return code triggers assertions in the debug build; fix please */ 4467 4468 if (rc == VINF_IOM_HC_MMIO_WRITE) 4468 4469 rc = VINF_IOM_HC_IOPORT_WRITE;
Note:
See TracChangeset
for help on using the changeset viewer.