VirtualBox

Ignore:
Timestamp:
Jul 17, 2008 10:42:30 PM (17 years ago)
Author:
vboxsync
Message:

intnet: Converted the internal frame handling to use the scatter/gatter list created for the trunk port (INTNETSG). Implemented the trunk receive path.

File:
1 edited

Legend:

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

    r10711 r10733  
     1/* $Id$ */
    12/** @file
     3 * Internal networking - Usermode testcase for the kernel mode bits.
    24 *
    3  * VBox - Testcase for the Ring-0 part of internal networking.
     5 * This is a bit hackish as we're mixing context here, however it is
     6 * very useful when making changes to the internal networking service.
    47 */
    58
     
    238241        int rc = INTNETR0IfSend(pArgs->pIntNet, pArgs->hIf, abBuf, cb);
    239242#else
    240         int rc = intnetR0RingWriteFrame(pArgs->pBuf, &pArgs->pBuf->Send, abBuf, cb);
     243        INTNETSG Sg;
     244        intnetR0SgInitTemp(&Sg, abBuf, cb);
     245        int rc = intnetR0RingWriteFrame(pArgs->pBuf, &pArgs->pBuf->Send, &Sg);
    241246        if (RT_SUCCESS(rc))
    242247            rc = INTNETR0IfSend(pArgs->pIntNet, pArgs->hIf, NULL, 0);
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