VirtualBox

Ignore:
Timestamp:
Apr 7, 2010 6:37:43 AM (15 years ago)
Author:
vboxsync
Message:

intnet, VBoxNet*, network device & drivers: GSO preps.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFltBow-solaris.c

    r26498 r28025  
    2626#include <VBox/log.h>
    2727#include <VBox/err.h>
    28 #include <VBox/cdefs.h>
     28#include <VBox/intnetinline.h>
    2929#include <VBox/version.h>
    3030#include <iprt/initterm.h>
     
    478478    LogFlow((DEVICE_NAME ":vboxNetFltSolarisMBlkToSG pThis=%p pMsg=%p pSG=%p cSegs=%d\n", pThis, pMsg, pSG, cSegs));
    479479
    480     pSG->pvOwnerData = NULL;
    481     pSG->pvUserData = NULL;
    482     pSG->pvUserData2 = NULL;
    483     pSG->cUsers = 1;
    484     pSG->cbTotal = 0;
    485     pSG->fFlags = INTNETSG_FLAGS_TEMP;
    486     pSG->cSegsAlloc = cSegs;
    487 
    488480    /*
    489      * Convert the message block to segments.
     481     * Convert the message block to segments. Works cbTotal and sets cSegsUsed.
    490482     */
     483    INTNETSgInitTempSegs(pSG, 0 /*cbTotal*/, cSegs, 0 /*cSegsUsed*/);
    491484    mblk_t *pCur = pMsg;
    492485    unsigned iSeg = 0;
     
    518511        pSG->cbTotal = 60;
    519512        pSG->cSegsUsed++;
     513        Assert(iSeg + 1 < cSegs);
    520514    }
    521515#endif
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