VirtualBox

Ignore:
Timestamp:
Feb 16, 2010 12:44:10 PM (15 years ago)
Author:
vboxsync
Message:

Networking: Preparing to make the driver return a send buffer to the device emulation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NetLib/VBoxNetARP.cpp

    r26498 r26574  
    2626#include "VBoxNetLib.h"
    2727#include <iprt/string.h>
     28#include <VBox/intnetinline.h>
    2829#include <VBox/log.h>
    2930
     
    4546     * Valid IntNet Ethernet frame?
    4647     */
    47     PCINTNETHDR pHdr = (PINTNETHDR)((uintptr_t)pBuf + pBuf->Recv.offRead);
    48     if (pHdr->u16Type != INTNETHDR_TYPE_FRAME)
     48    PCINTNETHDR pHdr = INTNETRingGetNextFrameToRead(&pBuf->Recv);
     49    if (   !pHdr
     50        || pHdr->u16Type != INTNETHDR_TYPE_FRAME)
    4951        return false;
    5052
    51     size_t      cbFrame = pHdr->cbFrame;
    52     const void *pvFrame = INTNETHdrGetFramePtr(pHdr, pBuf);
     53    size_t          cbFrame = pHdr->cbFrame;
     54    const void     *pvFrame = INTNETHdrGetFramePtr(pHdr, pBuf);
    5355    PCRTNETETHERHDR pEthHdr = (PCRTNETETHERHDR)pvFrame;
    5456
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