- Timestamp:
- Apr 27, 2010 1:55:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/ISCSIHDDCore.cpp
r28800 r28827 535 535 536 536 rc = pImage->pInterfaceNetCallbacks->pfnClientConnect(pImage->pszHostname, pImage->uPort, &pImage->Socket); 537 if (RT_UNLIKELY( RT_FAILURE(rc) 538 && ( rc == VERR_NET_CONNECTION_REFUSED 539 || rc == VERR_NET_CONNECTION_RESET 540 || rc == VERR_NET_UNREACHABLE 541 || rc == VERR_NET_HOST_UNREACHABLE 542 || rc == VERR_NET_CONNECTION_TIMED_OUT))) 543 { 544 /* Standardize return value for no connection. */ 545 return VERR_NET_CONNECTION_REFUSED; 537 if (RT_FAILURE(rc)) 538 { 539 if ( rc == VERR_NET_CONNECTION_REFUSED 540 || rc == VERR_NET_CONNECTION_RESET 541 || rc == VERR_NET_UNREACHABLE 542 || rc == VERR_NET_HOST_UNREACHABLE 543 || rc == VERR_NET_CONNECTION_TIMED_OUT) 544 { 545 /* Standardize return value for no connection. */ 546 rc = VERR_NET_CONNECTION_REFUSED; 547 } 548 return rc; 546 549 } 547 550
Note:
See TracChangeset
for help on using the changeset viewer.