VirtualBox

Changeset 28335 in vbox


Ignore:
Timestamp:
Apr 14, 2010 10:02:26 PM (15 years ago)
Author:
vboxsync
Message:

DevE1000: Shut up MSC warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevE1000.cpp

    r28332 r28335  
    19411941static int e1kRxChecksumOffload(E1KSTATE* pState, const uint8_t *pFrame, size_t cb, E1KRXDST *pStatus)
    19421942{
     1943    /** @todo
     1944     * It is not safe to bypass checksum verification for packets coming
     1945     * from real wire. We currently unable to tell where packets are
     1946     * coming from so we tell the driver to ignore our checksum flags
     1947     * and do verification in software.
     1948     */
     1949#if 0
    19431950    uint16_t uEtherType = ntohs(*(uint16_t*)(pFrame + 12));
    1944     PRTNETIPV4 pIpHdr4;
    19451951
    19461952    E1kLog2(("%s e1kRxChecksumOffload: EtherType=%x\n", INSTANCE(pState), uEtherType));
     
    19481954    switch (uEtherType)
    19491955    {
    1950         /** @todo
    1951          * It is not safe to bypass checksum verification for packets coming
    1952          * from real wire. We currently unable to tell where packets are
    1953          * coming from so we tell the driver to ignore our checksum flags
    1954          * and do verification in software.
    1955          */
    1956 #if 0
    19571956        case 0x800: /* IPv4 */
     1957        {
    19581958            pStatus->fIXSM  = false;
    19591959            pStatus->fIPCS  = true;
    1960             pIpHdr4 = (PRTNETIPV4)(pFrame + 14);
     1960            PRTNETIPV4 pIpHdr4 = (PRTNETIPV4)(pFrame + 14);
    19611961            /* TCP/UDP checksum offloading works with TCP and UDP only */
    19621962            pStatus->fTCPCS = pIpHdr4->ip_p == 6 || pIpHdr4->ip_p == 17;
    19631963            break;
     1964        }
    19641965        case 0x86DD: /* IPv6 */
    19651966            pStatus->fIXSM = false;
     
    19671968            pStatus->fTCPCS = true;
    19681969            break;
    1969 #endif
    19701970        default: /* ARP, VLAN, etc. */
    19711971            pStatus->fIXSM = true;
    19721972            break;
    19731973    }
    1974 
     1974#else
     1975    pStatus->fIXSM = true;
     1976#endif
    19751977    return VINF_SUCCESS;
    19761978}
     
    31223124{
    31233125    PPDMSCATTERGATHER   pSg     = pState->CTX_SUFF(pTxSg);
    3124     uint32_t const      cbFrame = pSg ? (size_t)pSg->cbUsed : 0;
     3126    uint32_t const      cbFrame = pSg ? (uint32_t)pSg->cbUsed : 0;
    31253127    Assert(!pSg || pSg->cSegs == 1);
    31263128
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette