Changeset 14538 in vbox for trunk/src/VBox/Devices/Storage/DrvVD.cpp
- Timestamp:
- Nov 24, 2008 6:36:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r14535 r14538 35 35 #include <iprt/tcp.h> 36 36 37 #ifndef VBOX_OSE 37 38 /* All lwip header files are not C++ safe. So hack around this. */ 38 39 __BEGIN_DECLS … … 41 42 #include <lwip/sockets.h> 42 43 __END_DECLS 44 #endif /* !VBOX_OSE */ 43 45 44 46 #include "Builtins.h" 45 47 48 #ifndef VBOX_OSE 46 49 /* Small hack to get at lwIP initialized status */ 47 50 extern bool DevINIPConfigured(void); 51 #endif /* !VBOX_OSE */ 48 52 49 53 … … 329 333 330 334 335 #ifndef VBOX_OSE 331 336 /******************************************************************************* 332 337 * VD TCP network stack interface implementation - INIP case * … … 483 488 return VINF_SUCCESS; 484 489 } 490 #endif /* !VBOX_OSE */ 485 491 486 492 … … 919 925 else 920 926 { 927 #ifdef VBOX_OSE 928 rc = PDMDrvHlpVMSetError(pDrvIns, VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES, 929 RT_SRC_POS, N_("DrvVD: Configuration error: TCP over Internal Networking not supported in VirtualBox OSE")); 930 #else /* !VBOX_OSE */ 921 931 pThis->VDITcpNetCallbacks.cbSize = sizeof(VDINTERFACETCPNET); 922 932 pThis->VDITcpNetCallbacks.enmInterface = VDINTERFACETYPE_TCPNET; … … 927 937 pThis->VDITcpNetCallbacks.pfnWrite = drvvdINIPWrite; 928 938 pThis->VDITcpNetCallbacks.pfnFlush = drvvdINIPFlush; 929 } 930 rc = VDInterfaceAdd(&pThis->VDITcpNet, "DrvVD_INIP", 931 VDINTERFACETYPE_TCPNET, 932 &pThis->VDITcpNetCallbacks, NULL, 933 &pThis->pVDIfsDisk); 934 AssertRC(rc); 935 936 rc = VDCreate(pThis->pVDIfsDisk, &pThis->pDisk); 937 /* Error message is already set correctly. */ 939 #endif /* !VBOX_OSE */ 940 } 941 if (RT_SUCCESS(rc)) 942 { 943 rc = VDInterfaceAdd(&pThis->VDITcpNet, "DrvVD_INIP", 944 VDINTERFACETYPE_TCPNET, 945 &pThis->VDITcpNetCallbacks, NULL, 946 &pThis->pVDIfsDisk); 947 } 948 if (RT_SUCCESS(rc)) 949 { 950 rc = VDCreate(pThis->pVDIfsDisk, &pThis->pDisk); 951 /* Error message is already set correctly. */ 952 } 938 953 } 939 954
Note:
See TracChangeset
for help on using the changeset viewer.