VirtualBox

Changeset 28056 in vbox for trunk


Ignore:
Timestamp:
Apr 7, 2010 5:22:59 PM (15 years ago)
Author:
vboxsync
Message:

DrvNetSniffer: Handle GSO SGs.

File:
1 edited

Legend:

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

    r27973 r28056  
    118118    /* output to sniffer */
    119119    RTCritSectEnter(&pThis->Lock);
    120     /** @todo Deal with GSO here. */
    121     PcapFileFrame(pThis->File, pThis->StartNanoTS,
    122                   pSgBuf->aSegs[0].pvSeg,
    123                   pSgBuf->cbUsed,
    124                   RT_MIN(pSgBuf->cbUsed, pSgBuf->aSegs[0].cbSeg));
     120    if (!pSgBuf->pvUser)
     121        PcapFileFrame(pThis->File, pThis->StartNanoTS,
     122                      pSgBuf->aSegs[0].pvSeg,
     123                      pSgBuf->cbUsed,
     124                      RT_MIN(pSgBuf->cbUsed, pSgBuf->aSegs[0].cbSeg));
     125    else
     126        PcapFileGsoFrame(pThis->File, pThis->StartNanoTS, (PCPDMNETWORKGSO)pSgBuf->pvUser,
     127                         pSgBuf->aSegs[0].pvSeg,
     128                         pSgBuf->cbUsed,
     129                         RT_MIN(pSgBuf->cbUsed, pSgBuf->aSegs[0].cbSeg));
    125130    RTCritSectLeave(&pThis->Lock);
    126131
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