Changeset 29616 in vbox for trunk/src/VBox
- Timestamp:
- May 18, 2010 11:55:55 AM (15 years ago)
- Location:
- trunk/src/VBox/HostDrivers/VBoxNetFlt/win
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFlt-win.c
r29525 r29616 2627 2627 2628 2628 ucbLength2Match = MIN(ucbMatch, cbLength1); 2629 ucbLength2Match = MIN(ucb Match, cbLength2);2629 ucbLength2Match = MIN(ucbLength2Match, cbLength2); 2630 2630 2631 2631 if(memcmp((PVOID*)pMemBuf1, (PVOID*)pMemBuf2, ucbLength2Match)) … … 2729 2729 2730 2730 ucbLength2Match = MIN(ucbMatch, cbLength1); 2731 ucbLength2Match = MIN(ucb Match, cbLength2);2731 ucbLength2Match = MIN(ucbLength2Match, cbLength2); 2732 2732 2733 2733 if(memcmp((PVOID*)pMemBuf1, (PVOID*)pMemBuf2, ucbLength2Match)) … … 2818 2818 2819 2819 ucbLength2Match = MIN(ucbMatch, cbLength1); 2820 ucbLength2Match = MIN(ucb Match, cbLength2);2820 ucbLength2Match = MIN(ucbLength2Match, cbLength2); 2821 2821 2822 2822 if(memcmp(pMemBuf1, pMemBuf2, ucbLength2Match)) -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFlt-win.h
r29108 r29616 47 47 48 48 #endif /* if DBG */ 49 50 /** get the PVBOXNETFLTINS from PADAPT */ 51 #define PADAPT_2_PVBOXNETFLTINS(_pAdapt) ( (PVBOXNETFLTINS)((uint8_t *)(_pAdapt) - RT_OFFSETOF(VBOXNETFLTINS, u.s.IfAdaptor)) ) 52 /** get the PADAPT from PVBOXNETFLTINS */ 53 #define PVBOXNETFLTINS_2_PADAPT(_pNetFlt) ( &(_pNetFlt)->u.s.IfAdaptor ) 49 54 50 55 … … 413 418 { 414 419 PSEND_RSVD pSrv = (PSEND_RSVD)pPacket->ProtocolReserved; 415 return vboxNetFltWinInterlockedSearchListEntry(&pAdapt->SendPacketQueue, &pSrv->ListEntry, true); 420 bool bRet = vboxNetFltWinInterlockedSearchListEntry(&pAdapt->SendPacketQueue, &pSrv->ListEntry, true); 421 #ifdef DEBUG_misha 422 PVBOXNETFLTINS pNetFlt = PADAPT_2_PVBOXNETFLTINS(pAdapt); 423 Assert(bRet == (pNetFlt->enmTrunkState == INTNETTRUNKIFSTATE_ACTIVE)); 424 #endif 425 return bRet; 416 426 } 417 427 … … 476 486 * PADAPT, PVBOXNETFLTINS reference/dereference (i.e. retain/release) API * 477 487 **************************************************************************/ 478 479 /** get the PVBOXNETFLTINS from PADAPT */480 #define PADAPT_2_PVBOXNETFLTINS(_pAdapt) ( (PVBOXNETFLTINS)((uint8_t *)(_pAdapt) - RT_OFFSETOF(VBOXNETFLTINS, u.s.IfAdaptor)) )481 /** get the PADAPT from PVBOXNETFLTINS */482 #define PVBOXNETFLTINS_2_PADAPT(_pNetFlt) ( &(_pNetFlt)->u.s.IfAdaptor )483 488 484 489 DECLHIDDEN(void) vboxNetFltWinWaitDereference(PADAPT_DEVICE pState); -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFltPt-win.c
r29108 r29616 1354 1354 if(pLb) 1355 1355 { 1356 #ifndef DEBUG_NETFLT_RECV_NOPACKET 1356 1357 /* should not be here */ 1357 1358 Assert(0); 1358 1359 #endif 1359 1360 if(!vboxNetFltWinLbIsFromIntNet(pLb)) 1360 1361 { … … 1702 1703 { 1703 1704 #ifndef VBOX_LOOPBACK_USEFLAGS 1704 pLb = vboxNetFltWinLbSearchLoopBack(pAdapt, pPacket, true /* ??? no need to keep it, so remove */);1705 pLb = vboxNetFltWinLbSearchLoopBack(pAdapt, pPacket, false); 1705 1706 if(!pLb) 1706 1707 #endif … … 2031 2032 { 2032 2033 #ifndef VBOX_LOOPBACK_USEFLAGS 2033 PNDIS_PACKET pLb = vboxNetFltWinLbSearchLoopBack(pAdapt, pPacket, true /* ??? no need to keep it, so remove */);2034 PNDIS_PACKET pLb = vboxNetFltWinLbSearchLoopBack(pAdapt, pPacket, false); 2034 2035 if(!pLb) 2035 2036 #endif
Note:
See TracChangeset
for help on using the changeset viewer.