Changeset 62980 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Aug 4, 2016 12:01:05 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r62511 r62980 234 234 235 235 236 /** 237 * @callback_method_impl{FNPDMTHREADDRV} 238 */ 236 239 static DECLCALLBACK(int) drvNATRecv(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) 237 240 { … … 251 254 252 255 256 /** 257 * @callback_method_impl{FNPDMTHREADWAKEUPDRV} 258 */ 253 259 static DECLCALLBACK(int) drvNATRecvWakeup(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) 254 260 { 261 RT_NOREF(pThread); 255 262 PDRVNAT pThis = PDMINS_2_DATA(pDrvIns, PDRVNAT); 256 263 int rc; … … 261 268 } 262 269 270 271 /** 272 * @callback_method_impl{FNPDMTHREADDRV} 273 */ 263 274 static DECLCALLBACK(int) drvNATUrgRecv(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) 264 275 { … … 280 291 } 281 292 293 294 /** 295 * @callback_method_impl{FNPDMTHREADWAKEUPDRV} 296 */ 282 297 static DECLCALLBACK(int) drvNATUrgRecvWakeup(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) 283 298 { 299 RT_NOREF(pThread); 284 300 PDRVNAT pThis = PDMINS_2_DATA(pDrvIns, PDRVNAT); 285 301 int rc = RTSemEventSignal(pThis->EventUrgRecv); … … 288 304 return VINF_SUCCESS; 289 305 } 306 290 307 291 308 static DECLCALLBACK(void) drvNATUrgRecvWorker(PDRVNAT pThis, uint8_t *pu8Buf, int cb, struct mbuf *m) … … 423 440 PCPDMNETWORKGSO pGso = (PCPDMNETWORKGSO)pSgBuf->pvUser; 424 441 uint32_t const cSegs = PDMNetGsoCalcSegmentCount(pGso, pSgBuf->cbUsed); Assert(cSegs > 1); 425 for ( size_t iSeg = 0; iSeg < cSegs; iSeg++)442 for (uint32_t iSeg = 0; iSeg < cSegs; iSeg++) 426 443 { 427 444 size_t cbSeg; … … 459 476 static DECLCALLBACK(int) drvNATNetworkUp_BeginXmit(PPDMINETWORKUP pInterface, bool fOnWorkerThread) 460 477 { 478 RT_NOREF(fOnWorkerThread); 461 479 PDRVNAT pThis = RT_FROM_MEMBER(pInterface, DRVNAT, INetworkUp); 462 480 int rc = RTCritSectTryEnter(&pThis->XmitLock); … … 572 590 static DECLCALLBACK(int) drvNATNetworkUp_SendBuf(PPDMINETWORKUP pInterface, PPDMSCATTERGATHER pSgBuf, bool fOnWorkerThread) 573 591 { 592 RT_NOREF(fOnWorkerThread); 574 593 PDRVNAT pThis = RT_FROM_MEMBER(pInterface, DRVNAT, INetworkUp); 575 594 Assert((pSgBuf->fFlags & PDMSCATTERGATHER_FLAGS_OWNER_MASK) == PDMSCATTERGATHER_FLAGS_OWNER_1); … … 613 632 static void drvNATNotifyNATThread(PDRVNAT pThis, const char *pszWho) 614 633 { 634 RT_NOREF(pszWho); 615 635 int rc; 616 636 #ifndef RT_OS_WINDOWS … … 630 650 static DECLCALLBACK(void) drvNATNetworkUp_SetPromiscuousMode(PPDMINETWORKUP pInterface, bool fPromiscuous) 631 651 { 652 RT_NOREF(pInterface, fPromiscuous) 632 653 LogFlow(("drvNATNetworkUp_SetPromiscuousMode: fPromiscuous=%d\n", fPromiscuous)); 633 654 /* nothing to do */
Note:
See TracChangeset
for help on using the changeset viewer.