Changeset 8571 in vbox for trunk/src/VBox/Devices
- Timestamp:
- May 5, 2008 12:43:53 PM (17 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Makefile.kmk
r8251 r8571 175 175 ifeq ($(BUILD_TARGET),solaris) 176 176 VBoxDD_LIBS += adm 177 ifdef VBOX_WITH_CROSSBOW178 VBoxDD_LIBS += dlpi179 endif180 177 ifdef VBOX_WITH_SUID_WRAPPER 181 178 VBoxDD_LIBS += secdb … … 619 616 Storage/DrvHostDVD.cpp 620 617 ifdef VBOX_WITH_CROSSBOW 618 Drivers_SOURCES += Network/solaris/vbox-libdlpi.cpp 621 619 Drivers_DEFS += VBOX_WITH_CROSSBOW 622 620 endif -
trunk/src/VBox/Devices/Network/DrvTAP.cpp
r8155 r8571 62 62 # include <stdio.h> 63 63 # ifdef VBOX_WITH_CROSSBOW 64 # include <libdlpi.h>64 # include "solaris/vbox-libdlpi.h" 65 65 # endif 66 66 #else … … 277 277 #ifdef VBOX_WITH_CROSSBOW 278 278 cbRead = sizeof(achBuf); 279 rc = dlpi_recv(pData->pDeviceHandle, NULL, NULL, achBuf, &cbRead, -1, NULL);279 rc = gLibDlpiRecv(pData->pDeviceHandle, NULL, NULL, achBuf, &cbRead, -1, NULL); 280 280 rc = RT_LIKELY(rc == DLPI_SUCCESS) ? VINF_SUCCESS : SolarisDLPIErr2VBoxErr(rc); 281 281 #else … … 515 515 * Open & bind the NIC using the datalink provider routine. 516 516 */ 517 int rc = dlpi_open(pData->pszDeviceName, &pData->pDeviceHandle, DLPI_RAW);517 int rc = gLibDlpiOpen(pData->pszDeviceName, &pData->pDeviceHandle, DLPI_RAW); 518 518 if (rc != DLPI_SUCCESS) 519 519 return PDMDrvHlpVMSetError(pData->pDrvIns, VERR_HOSTIF_INIT_FAILED, RT_SRC_POS, … … 521 521 522 522 dlpi_info_t vnicInfo; 523 rc = dlpi_info(pData->pDeviceHandle, &vnicInfo, 0);523 rc = gLibDlpiInfo(pData->pDeviceHandle, &vnicInfo, 0); 524 524 if (rc == DLPI_SUCCESS) 525 525 { 526 526 if (vnicInfo.di_mactype == DL_ETHER) 527 527 { 528 rc = dlpi_bind(pData->pDeviceHandle, DLPI_ANY_SAP, NULL);528 rc = gLibDlpiBind(pData->pDeviceHandle, DLPI_ANY_SAP, NULL); 529 529 if (rc == DLPI_SUCCESS) 530 530 { 531 rc = dlpi_set_physaddr(pData->pDeviceHandle, DL_CURR_PHYS_ADDR, &pData->MacAddress, ETHERADDRL);531 rc = gLibDlpiSetPhysAddr(pData->pDeviceHandle, DL_CURR_PHYS_ADDR, &pData->MacAddress, ETHERADDRL); 532 532 if (rc == DLPI_SUCCESS) 533 533 { 534 rc = dlpi_promiscon(pData->pDeviceHandle, DL_PROMISC_SAP);534 rc = gLibDlpiPromiscon(pData->pDeviceHandle, DL_PROMISC_SAP); 535 535 if (rc == DLPI_SUCCESS) 536 536 { 537 537 /* Need to use DL_PROMIS_PHYS (not multicast) as we cannot be sure what the guest needs. */ 538 rc = dlpi_promiscon(pData->pDeviceHandle, DL_PROMISC_PHYS);538 rc = gLibDlpiPromiscon(pData->pDeviceHandle, DL_PROMISC_PHYS); 539 539 if (rc == DLPI_SUCCESS) 540 540 { 541 pData->FileDevice = dlpi_fd(pData->pDeviceHandle);541 pData->FileDevice = gLibDlpiFd(pData->pDeviceHandle); 542 542 if (pData->FileDevice >= 0) 543 543 { … … 572 572 rc = PDMDrvHlpVMSetError(pData->pDrvIns, VERR_HOSTIF_INIT_FAILED, RT_SRC_POS, 573 573 N_("Failed to obtain VNIC info")); 574 dlpi_close(pData->pDeviceHandle);574 gLibDlpiClose(pData->pDeviceHandle); 575 575 return rc; 576 576 } … … 972 972 */ 973 973 # ifdef VBOX_WITH_CROSSBOW 974 if (!gLibDlpiFound()) 975 { 976 return PDMDrvHlpVMSetError(pDrvIns, VERR_HOSTIF_INIT_FAILED, RT_SRC_POS, 977 N_("Failed to load library %s required for host interface networking."), LIB_DLPI); 978 } 974 979 rc = SolarisOpenVNIC(pData); 975 980 # else
Note:
See TracChangeset
for help on using the changeset viewer.