- Timestamp:
- Feb 19, 2009 3:41:40 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r16896 r16952 169 169 if (buf == NULL) 170 170 { 171 LogRel((" Can't allocate buffer for sendingbuffer\n"));171 LogRel(("NAT: Can't allocate send buffer\n")); 172 172 return VERR_NO_MEMORY; 173 173 } … … 375 375 polls = (struct pollfd *)RTMemAlloc((1 + nFDs) * sizeof(struct pollfd) + sizeof(uint32_t)); /* allocation for all sockets + Management pipe*/ 376 376 if (polls == NULL) 377 {378 LogRel(("Can't allocate memory for polling\n"));379 377 return VERR_NO_MEMORY; 380 }381 378 382 379 slirp_select_fill(pThis->pNATState, &nFDs, &polls[1]); /*don't bother Slirp with knowelege about managemant pipe*/ … … 414 411 } 415 412 RTMemFree(polls); 416 # else /* !RT_OS_WINDOWS */413 # else /* RT_OS_WINDOWS */ 417 414 slirp_select_fill(pThis->pNATState, &nFDs); 418 415 ms = slirp_get_timeout_ms(pThis->pNATState); … … 423 420 { 424 421 int error = WSAGetLastError(); 425 LogRel((" WSAWaitForMultipleEvents returned %d (error %d)\n", event, error));422 LogRel(("NAT: WSAWaitForMultipleEvents returned %d (error %d)\n", event, error)); 426 423 RTAssertReleasePanic(); 427 424 } … … 476 473 } 477 474 478 # ifdef VBOX_WITH_SLIRP_MT475 # ifdef VBOX_WITH_SLIRP_MT 479 476 static DECLCALLBACK(int) drvNATAsyncIoGuest(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) 480 477 { … … 495 492 return VINF_SUCCESS; 496 493 } 497 # endif494 # endif /* VBOX_WITH_SLIRP_MT */ 498 495 499 496 #endif /* VBOX_WITH_SIMPLIFIED_SLIRP_SYNC */ … … 564 561 { 565 562 cDroppedPackets++; 566 LogRel(("NAT: Dropping package (couldn't alloc queue item to)\n"));563 LogRel(("NAT: Dropping package (couldn't allocate queue item)\n")); 567 564 } 568 565 RTMemFree((void *)pu8Buf); … … 892 889 if (RT_FAILURE(rc)) 893 890 { 894 LogRel((" Can't create request queue\n"));891 LogRel(("NAT: Can't create request queue\n")); 895 892 return rc; 896 893 } … … 899 896 if (RT_FAILURE(rc)) 900 897 { 901 LogRel((" Can't create send queue\n"));898 LogRel(("NAT: Can't create send queue\n")); 902 899 return rc; 903 900 }
Note:
See TracChangeset
for help on using the changeset viewer.