Changeset 29491 in vbox for trunk/src/VBox/Devices
- Timestamp:
- May 14, 2010 5:46:22 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp
r29362 r29491 3622 3622 } 3623 3623 3624 PINTNETTRUNKIF pTrunk = pNetwork->MacTab.pTrunk; 3624 3625 RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock, &Tmp); 3626 if (pTrunk && pTrunk->pIfPort) 3627 { 3628 Log(("IntNetR0IfSetMacAddress: pfnNotifyMacAddress hIf=%RX32\n", hIf)); 3629 pTrunk->pIfPort->pfnNotifyMacAddress(pTrunk->pIfPort, hIf, pMac); 3630 } 3625 3631 } 3626 3632 else … … 3964 3970 ASMAtomicWriteBool(&pIf->fDestroying, true); 3965 3971 3972 PINTNETNETWORK pNetwork = pIf->pNetwork; 3973 PINTNETTRUNKIF pTrunk = pNetwork->MacTab.pTrunk; 3974 if (pTrunk && pTrunk->pIfPort) 3975 { 3976 Log(("intnetR0IfDestruct: pfnDisconnectInterface hIf=%RX32\n", pIf->hIf)); 3977 pTrunk->pIfPort->pfnDisconnectInterface(pTrunk->pIfPort, pIf->hIf); 3978 } 3979 3966 3980 /* 3967 3981 * Delete the interface handle so the object no longer can be used. … … 3979 3993 * of cleanup order we might have been orphaned by the network destructor. 3980 3994 */ 3981 PINTNETNETWORK pNetwork = pIf->pNetwork;3982 3995 if (pNetwork) 3983 3996 { … … 4079 4092 intnetR0IfAddrCacheDestroy(&pIf->aAddrCache[i]); 4080 4093 4081 4094 pIf->pvObj = NULL; 4082 4095 RTMemFree(pIf); 4083 4096 } … … 4200 4213 pNetwork->MacTab.cEntries = iIf + 1; 4201 4214 pIf->pNetwork = pNetwork; 4215 4216 /** @todo handle failure of pfnConnectInterface */ 4217 PINTNETTRUNKIF pTrunk = pNetwork->MacTab.pTrunk; 4218 if (pTrunk && pTrunk->pIfPort) 4219 { 4220 Log(("intnetR0NetworkCreateIf: pfnConnectInterface hIf=%RX32\n", pIf->hIf)); 4221 pTrunk->pIfPort->pfnConnectInterface(pTrunk->pIfPort, pIf->hIf); 4222 } 4202 4223 4203 4224 RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock, &Tmp);
Note:
See TracChangeset
for help on using the changeset viewer.