Changeset 26574 in vbox for trunk/src/VBox/NetworkServices/NetLib/VBoxNetARP.cpp
- Timestamp:
- Feb 16, 2010 12:44:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/NetLib/VBoxNetARP.cpp
r26498 r26574 26 26 #include "VBoxNetLib.h" 27 27 #include <iprt/string.h> 28 #include <VBox/intnetinline.h> 28 29 #include <VBox/log.h> 29 30 … … 45 46 * Valid IntNet Ethernet frame? 46 47 */ 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) 49 51 return false; 50 52 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); 53 55 PCRTNETETHERHDR pEthHdr = (PCRTNETETHERHDR)pvFrame; 54 56
Note:
See TracChangeset
for help on using the changeset viewer.