Changeset 10739 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jul 18, 2008 9:12:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp
r10735 r10739 758 758 */ 759 759 PINTNETTRUNKIF pTrunkIf = pNetwork->pTrunkIF; 760 if ( pIfSender760 if ( !pIfSender 761 761 && pTrunkIf) 762 762 intnetR0TrunkIfSend(pTrunkIf, pNetwork, INTNETTRUNKDIR_HOST | INTNETTRUNKDIR_WIRE, pSG, fTrunkLocked); … … 826 826 */ 827 827 PINTNETTRUNKIF pTrunkIf = pNetwork->pTrunkIF; 828 if ( pIfSender828 if ( !pIfSender 829 829 && pTrunkIf 830 830 && pTrunkIf->pIfPort) … … 882 882 AssertPtrNull(pIfSender); 883 883 Assert(pIfSender ? fSrc == 0 : fSrc != 0); 884 Assert( pNetwork == pIfSender->pNetwork);884 Assert(!pIfSender || pNetwork == pIfSender->pNetwork); 885 885 AssertPtr(pSG); 886 886 Assert(pSG->cSegsUsed >= 1); … … 892 892 * Send statistics. 893 893 */ 894 STAM_REL_COUNTER_INC(&pIfSender->pIntBuf->cStatSends); 895 STAM_REL_COUNTER_ADD(&pIfSender->pIntBuf->cbStatSend, pSG->cbTotal); 894 if (pIfSender) 895 { 896 STAM_REL_COUNTER_INC(&pIfSender->pIntBuf->cStatSends); 897 STAM_REL_COUNTER_ADD(&pIfSender->pIntBuf->cbStatSend, pSG->cbTotal); 898 } 896 899 897 900 /*
Note:
See TracChangeset
for help on using the changeset viewer.