Changeset 19571 in vbox
- Timestamp:
- May 11, 2009 10:07:04 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFlt-solaris.c
r19483 r19571 42 42 #include <iprt/crc32.h> 43 43 #include <iprt/err.h> 44 #define VBOX_WITH_NETFLT_SOLARIS_DLPISTYLE2 45 #ifdef VBOX_WITH_NETFLT_SOLARIS_DLPISTYLE2 46 # include <iprt/ctype.h> 47 #endif 44 #include <iprt/ctype.h> 48 45 49 46 #include <inet/ip.h> … … 60 57 #include <sys/dlpi.h> 61 58 #include <sys/types.h> 62 #ifdef VBOX_WITH_NETFLT_SOLARIS_DLPISTYLE2 63 # include <sys/time.h> 64 #endif 59 #include <sys/time.h> 65 60 #include <sys/param.h> 66 61 #include <sys/ethernet.h> … … 1415 1410 } 1416 1411 1417 #if def VBOX_WITH_NETFLT_SOLARIS_DLPISTYLE21412 #if 0 1418 1413 /** 1419 1414 * Set the DLPI style-2 PPA via an attach request. 1415 * Currently unused; dl_attach is used instead. 1420 1416 * 1421 1417 * @returns VBox status code. … … 1667 1663 1668 1664 1669 #ifdef VBOX_WITH_NETFLT_SOLARIS_DLPISTYLE21670 1665 /** 1671 1666 * Opens up the DLPI style 2 link that requires explicit PPA attach 1672 1667 * phase. 1673 1668 * 1669 * @returns VBox status code. 1674 1670 * @param pThis The instance. 1671 * @param pDevId Where to store the opened LDI device id. 1675 1672 */ 1676 1673 static int vboxNetFltSolarisOpenStyle2(PVBOXNETFLTINS pThis, ldi_ident_t *pDevId) … … 1680 1677 */ 1681 1678 char *pszDev = RTStrDup(pThis->szName); 1679 if (!pszDev) 1680 return VERR_NO_MEMORY; 1681 1682 1682 char *pszEnd = strchr(pszDev, '\0'); 1683 1683 int PPALen = 0; … … 1716 1716 1717 1717 ldi_close(pThis->u.s.hIface, FREAD | FWRITE, kcred); 1718 LogRel((DEVICE_NAME ":vboxNetFltSolarisOpenStyle2 dl_attach failed. rc=%d \n", rc));1718 LogRel((DEVICE_NAME ":vboxNetFltSolarisOpenStyle2 dl_attach failed. rc=%d szDev=%s PPA=%d rc=%d\n", rc, szDev, PPA)); 1719 1719 } 1720 1720 else 1721 LogRel((DEVICE_NAME ":vboxNetFltSolarisOpenStyle2 Failed to open szDev=%s\n", szDev));1721 LogRel((DEVICE_NAME ":vboxNetFltSolarisOpenStyle2 Failed to open. rc=%d szDev=%s PPA=%d\n", rc, szDev, PPA)); 1722 1722 } 1723 1723 else 1724 LogRel((DEVICE_NAME ":vboxNetFltSolarisOpenStyle2 Failed to construct PPA. \n"));1724 LogRel((DEVICE_NAME ":vboxNetFltSolarisOpenStyle2 Failed to construct PPA. pszDev=%s pszEnd=%s.\n", pszDev, pszEnd)); 1725 1725 1726 1726 RTStrFree(pszDev); 1727 1727 return VERR_INTNET_FLT_IF_FAILED; 1728 1728 } 1729 #endif1730 1729 1731 1730 … … 1743 1742 int ret; 1744 1743 1745 /** @todo enable and test DLPI style 2.*/1746 1744 /* 1747 1745 * Try style-1 open first. … … 1760 1758 } 1761 1759 1762 #ifdef VBOX_WITH_NETFLT_SOLARIS_DLPISTYLE21763 1760 if (rc) 1764 1761 { … … 1769 1766 if (RT_FAILURE(rc)) 1770 1767 LogRel((DEVICE_NAME ":vboxNetFltSolarisOpenStream vboxNetFltSolarisOpenStyle2 failed. rc=%d\n", rc)); 1771 } 1772 #endif 1768 else 1769 rc = 0; 1770 } 1773 1771 1774 1772 ldi_ident_release(DevId);
Note:
See TracChangeset
for help on using the changeset viewer.